{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3740","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3740/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3740/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3740/events","html_url":"https://github.com/arduino/Arduino/issues/3740","id":103605424,"number":3740,"title":"Executing the arduino in console mode does not work when building non-Arduino packages","user":{"login":"fallberg","id":5872966,"avatar_url":"https://avatars.githubusercontent.com/u/5872966?v=3","gravatar_id":"","url":"https://api.github.com/users/fallberg","html_url":"https://github.com/fallberg","followers_url":"https://api.github.com/users/fallberg/followers","following_url":"https://api.github.com/users/fallberg/following{/other_user}","gists_url":"https://api.github.com/users/fallberg/gists{/gist_id}","starred_url":"https://api.github.com/users/fallberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fallberg/subscriptions","organizations_url":"https://api.github.com/users/fallberg/orgs","repos_url":"https://api.github.com/users/fallberg/repos","events_url":"https://api.github.com/users/fallberg/events{/privacy}","received_events_url":"https://api.github.com/users/fallberg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Component:%20IDE","name":"Component: IDE","color":"009800"},{"url":"https://api.github.com/repos/arduino/Arduino/labels/Waiting%20for%20feedback","name":"Waiting for feedback","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arduino/Arduino/milestones/15","html_url":"https://github.com/arduino/Arduino/milestones/Release%201.6.6","labels_url":"https://api.github.com/repos/arduino/Arduino/milestones/15/labels","id":1158070,"number":15,"title":"Release 1.6.6","description":"","creator":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":499,"state":"open","created_at":"2015-06-10T07:48:32Z","updated_at":"2015-09-08T15:43:35Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-08-27T22:08:44Z","updated_at":"2015-09-08T18:02:36Z","closed_at":null,"body":"When the arduino IDE is invoked in command line mode to compile a sketch, it does not reference the proper libraries.\r\nWhen executed in GUI mode it does compile properly.\r\nEither there is a \"secret\" argument that needs to be passed for the library manager to search in the correct location for a given package, or this is a bug:\r\n```\r\n/opt/arduino-1.6.5/arduino --verify -v --board esp8266:esp8266:generic --pref sketchbook.path=<path to sketchbook> <path to sketch>\r\n```\r\n**Result:**\r\n```\r\nUsing library SPI in folder: /opt/arduino-1.6.5/hardware/arduino/avr/libraries/SPI\r\nWARNING: library SPI claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/138650873","html_url":"https://github.com/arduino/Arduino/issues/3740#issuecomment-138650873","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3740","id":138650873,"user":{"login":"fallberg","id":5872966,"avatar_url":"https://avatars.githubusercontent.com/u/5872966?v=3","gravatar_id":"","url":"https://api.github.com/users/fallberg","html_url":"https://github.com/fallberg","followers_url":"https://api.github.com/users/fallberg/followers","following_url":"https://api.github.com/users/fallberg/following{/other_user}","gists_url":"https://api.github.com/users/fallberg/gists{/gist_id}","starred_url":"https://api.github.com/users/fallberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fallberg/subscriptions","organizations_url":"https://api.github.com/users/fallberg/orgs","repos_url":"https://api.github.com/users/fallberg/repos","events_url":"https://api.github.com/users/fallberg/events{/privacy}","received_events_url":"https://api.github.com/users/fallberg/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T18:02:36Z","updated_at":"2015-09-08T18:02:36Z","body":"@ffissore Yes. It seem to work better now. I do get this but it compiles and links.\r\nInvalid library found in /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/esp8266: /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/esp8266\r\nInvalid library found in /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/esp8266: /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/esp8266\r\nVerifying...\r\nUsing library SPI at version 1.0.0 in folder: /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/SPI\r\nUsing library MySensors in folder: /var/lib/jenkins/jobs/MySensorsArduinoPR/workspace/libraries/MySensors (legacy)\r\nUsing library EEPROM at version 1.0.0 in folder: /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/EEPROM\r\nUsing library ESP8266WiFi at version 1.0.0 in folder: /home/fallberg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/libraries/ESP8266WiFi\r\n"}}