{"action":"opened","issue":{"url":"https://api.github.com/repos/platformio/platformio-core/issues/1153","repository_url":"https://api.github.com/repos/platformio/platformio-core","labels_url":"https://api.github.com/repos/platformio/platformio-core/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio-core/issues/1153/comments","events_url":"https://api.github.com/repos/platformio/platformio-core/issues/1153/events","html_url":"https://github.com/platformio/platformio-core/issues/1153","id":269944771,"number":1153,"title":"lib_deps piolibdeps issue creates dependences on all platforms","user":{"login":"txinto","id":167676,"avatar_url":"https://avatars0.githubusercontent.com/u/167676?v=4","gravatar_id":"","url":"https://api.github.com/users/txinto","html_url":"https://github.com/txinto","followers_url":"https://api.github.com/users/txinto/followers","following_url":"https://api.github.com/users/txinto/following{/other_user}","gists_url":"https://api.github.com/users/txinto/gists{/gist_id}","starred_url":"https://api.github.com/users/txinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txinto/subscriptions","organizations_url":"https://api.github.com/users/txinto/orgs","repos_url":"https://api.github.com/users/txinto/repos","events_url":"https://api.github.com/users/txinto/events{/privacy}","received_events_url":"https://api.github.com/users/txinto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-31T12:44:48Z","updated_at":"2017-10-31T12:44:48Z","closed_at":null,"author_association":"NONE","body":"What kind of issue is this?\r\n\r\nA library dependency and env platforms crossed issue.  Piolibdeps directory is applying lib_deps in wrong compilation environments.\r\n\r\n- [c ] PlatformIO Core. If you’ve found a bug, please provide an information below.\r\n\r\n------------------------------------------------------------------\r\n\r\n### Configuration\r\n\r\n**Operating system**: Windows x64\r\n\r\n**PlatformIO Version** (`platformio --version`): 3.5.0a16\r\n\r\n### Description of problem\r\n\r\nI have a project that has to be compiled on many platforms.  The Arduino Uno is the last platform environment of my platformio.ini file, and it is the only one with the \"Arduino Motor Shield\" library dependence.  With an empty .piolibdeps everything is compiling without problems, but when I try to launch another compilation, all the other platforms fail (Teensy, ESP32...).  The reason is that the first compilation created a .piolibdeps/ArduinoMotorShieldLibrary_ID28 folder, and this folder is being compiled in all the platforms (not only on Uno).  As a result, the second time you compile, it fails.  \r\n\r\n#### Steps to Reproduce\r\n\r\n1. Use the given platformio.ini file in a project.\r\n2. Compile it once --> ok.\r\n3. Compile it twice --> error!\r\n\r\n### Actual Results\r\n\r\nTries to compile wrong libraries in compilation environment that do not depend on them.\r\n\r\n### Expected Results\r\n\r\nThe compilation environment must only compile the libraries they depend on.\r\n\r\n### If problems with PlatformIO Build System:\r\n\r\n**The content of `platformio.ini`:**\r\n```ini\r\n; PlatformIO Project Configuration File\r\n;\r\n;   Build options: build flags, source filter\r\n;   Upload options: custom upload port, speed and extra flags\r\n;   Library options: dependencies, extra library storages\r\n;   Advanced options: extra scripting\r\n;\r\n; Please visit documentation for the other options and examples\r\n; http://docs.platformio.org/page/projectconf.html\r\n\r\n[platformio]\r\n; env_default = esp32doit-devkit-v1\r\n; --> ESP32_DEV\r\n; -DARDUINO=10610 -DARDUINO_ARCH_ESP32 -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\\\"mbedtls/esp_config.h\\\" -DPLATFORMIO=30500 -DESP32_DEV -DARDUINO_ESP32_DEV\r\n; env_default = esp32dev\r\n; --> ESP32_DEV\r\n; -DARDUINO=10610 -DARDUINO_ARCH_ESP32 -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\\\"mbedtls/esp_config.h\\\" -DPLATFORMIO=30500 -DESP32_DEV -DARDUINO_ESP32_DEV\r\n; env_default = d1_mini\r\n; --> ESP8266_WEMOS_D1MINI\r\n; -DARDUINO=20300 -DLWIP_OPEN_SRC -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DPLATFORMIO=30500 -DESP8266 -DARDUINO_ARCH_ESP8266 -DESP8266_WEMOS_D1MINI\r\n; env_default = nodemcuv2\r\n; --> ARDUINO_ESP8266_NODEMCU\r\n; -DARDUINO=20300 -DLWIP_OPEN_SRC -DF_CPU=80000000L -D__ets__ -DICACHE_FLASH -DPLATFORMIO=30500 -DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_NODEMCU\r\n; env_default = teensy31\r\n; --> TEENSY31\r\n; -DF_CPU=72000000L -DLAYOUT_US_ENGLISH -DPLATFORMIO=30500 -D__MK20DX256__ -DTEENSY31 -DUSB_SERIAL -DARDUINO=10610 -DTEENSYDUINO=136\r\n; env_default = uno\r\n; --> ARDUINO_AVR_UNO\r\n; -DF_CPU=16000000L -DPLATFORMIO=30500 -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10619\r\n[env:esp32doit-devkit-v1]\r\nplatform = espressif32\r\nboard = esp32doit-devkit-v1\r\nframework = arduino\r\nlib_deps =\r\n  PubSubClient\r\n  Adafruit NeoPixel\r\n\r\n\r\n[env:esp32dev]\r\nplatform = espressif32\r\nboard = esp32dev\r\nframework = arduino\r\nlib_deps =\r\n  PubSubClient\r\n  Adafruit NeoPixel\r\n\r\n\r\n[env:nodemcuv2]\r\nplatform = espressif8266\r\nboard = nodemcuv2\r\nframework = arduino\r\nlib_deps =\r\n  PubSubClient\r\n  Adafruit NeoPixel\r\n\r\n\r\n[env:d1_mini]\r\nplatform = espressif8266\r\nboard = d1_mini\r\nframework = arduino\r\nlib_deps =\r\n  PubSubClient\r\n  Adafruit NeoPixel\r\n\r\n\r\n[env:teensy31]\r\nplatform = teensy\r\nframework = arduino\r\nboard = teensy31\r\nlib_deps =\r\n  Adafruit NeoPixel\r\n\r\n\r\n[env:uno]\r\nplatform = atmelavr\r\nboard = uno\r\nframework = arduino\r\nlib_deps =\r\n  Adafruit Motor Shield library\r\n  Adafruit NeoPixel\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"txinto"}}