Skip to content

Support for sketch-local libraries #4050

Closed
@lmihalkovic

Description

@lmihalkovic

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?

Activity

self-assigned this
on Oct 30, 2015
shiftleftplusone

shiftleftplusone commented on Nov 1, 2015

@shiftleftplusone

excellent work, highly appreciated !
+1
(y)

changed the title [-]Sketch local libraries?![/-] [+]Support for sketch-local libraries[/+] on Nov 4, 2015
lmihalkovic

lmihalkovic commented on Nov 4, 2015

@lmihalkovic
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

ffissore commented on Nov 16, 2015

@ffissore
Contributor

Duplicate of #314. See #314 (comment)

added this to the Release 1.6.7 milestone on Nov 16, 2015
lmihalkovic

lmihalkovic commented on Nov 17, 2015

@lmihalkovic
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

shiftleftplusone commented on Nov 17, 2015

@shiftleftplusone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DuplicateAnother item already exists for this topic

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ffissore@lmihalkovic@shiftleftplusone

        Issue actions

          Support for sketch-local libraries · Issue #4050 · arduino/Arduino