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

Saving libraries in new project results in error "No option 'lib_deps' in section" #3442

Closed
simonvanderveldt opened this issue Mar 26, 2020 · 3 comments
Labels
bug ldf Library Dependency Finder
Milestone

Comments

@simonvanderveldt
Copy link

What kind of issue is this?

  • Linux
  • PlatformIO, version 4.3.1

Description of problem

When creating a new project (https://docs.platformio.org/en/latest/core/quickstart.html) installing a library and trying to save it to platformio.ini the saving fails because the lib_deps section is missing (and it apparently doesn't automatically get created):

platformio lib install --save PubSubClient
Library Storage: /home/simon/src/simonvanderveldt/arduino-plc/.pio/libdeps/uno
Looking for PubSubClient library in registry
Found: https://platformio.org/lib/show/89/PubSubClient
LibraryManager: Installing id=89
Using cache: /home/simon/.platformio/.cache/60/bcf94560201e022015c1c79750fa0460
PubSubClient @ 2.7 has been successfully installed!
Error: Invalid '/home/simon/src/simonvanderveldt/testproject/platformio.ini' (project configuration file): 'No option 'lib_deps' in section: 'env:uno''

Steps to Reproduce

platformio project init --board uno
platformio lib install --save PubSubClient

Actual Results

Error

Expected Results

The library gets saved in the default environment

@ivankravets ivankravets added this to the 4.3.2 milestone Mar 27, 2020
@ivankravets ivankravets added bug ldf Library Dependency Finder labels Mar 27, 2020
@ivankravets
Copy link
Member

Thanks for the report! Please re-test with pio upgrade --dev.

@simonvanderveldt
Copy link
Author

@ivankravets It works :) Thanks for the quick fix!

@ivankravets
Copy link
Member

Happy coding with PlatformIO! 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ldf Library Dependency Finder
Projects
None yet
Development

No branches or pull requests

2 participants