brackets-cuwire icon indicating copy to clipboard operation
brackets-cuwire copied to clipboard

Cannot find sketchbook libraries

Open pdaoust opened this issue 10 years ago • 7 comments

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?

pdaoust avatar Feb 12 '15 14:02 pdaoust

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.

apla avatar Feb 12 '15 18:02 apla

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?

pdaoust avatar Feb 20 '15 21:02 pdaoust

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.

apla avatar Feb 21 '15 12:02 apla

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

pdaoust avatar Feb 23 '15 17:02 pdaoust

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 avatar Feb 23 '15 18:02 apla

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.

apla avatar Mar 08 '15 21:03 apla

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

pdaoust avatar Mar 10 '15 19:03 pdaoust