-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Custom menu selection text doesn't update after changing boards when menu ID is different but menu text is the same as a previously selected board #5260
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
this remembers me about an old issue involving underscores in the submenu definitions.
|
I tried it with the |
Ok, following your instructions I can reproduce the issue. Fixing this bug requires touching the submenu selection logic in the IDE (that is quite complex really) and it will not happen for 1.6.11, I'm setting the milestone for this bug to 1.6.12. |
Yes, it works correctly. Thanks for looking into this. I agree it's not a high priority bug. To fix this specific case I only need to change the MENU_ID to |
Hi is there already an solution available? |
There is no solution yet to the bug in the Arduino IDE. However, the workaround for the issue is to change the menu label text in one of the boards.txt files. The issue only occurs when multiple boards.txt files use the same menu label text. In the particular case of having both the ESP8266 and ESP32 cores installed, that could be done by changing line 1 of the ESP32 boards.txt from:
to:
(or whatever text you prefer, as long as it's not "Upload Speed"). Of course you could change the ESP8266 boards.txt instead if you prefer. Note that you'll need to redo this every time you update to a new version of the ESP32 core. |
Hi, |
That's correct. That line defines the menu label text for all the ESP32 boards that have an |
platform.getId() gives the same result for derived cores. Issue arduino#5260 is caused by both cores declaring as `avr`, with the same label but different identifier. This patch completes the previous one by adding the folder where the core resides to the matching id.
platform.getId() gives the same result for derived cores. Issue #5260 is caused by both cores declaring as `avr`, with the same label but different identifier. This patch completes the previous one by adding the folder where the core resides to the matching id.
Using Arduino IDE 1.6.11 Hourly Build 2016/08/16 11:33 with Windows 7 64 bit
Now look at the selection text shown in quotes next to the Tools > Board > Processor menu item:

Processor: ATmega2560 (Mega 2560)
. I you select the Tools > Board > Processor menu you can see that it doesn't have anATmega2560 (Mega 2560)
option. That text has been left over from the previous board selection. Even after changing the Processor menu selection the menu item text doesn't change.This only occurs when the menu ID value in boards.txt is different from the Arduino AVR Boards(or any other core) value but the menu text value in boards.txt is the same as the other core's value. In this case:
If this is changed to
menu.cpu=Processor
(the same as Arduino AVR Boards) then the issue doesn't occur.If it's changed to
menu.processor=CPU
then the issue doesn't occur.If it's changed to
menu.avr_boot_processor=Processor
the issue does occur.EDIT 2017-07-06: I checked with Arduino IDE 1.8.3 and the issue still occurs after following the steps above..
The text was updated successfully, but these errors were encountered: