Platformio-core: Saving libraries in new project results in error "No option 'lib_deps' in section"

Created on 26 Mar 2020  路  3Comments  路  Source: platformio/platformio-core

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

bug lib

Most helpful comment

Happy coding with PlatformIO! 馃檭

All 3 comments

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

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

Happy coding with PlatformIO! 馃檭

Was this page helpful?
0 / 5 - 0 ratings

Related issues

radut picture radut  路  5Comments

424778940z picture 424778940z  路  5Comments

microbug picture microbug  路  4Comments

weberw picture weberw  路  4Comments

HamzaHajeir picture HamzaHajeir  路  5Comments