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

Libraries in sketch folder still not working #9507

Closed
jeroenst opened this issue Dec 7, 2019 · 3 comments
Closed

Libraries in sketch folder still not working #9507

jeroenst opened this issue Dec 7, 2019 · 3 comments
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@jeroenst
Copy link

jeroenst commented Dec 7, 2019

According to the manual libraries can be placed in a libraries folder in the sketch folder.

https://www.arduino.cc/en/Guide/Libraries

Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook.

But it doesn't work

Related bug: #4936

@matthijskooijman
Copy link
Collaborator

I assume you refer to the "inside your sketchbook" part? The sketchbook is the directory where your sketches live (e.g. Documents/Arduino or something), and libraries can live in there (e.g. Docuements/Arduino/libraries/my_library). AFAIU the docs are not trying to say "libraries can be loaded from your sketch folder", so I think the docs are correct and this feature is (unfortunately) still missing.

I'm going to close this issue as invalid. If you feel this is not appropriate, let use know through a comment. However note #7755, which is an issue that requests this specific feature and should be used for any further discussion about the feature (so no need to keep this open as a feature request).

@matthijskooijman matthijskooijman added the Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug label Dec 7, 2019
@jeroenst
Copy link
Author

jeroenst commented Dec 7, 2019

The statement says literally libraries folder inside your sketchbook which imo is the project folder, not the projectS folder because it's not stated sketchbookS folder.

This feature is also very wanted, because for different projects sometimes the same lib is needed but with different version. That's now almost impossible.

Also when a project on github has submodules of libraries included they now have to be copied out of the sketchbook folder to the libraries folder in the folder containing all the sketchbooks.

But still even if the only location is in the sketchbook folder we also want to have global libraries locating in folder containing all the sketchbooks (like the behaviour is now) which has a lower priority than the librarie residing in the sketchbook (the project).

On the other hand you can say, a sketch resides in a sketchbook, so a sketchbook can contain multiple sketches. But still it is an issue working with submodules or different library version per sketch.

@matthijskooijman
Copy link
Collaborator

The statement says literally libraries folder inside your sketchbook which imo is the project folder, not the projectS folder because it's not stated sketchbookS folder.

This is a misunderstanding on your side. Check for example the preferences of the Arduino IDE, which lets you set the sketchbook directory. The sketchbook contains a number of sketches, which is what you are calling projects.

One can argue about how intuitive or clearly documented this is, but I am pretty sure this is how the terminology was intended.

As for the rest of your argument: Agreed, but that is for #7755.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

2 participants