Skip to content

Annotate custom menu to avoid name clashing #8880

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

Merged
merged 3 commits into from
Jul 18, 2019

Conversation

facchinm
Copy link
Member

Fixes #5260

@per1234 @hasenradball can you test in your environment too? Thanks!

@facchinm facchinm added the Component: IDE user interface The Arduino IDE's user interface label May 14, 2019
@facchinm facchinm added this to the Release 1.8.10 milestone May 14, 2019
@hasenradball
Copy link

@facchinm Hi just replace the java file in my Arduino path?

@facchinm
Copy link
Member Author

You can grab the right package for your OS, unzip it and run arduino executable from there.

@per1234
Copy link
Collaborator

per1234 commented May 14, 2019

@facchinm using test build 854, I can no longer reproduce the problem with the "Upload Speed" menu of the ESP32 and ESP8266 cores. However, I can still reproduce the original issue with the "Processor" menu of Arduino AVR Boards' Arduino Mega and Mega 2560 and avr_boot's ATmega328/P boards:
Clipboard02
I haven't been able to figure out why one was fixed and the other not fixed.

@facchinm
Copy link
Member Author

@per1234 thanks a lot for testing, I'm taking a look immediately

This stuff is truly madness, should be refactored from the ground up by a Java expert
@facchinm
Copy link
Member Author

I pushed a new commit, tested against the original bug and seems to fix it. However that piece of code is really a nightmare and should be refactored by someone who knows Swing sooner or later.

@hasenradball
Copy link

Hi
Upload issue is fixed nothing to complain from my side.
Thank you!

@per1234
Copy link
Collaborator

per1234 commented May 15, 2019

@facchinm still the same problem with the "Processor" menu of Arduino AVR Boards' "Arduino Mega and Mega 2560" and avr_boot's "ATmega328/P" boards for me using build 857.

I notice that if the "Arduino Mega and Mega 2560" board is selected when I start the Arduino IDE and I then select Tools > Board > ATmega328/P, the problem does not occur. I need to select Tools > Board > Arduino Mega and Mega 2560 (even if it was already selected) before selecting Tools > Board > ATmega328/P to reproduce the bug.

@hasenradball
Copy link

Maybe it is a good Idea to do the rework of the code. So if code grows over time without having a good architecture a rework would be the the best. Also if it is hard work or a hard job the result will be a mor structured code.
😉

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.
@per1234
Copy link
Collaborator

per1234 commented May 15, 2019

The issue no longer occurs for me using build 858. Great work @facchinm!

@facchinm facchinm merged commit 2ec8c53 into arduino:master Jul 18, 2019
@facchinm facchinm deleted the no_clash_on_same_label_name branch July 18, 2019 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface
Projects
None yet
4 participants