Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new Arduino libraries path #5

Open
stardiviner opened this issue Feb 7, 2018 · 7 comments · May be fixed by #8
Open

Add support for new Arduino libraries path #5

stardiviner opened this issue Feb 7, 2018 · 7 comments · May be fixed by #8

Comments

@stardiviner
Copy link

stardiviner commented Feb 7, 2018

Currently Linux Arduino IDE install sketch libraries in ~/Arduino/libraries/. The structure is ~/Arduino/libraries/<sketch>/src/{*.cpp, *.h}.
I check out company-arduino, seems does not support this path.

@stardiviner
Copy link
Author

As this article said. Arduino v17 use a new location.
https://learn.adafruit.com/arduino-tips-tricks-and-techniques/arduino-libraries

In Arduino v16 and earlier, libraries were stored in the ArduinoInstallDirectory/hardware/libraries folder, which also contained all the built-in libraries (like Wire and Serial).

In v17 and up, the user libraries are now stored in the ArduinoSketchDirectory/libraries folder. You may need to make the libraries sub-folder the first time. However, the good thing about this is you wont have to move & reinstall your libraries every time you upgrade the software.

@wuliuxiansheng
Copy link

Is this feature going to be considered? I think this is a very useful feature.

@yuutayamada
Copy link
Owner

I'm sorry super delayed response. I'm gladly merge PR if someone make this happens. I'm not using arduino now.

@stardiviner
Copy link
Author

I actually did have a dig deep in company-arduino source code before about how to add this support. But I can't implement it with my little Elisp skill.

@wuliuxiansheng
Copy link

wuliuxiansheng commented Oct 2, 2018

I may submit a PR soon to add this feature. A quick fix for this is to modify irony-arduino-includes-options after you load company-arduino.

@stardiviner
Copy link
Author

stardiviner commented Aug 13, 2020

I pushed a new PR #7
@yuutayamada

@jcs090218
Copy link

Any update on this?

@jbutcher5 jbutcher5 linked a pull request Apr 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants