Custom board option selection made in one window affects other windows as well #2240
Closed
3 tasks done
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Arduino boards platform authors can define arbitrary custom board options to provide additional configurability for a given board selection. These options are presented to the Arduino IDE user as arbitrary submenus under the IDE's Tools menu.
🐛 If the user changes the setting in a custom board option menu in one menu, compilations and uploads for the board in other windows will also use that custom board option setting instead of the one the user had selected in that window.
To reproduce
I will refer to the IDE window that opens as "window A" from here on.
The "Preferences" dialog will open.
ⓘ This board was selected arbitrarily for the demo. The fault will occur with any board that has a custom board option.
ⓘ This setting was selected arbitrarily for the demo. The fault will occur with any custom board option setting.
🙂 The FQBN shown there is as expected for the custom board option setting:
I will refer to the IDE window that opens as "window B" from here on.
🙂 The FQBN shown there is as expected for the custom board option setting:
🙂 The ATmega328P (Old bootloader) setting you chose in step (6) is still selected, as expected.
🐛 The FQBN shown there does not match the setting of the window's Tools > Processor menu. Instead, it is the FQBN for the setting made in "window B":
Expected behavior
The board selection in each IDE window can be configured independently without any effect on the configuration of other windows.
Arduino IDE version
ed2d8ad
Operating system
Windows
Operating system version
11
Additional context
I checked for the fault in various IDE versions going all the way back to 2.0.0-beta.1 and was able to reproduce it with all of them. So it seems this is not a regression.
I looked for existing issues without finding any, but it is possible there might be some that are reports of the final symptoms of an unexpected configuration being applied to a given board (e.g., an upload failure) instead of the immediate symptom of incorrect content in the compilation output as I was able to identify and report here.
Workaround
Select the desired settings from each custom board option menu before compiling or uploading, even though the IDE's GUI shows the desired setting is already selected from the menu.
Issue checklist
The text was updated successfully, but these errors were encountered: