-
-
Notifications
You must be signed in to change notification settings - Fork 398
Sketch dependencies management #1321
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
Comments
Currently there is no way to do this and is left to the Sketch creator. We're actively discussing this to find the best way on tackling the issue. Stay tuned. :) |
@silvanocerza If I can help with this (I'm a go-coder) - just let me know :) |
If anyone wants to install sketch dependencies right now (until this is not supported by the I have made a simple CLI tool for this (based on |
Since I can't ask in the arduino-deps-installer repo because it is archived I'm gonna ask here: Why is set as archived? It looks like very handy software that fixes an annoyance that is still not implemented in Arduino IDE itself |
Hi @r41d! The reasons are very simple:
|
Follow-up note: it's possible to handle dependency management using arduino-cli's sketch project file (sketch.yaml) functionality which may have been added since this conversation. |
Nice, this seems to be a first step in an attempt of proper library dependency managment for sketches, although not good enough yet.. We need something more similar to how libraries are managing other library dependencies in
and many more improvements should be made, but at least we have a start.. |
If I could just specify something in the sketch file or some auxiliary file to open the library manager with the correct library or libraries highlighted, it would go a long way. It doesn't have to totally automate the installation. Version specifications would be nice, but for me "get the latest" would work fine. I'm handing my code off to people are very smart, but complete non-programmers. There are more of those than you might guess. Starting off my instructions with "go to five different github repositories, two different parts of arduino.cc, and pjrc.com and install these 8 libraries" is pretty daunting. So is "read each compiler warning and guess which things in that line might make good search terms in the library manager". I could really use a way to help these people out without having an hour zoom call with each one. I know that I could distribute everything in a zip file, but each has its own licensing, so I'm not comfortable with that. |
I have created a sample Arduino project automated with It uses simple |
What is the best way to declare sketch dependencies? For example, my sketch uses Servo library:
And when somebody wants to use this, it will be difficult for him to understand that you need to install the Servo library first. Describing all dependencies in a readme file or leaving comments with notices looks not enough clear.
Also, it would be great if there was a command flag like
arduino-cli libs install --deps-file ./requirements.txt
:Or possibility to define dependencies in a
sketch.json
file:Or
sketch.properties
file:dependencies=Servo@1.1.7, GyverOLED@1.0
The text was updated successfully, but these errors were encountered: