{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2982","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2982/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2982/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2982/events","html_url":"https://github.com/arduino/Arduino/issues/2982","id":68668763,"number":2982,"title":"IDE 1.6.2 platform.txt uses new undefined platform variable runtime.tools.avr-gcc.path","user":{"login":"jantje","id":1175841,"avatar_url":"https://avatars.githubusercontent.com/u/1175841?v=3","gravatar_id":"","url":"https://api.github.com/users/jantje","html_url":"https://github.com/jantje","followers_url":"https://api.github.com/users/jantje/followers","following_url":"https://api.github.com/users/jantje/following{/other_user}","gists_url":"https://api.github.com/users/jantje/gists{/gist_id}","starred_url":"https://api.github.com/users/jantje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantje/subscriptions","organizations_url":"https://api.github.com/users/jantje/orgs","repos_url":"https://api.github.com/users/jantje/repos","events_url":"https://api.github.com/users/jantje/events{/privacy}","received_events_url":"https://api.github.com/users/jantje/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Component:%20Board/Lib%20Manager","name":"Component: Board/Lib Manager","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-15T12:29:52Z","updated_at":"2015-04-28T07:37:59Z","closed_at":null,"body":"The arduino eclipse plugin does not work with arduino IDE 1.6.2 and 1.6.3\r\nThe reason is the definition of compiler.path in platform.txt\r\nIn Arduino IDE 1.6.1 in avr it is defined as\r\ncompiler.path={runtime.ide.path}/hardware/tools/avr/bin/\r\nIn Arduino IDE 1.6.2 and 1.6.3 in avr it is defined as\r\ncompiler.path={runtime.tools.avr-gcc.path}/bin/\r\n\r\nThe problem is that runtime.tools.avr-gcc.path is not defined in the platform.txt so it adds another unneeded and probably undocumented environment variable.\r\n\r\nThere is a very similar situation with sam\r\n\r\nCan we revert back to the old way?\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/96963025","html_url":"https://github.com/arduino/Arduino/issues/2982#issuecomment-96963025","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/2982","id":96963025,"user":{"login":"matthijskooijman","id":194491,"avatar_url":"https://avatars.githubusercontent.com/u/194491?v=3","gravatar_id":"","url":"https://api.github.com/users/matthijskooijman","html_url":"https://github.com/matthijskooijman","followers_url":"https://api.github.com/users/matthijskooijman/followers","following_url":"https://api.github.com/users/matthijskooijman/following{/other_user}","gists_url":"https://api.github.com/users/matthijskooijman/gists{/gist_id}","starred_url":"https://api.github.com/users/matthijskooijman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthijskooijman/subscriptions","organizations_url":"https://api.github.com/users/matthijskooijman/orgs","repos_url":"https://api.github.com/users/matthijskooijman/repos","events_url":"https://api.github.com/users/matthijskooijman/events{/privacy}","received_events_url":"https://api.github.com/users/matthijskooijman/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T07:37:59Z","updated_at":"2015-04-28T07:37:59Z","body":"> However -from my point of view- it moves the problem of finding the right toolchain location from the platform (commercial) provider to the tool provider (non commercial) :-(. \r\n\r\nI don't think this commercial / non-commercial distinction always applies. Also, doing it like this simply makes sense from a technical perspective - it puts the burden of locating the toolchain at the \"tool provider\", which is really the only one that can know where it is installed. In your case, I think, it's a bit more complicated because you use the Arduino IDE installation to provide the toolchain, so your tool has to hardcode the path within the IDE installation, since there is not any way to query the IDE for toolchain locations. That might actually be worth considering - having a commandline option that prints toolchain locations and other automatic variables like these. I'm not sure off-hand how easy these would be to implement - IIRC the preferences/recipe variables are a bit intermixed and scattered throughout the code.\r\n\r\n> I'm wondering: will 1 arduino IDE installation support 1 or more toolchain(s) for each architecture?\r\nIf more are supported (and there are already as you can install the avr toolchain with the library) how will the arduino IDE (and the toolprovider) know which version to use?\r\n\r\nI'm not sure if any support for this is present now (I think not). However, I think it could be implemented reasonably simply, just have the IDE track multiple versions of the toolchain, let the user select the one to use and then set the `runtime.tools.avr-gcc.path` to the selected one?"}}