Skip to content

Support for sketch-local libraries #4050

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

Closed
lmihalkovic opened this issue Oct 30, 2015 · 5 comments
Closed

Support for sketch-local libraries #4050

lmihalkovic opened this issue Oct 30, 2015 · 5 comments
Labels
Type: Duplicate Another item already exists for this topic
Milestone

Comments

@lmihalkovic
Copy link

Having run into the issue myself, I noticed that a number of people were asking about libraries inside a sketch project. This is the result of a couple of local changes to the latest IDE.

arduino1

Sketches can have a local "libraries" sub-folder with libraries. The outline view displays them in a list. The source files for local libraries can be edited. When selecting a file from a library, all the tabs of the main editor are replaced with equivalent tabs for each of the library's file (doing it this way makes it possible to reuse all the existing Editor logic with very minimal changes).

Would there be any interest for folding this into the release?

@shiftleftplusone
Copy link

excellent work, highly appreciated !
+1
(y)

@lmihalkovic lmihalkovic changed the title Sketch local libraries?! Support for sketch-local libraries Nov 4, 2015
@lmihalkovic
Copy link
Author

For the time being I implemented my own builder as I was wasting too much time on arduino-builder (go is a no-go ;-) ). On the bright side, switching between the 3 builders I have is a config option.
What I really want to look more closely at is the user configurable library-priority scheme I described in #4064 and #4065.

@ffissore
Copy link
Contributor

Duplicate of #314. See #314 (comment)

@ffissore ffissore added the Type: Duplicate Another item already exists for this topic label Nov 16, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 16, 2015
@lmihalkovic
Copy link
Author

What change would like to see?

The ability to include libraries on a per-sketch basis. This should probably be in the code/ folder to mirror Processing, or a libraries/ folder (to mirror other library locations). In the long run, this should support pre-compiled libraries too (issue #199), but source libraries would be a good start.

Why?

So people can include all the dependencies for a sketch in one place. This would also be a nice place to put assembly files for a sketch (since you can't edit them in the IDE) - issue #274.

After 3 years I have to assume that regardless of the many benefits some people may have seen over the years, the company has decided that it either does not have the resources to make certain enhancements to the product, or simply prefers to keep it in sunset mode with only the minimum amount of maintenance until something else replaces it. no pb at all. I wrote what I needed to keep my code structured.

@shiftleftplusone
Copy link

just curious about how the Arduino Studio actually handles the libraries issue...
http://labs.arduino.org/Arduino%20Studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

3 participants