You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformIO Version (platformio --version):
PlatformIO, version 3.6.1a4
Description of problem
Even if some libraries are installed in a global storage ( for ex. ~/.platformio/lib)
Platformio library manager always downloads all dependent libs to .piolibdeps project folder.
Building project with --verbose option shows that includes uses global storage libs. So why trashing every project with unused libs copies?
Steps to Reproduce
Install some libs to the global storage
Create project with libs existing in a global storage
Build project
Actual Results
Copies of all libs are downloaded into the .piolibdeps project folder but builder includes libs from a global storage
Expected Results
Do not download redundant libs to the project's folder
pio lib --global list | grep ID
Library Storage: /home/emil/.platformio/lib
#ID: 64
#ID: 44
pio run --verbose
Processing esp8266_stable (platform: espressif8266; lib_deps: ArduinoJson, Time; board: d1_mini; framework: arduino)
Library Storage: /mnt/str/dev/testing/piotest/.piolibdeps
Looking for ArduinoJson library in registry
Found: https://platformio.org/lib/show/64/ArduinoJson
LibraryManager: Installing id=64
Downloading...
Unpacking [####################################] 100%
ArduinoJson @ 5.13.2 has been successfully installed!
Looking for Time library in registry
Found: https://platformio.org/lib/show/44/Time
LibraryManager: Installing id=44
Downloading...
Unpacking [####################################] 100%
Time @ 1.5 has been successfully installed!
PLATFORM: Espressif 8266 > WeMos D1 R2 & mini
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
xtensa-lx106-elf-g++ -o "/mnt/str/dev/testing/piotest/src/test.ino.cpp" -x c++ -fpreprocessed -dD -E "/tmp/tmp5n5lR4"
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 32 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 5.13.2 (/mnt/str/dev/libraries/ArduinoJson_ID64)
|-- <Time> 1.5 (/mnt/str/dev/libraries/Time_ID44)
xtensa-lx106-elf-g++ -o .pioenvs/esp8266_stable/src/test.ino.cpp.o -c -fno-rtti -fno-exceptions -std=c++11 -Os -mlongcalls -mtext-section-literals -falign-functions=4 -U__STRICT_ANSI__ -ffunction-sections -fdata-sections -Wall -DPLATFORMIO=30601 -DESP8266 -DARDUINO_ARCH_ESP8266 -DESP8266_WEMOS_D1MINI -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DARDUINO=10805 -DARDUINO_BOARD=\"PLATFORMIO_D1_MINI\" -DLWIP_OPEN_SRC -DVTABLES_IN_FLASH -Isrc -I/mnt/str/dev/libraries/ArduinoJson_ID64/src -I/mnt/str/dev/libraries/Time_ID44 -I/home/emil/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include -I/home/emil/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include -I/home/emil/.platformio/packages/framework-arduinoespressif8266/cores/esp8266 -I/home/emil/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lwip/include -I/home/emil/.platformio/packages/framework-arduinoespressif8266/variants/d1_mini src/test.ino.cpp
ls .piolibdeps/
ArduinoJson_ID64 Time_ID44
The text was updated successfully, but these errors were encountered:
vortigont
changed the title
pio library manager always downloads all libs to .piolibdeps even when using global storage
pio library manager always downloads all libs to .piolibdeps even when building ones from a global storage
Sep 14, 2018
Configuration
Linux x64, platformio cli
PlatformIO Version (
platformio --version
):PlatformIO, version 3.6.1a4
Description of problem
Even if some libraries are installed in a global storage ( for ex. ~/.platformio/lib)
Platformio library manager always downloads all dependent libs to .piolibdeps project folder.
Building project with --verbose option shows that includes uses global storage libs. So why trashing every project with unused libs copies?
Steps to Reproduce
Actual Results
Copies of all libs are downloaded into the .piolibdeps project folder but builder includes libs from a global storage
Expected Results
Do not download redundant libs to the project's folder
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
pio lib --global list | grep ID
Library Storage: /home/emil/.platformio/lib
#ID: 64
#ID: 44
The text was updated successfully, but these errors were encountered: