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

Cannot find sketchbook libraries #9

Open
pdaoust opened this issue Feb 12, 2015 · 7 comments
Open

Cannot find sketchbook libraries #9

pdaoust opened this issue Feb 12, 2015 · 7 comments

Comments

@pdaoust
Copy link

pdaoust commented Feb 12, 2015

Hi there. I just installed Cuwire (the Brackets extension) and I must say it's much nicer looking than the official Arduino IDE. I am, however, having troubles with sketches that use libraries in the sketchbook folder (I guess this is now ~/Arduino/libraries rather than ~/sketchbook/libraries like it was in Arduino 1.0.x). Is there any way I can tell Cuwire where to find those libraries when compiling?

@apla
Copy link
Owner

apla commented Feb 12, 2015

Hi, thank you!

Sketchbook location is changed for a reason: Arduino 1.5+ libraries is different. And sometimes totally incompatible with 1.0.

Setting custom location for sketches is supported in Arduino IDE preferences file. I will support reading this file, but priority is low, sorry. I think you also prefer code completion and library management over sketchbook custom location -)

For now, if you want to use your libraries, the simplest solution is create symlink from ~/sketchbook/libraries to ~/Arduino/libraries. Or copy libraries folder.

@pdaoust
Copy link
Author

pdaoust commented Feb 20, 2015

Thanks for the reply -- I don't think you need to spend any development time on custom library locations; your documentation says that you only support Arduino 1.5 and above, where the libraries are in ~/Arduino/libraries. So users should expect that, in order to work with CuWire, that's where their libraries should be. That's fine.

My question is this: My libraries actually are in ~/Arduino/libraries and they still can't be found. Compiling from the Arduino ID (1.6) they're found, but compiling from Cuwire they aren't found. Any ideas?

@apla
Copy link
Owner

apla commented Feb 21, 2015

Arduino default folder for user's libraries is ~/Documents/Arduino/libraries. If yours library folder is actually ~/Arduino/libraries, I'll investigate this.

Also I fixed many issues within file search routine, maybe libraries is suffer from this. I'll let you know when update is ready.

@pdaoust
Copy link
Author

pdaoust commented Feb 23, 2015

Oh, that's odd -- wonder if the difference in default folders is a Linux vs Mac thing. Are you using Mac OS X?

@apla
Copy link
Owner

apla commented Feb 23, 2015

Thank you!

Yes, my main development environment on mac. I have linux and windows vm to test cuwire.

Just launched Arduino IDE on linux vm and found correct locations.

@apla
Copy link
Owner

apla commented Mar 8, 2015

Just released new version, 0.5.3. Please update plugin using Brackets Extension Dialog. CLI is also updated to version 0.5.9.

Please check if issue persists.

@pdaoust
Copy link
Author

pdaoust commented Mar 10, 2015

Thanks; I'll check it out when I've got some time!

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

No branches or pull requests

2 participants