-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Installing contributed board package breaks other boards packages #4593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The problem is caused by the file
So it sounds like since the folder structure of your tools is already creating You will also need to change the line in your platform.txt I think it would be a very good idea to make the IDE be able to handle errors in a hardware package without breaking other packages. We have beginners installing packages made by 3rd parties so the IDE needs to be fairly resilient to things like this. |
After those changes when I try to compile for Arduino/Genuino Uno(using Arduino IDE 1.6.7 or 1.6.8 2016/02/19 10:33) I get:
So I changed
to:
in
to:
in package_elektor_111_index.json I don't encounter the same problem with avrdude. Again, this seems less than ideal that one package can break another package so easily, would be nice if the IDE was able to handle this. |
Excellent! Your suggestions solved all the problems I was seeing. You also confirmed my suspicion that tool folders must have unique names even though they reside on different paths. The board manager & library manager will need better documentation because it is pretty complicated to get something working properly. |
@ElektorLabs I'm not sure you should close this issue. Sure we have solved your problem(hopefully), but maybe the developers could look at this and see if there is a way to make the IDE handle these sorts of things without breaking other packages. It seems reasonable to allow multiple packages to have the same tool name. |
The cause is up again. See http://forum.arduino.cc/index.php?topic=391429.msg2695845#msg2695845 |
I have created a new issue for the problem caused by builtin_tools_versions.txt: #6474 since this issue report got a bit long from us figuring out the problem and it's difficult to reproduce the issue only from the information given here. I can't reproduce the second issue that was caused by a non-unique tool name (#4593 (comment)). I remember that was fixed in Arduino IDE 1.6.11. |
After wrestling many hours with this problem I can only conclude that I have hit a bug. I have created my own contributed boards package that includes a platform and a toolchain. Installation of it (Windows only) works fine, all the files are placed where they should go, "hardware" and "tools" folders are created, etc., boards are available in the IDE. Perfect, no warnings, no errors. Only one problem remains: the compiler path from platform.txt is not recognized and remains empty. That this happens for my package I can accept as I may have made a mistake (even though I have tried everything possible), but after installing my package other packages that I have installed like Intel Arduino 101 stop working with the same problem: empty compiler path.
Arduino 101 IDE output sample with my package not installed, the arc32 compiler is found (the base path is C:\Users\CPV\AppData\Local\Arduino15\packages\Intel\tools\arc-elf32\1.6.4+1.0/):
Example, IDE Arduino 101 output sample with my package installed, the arc32 compiler is no longer found (the base path is empty):
My JSON file can be found here so you can try for yourself:
https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_elektor_111_index.json
First install "Intel Curie boards by Intel version 1.0.4", compile an empty sketch (empty loop & setup functions as created by the IDE when opened) for the Arduino 101 board: OK. Then install my package "Elektor AVR Boards by Elektor.Labs version 1.1.1", compile the empty sketch again for the Arduino 101 board: FAIL. Uninstall my package, recompile the empty sketch once more for the Arduino 101: OK.
This is driving me crazy, what the diggins is wrong?
Clemens
The text was updated successfully, but these errors were encountered: