Skip to content

Allow libraries folders to be set via the configuration #88

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

Open
SebCanet opened this issue Nov 6, 2018 · 11 comments
Open

Allow libraries folders to be set via the configuration #88

SebCanet opened this issue Nov 6, 2018 · 11 comments
Labels
type: enhancement Proposed improvement

Comments

@SebCanet
Copy link

SebCanet commented Nov 6, 2018

Hi,
with 0.31.preview on Windows, when I type arduino-cli lib list, it lists only libraries inside my sketchbook/libraries folder.
I changed ".cli-config.yml" like this:

libraries:
- ../sketchbook/libraries
- ./libraries

But when I compile it doesn't find Servo.h

Thanks!

@masci
Copy link
Contributor

masci commented Aug 5, 2019

Can you confirm it's still the case with latest 0.4.0?

@masci masci self-assigned this Aug 7, 2019
@masci
Copy link
Contributor

masci commented Aug 16, 2019

Closing as stale, feel free to reopen should you have the same issue again.

@masci masci closed this as completed Aug 16, 2019
@SebCanet
Copy link
Author

SebCanet commented Aug 27, 2019

Still the same pb. Even if it's in a subfolder:

libraries:
    - ../libraries
    - ../sketchbook/libraries

My folders are like that:

project
|-arduino (with arduino-cli.exe inside)
|-libraries (with liraries from Arduino IDE)
|-sketchbook (with inside:)
  |- libraries (for personnal lib)
  |- sketches

Thanks.

@SebCanet
Copy link
Author

SebCanet commented Sep 5, 2019

Still the same pb with v0.5.0

libraries:
    - ./libraries
    - ../sketchbook/libraries

@masci masci reopened this Sep 5, 2019
@masci
Copy link
Contributor

masci commented Sep 5, 2019

Thanks for confirming @SebCanet

@masci masci added the kind/bug label Sep 5, 2019
@cmaglie
Copy link
Member

cmaglie commented Sep 12, 2019

@SebCanet
we do not support the libraries: ... section in config file arduino-cli.yaml.

If you want to allow the CLI to see the libraries from the Arduino IDE you should copy the executable inside the Arduino IDE folder (the cli will automatically detect this condition and pick the libraries in the Arduino IDE). Did this solve your issue?

@SebCanet SebCanet changed the title offfical Arduino libraries not seen multiplie Arduino libraries folders not seen Sep 12, 2019
@SebCanet
Copy link
Author

I changed title to make it clearer, I hope...
What I need is doing with libraries the same as board_manager: multiplie.

@cmaglie
Copy link
Member

cmaglie commented Sep 12, 2019

ok so this is more a feature request, you want the possibility to add more libraries folders from the config file.

@SebCanet
Copy link
Author

Exactly!

@masci masci added type: enhancement Proposed improvement and removed kind/bug labels Sep 13, 2019
@masci masci removed their assignment Sep 13, 2019
@ubidefeo
Copy link

@SebCanet
I endorse this.
I believe the config file(s) should allow for a deeper degree of behaviour customisation.
@cmaglie let's look at it in our next session, I have a few ideas :)

@SebCanet
Copy link
Author

Great 👍

@per1234 per1234 changed the title multiplie Arduino libraries folders not seen Allow libraries folders to be set via the configuration Feb 3, 2021
@per1234 per1234 reopened this Mar 30, 2021
per1234 added a commit that referenced this issue Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

7 participants