{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platformio-core/issues/837","repository_url":"https://api.github.com/repos/platformio/platformio-core","labels_url":"https://api.github.com/repos/platformio/platformio-core/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio-core/issues/837/comments","events_url":"https://api.github.com/repos/platformio/platformio-core/issues/837/events","html_url":"https://github.com/platformio/platformio-core/issues/837","id":191294884,"number":837,"title":"LDF C++ parser error","user":{"login":"blackketter","id":131679,"avatar_url":"https://avatars.githubusercontent.com/u/131679?v=3","gravatar_id":"","url":"https://api.github.com/users/blackketter","html_url":"https://github.com/blackketter","followers_url":"https://api.github.com/users/blackketter/followers","following_url":"https://api.github.com/users/blackketter/following{/other_user}","gists_url":"https://api.github.com/users/blackketter/gists{/gist_id}","starred_url":"https://api.github.com/users/blackketter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackketter/subscriptions","organizations_url":"https://api.github.com/users/blackketter/orgs","repos_url":"https://api.github.com/users/blackketter/repos","events_url":"https://api.github.com/users/blackketter/events{/privacy}","received_events_url":"https://api.github.com/users/blackketter/received_events","type":"User","site_admin":false},"labels":[{"id":98296560,"url":"https://api.github.com/repos/platformio/platformio-core/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"ivankravets","id":1760209,"avatar_url":"https://avatars.githubusercontent.com/u/1760209?v=3","gravatar_id":"","url":"https://api.github.com/users/ivankravets","html_url":"https://github.com/ivankravets","followers_url":"https://api.github.com/users/ivankravets/followers","following_url":"https://api.github.com/users/ivankravets/following{/other_user}","gists_url":"https://api.github.com/users/ivankravets/gists{/gist_id}","starred_url":"https://api.github.com/users/ivankravets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivankravets/subscriptions","organizations_url":"https://api.github.com/users/ivankravets/orgs","repos_url":"https://api.github.com/users/ivankravets/repos","events_url":"https://api.github.com/users/ivankravets/events{/privacy}","received_events_url":"https://api.github.com/users/ivankravets/received_events","type":"User","site_admin":false},"assignees":[{"login":"ivankravets","id":1760209,"avatar_url":"https://avatars.githubusercontent.com/u/1760209?v=3","gravatar_id":"","url":"https://api.github.com/users/ivankravets","html_url":"https://github.com/ivankravets","followers_url":"https://api.github.com/users/ivankravets/followers","following_url":"https://api.github.com/users/ivankravets/following{/other_user}","gists_url":"https://api.github.com/users/ivankravets/gists{/gist_id}","starred_url":"https://api.github.com/users/ivankravets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivankravets/subscriptions","organizations_url":"https://api.github.com/users/ivankravets/orgs","repos_url":"https://api.github.com/users/ivankravets/repos","events_url":"https://api.github.com/users/ivankravets/events{/privacy}","received_events_url":"https://api.github.com/users/ivankravets/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/platformio/platformio-core/milestones/52","html_url":"https://github.com/platformio/platformio-core/milestones/3.2.0","labels_url":"https://api.github.com/repos/platformio/platformio-core/milestones/52/labels","id":2014596,"number":52,"title":"3.2.0","description":"","creator":{"login":"ivankravets","id":1760209,"avatar_url":"https://avatars.githubusercontent.com/u/1760209?v=3","gravatar_id":"","url":"https://api.github.com/users/ivankravets","html_url":"https://github.com/ivankravets","followers_url":"https://api.github.com/users/ivankravets/followers","following_url":"https://api.github.com/users/ivankravets/following{/other_user}","gists_url":"https://api.github.com/users/ivankravets/gists{/gist_id}","starred_url":"https://api.github.com/users/ivankravets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivankravets/subscriptions","organizations_url":"https://api.github.com/users/ivankravets/orgs","repos_url":"https://api.github.com/users/ivankravets/repos","events_url":"https://api.github.com/users/ivankravets/events{/privacy}","received_events_url":"https://api.github.com/users/ivankravets/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":14,"state":"open","created_at":"2016-09-19T18:14:58Z","updated_at":"2016-11-30T17:38:00Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-11-23T15:00:23Z","updated_at":"2016-11-30T18:08:39Z","closed_at":"2016-11-30T17:38:00Z","body":"I'm building platformio.ini file that targets two different architectures (ESP8266 and Teensy3) and need to include different sets of libraries. I'm using lib_deps and lib_ignore successfully, but the LDF C++ parser seems to be failing for me here. It is including both libraries in the build, though it should only include the first.\r\n\r\nThe code in the header file looks like this:\r\n\r\n#if TEENSY31 == 1\r\n#include <ILI9341_t3.h>\r\n#else\r\n#include <Adafruit_ILI9341.h>\r\n#endif\r\nand the platformio.ini flag looks like this:\r\n\r\nbuild_flags = -O -D TEENSY31=1 -UUSB_SERIAL -DARDUINO_ARCH_AVR -DUSB_SERIAL_HID -DLAYOUT_US_ENGLISH -I./src\r\nBut the graph looks like this:\r\n\r\n|-- <ILI9341_t3>\r\n|   |-- <SPI> v1.0\r\n...\r\n|-- <Adafruit ILI9341> v1.0.0\r\n|   |-- <Adafruit GFX Library> v1.1.5\r\n|   |-- <SPI> v1.0\r\nIf I simply delete the line:\r\n\r\n#include <Adafruit_ILI9341.h>\r\nIt builds fine.\r\n\r\nAttached is a trivial example to reproduce:\r\n\r\n[ldftest.zip](https://github.com/platformio/platformio/files/609151/ldftest.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/platformio/platformio-core/issues/comments/263948494","html_url":"https://github.com/platformio/platformio-core/issues/837#issuecomment-263948494","issue_url":"https://api.github.com/repos/platformio/platformio-core/issues/837","id":263948494,"user":{"login":"blackketter","id":131679,"avatar_url":"https://avatars.githubusercontent.com/u/131679?v=3","gravatar_id":"","url":"https://api.github.com/users/blackketter","html_url":"https://github.com/blackketter","followers_url":"https://api.github.com/users/blackketter/followers","following_url":"https://api.github.com/users/blackketter/following{/other_user}","gists_url":"https://api.github.com/users/blackketter/gists{/gist_id}","starred_url":"https://api.github.com/users/blackketter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackketter/subscriptions","organizations_url":"https://api.github.com/users/blackketter/orgs","repos_url":"https://api.github.com/users/blackketter/repos","events_url":"https://api.github.com/users/blackketter/events{/privacy}","received_events_url":"https://api.github.com/users/blackketter/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T18:08:39Z","updated_at":"2016-11-30T18:08:39Z","body":"AHA!  I see.   I was confused as to why the ILI9341_t3 library didn't need to be specified but the Adafruit ones did.\r\n\r\nThe ILI9341_t3 library is part of framework-arduinoteensy and is automatically available, though not visible via `pio lib list` \r\n\r\nEverything is working as expected now.\r\n "}}
{"actor":{"display_login":"blackketter"}}