Description
Describe the problem
Arduino IDE's "Firmware Updater" and "Upload SSL Root Certificates" features allow the user to update the supplemental modules found on some Arduino boards.
The "Select Board" menu in these dialogs lists all the discovered board+ports of boards supported by the feature, from which the user can select the intended target.
🐛 Once the user has selected an item from the menu, it will remain selected even after that board+port is no longer available. This might cause confusion for the users.
To reproduce
Equipment
- Any board that is supported by the Arduino Firmware Uploader:
Steps
- Select Tools > Firmware Updater from the Arduino IDE menus.
- If it is not already connected, connect the board to your computer with a USB cable.
- Expand the "Select Board" menu.
🙂 All connected supported board+ports are listed in the menu. - Unplug the USB cable of the board from your computer.
🙂 The board+port that was disconnected from the computer is no longer listed in the menu. - Connect the board to your computer with a USB cable.
- Select the board+port from the "Select Board" menu.
- Unplug the USB cable of the board from your computer.
🐛 The board+port is still shown as selected in the menu. - Click the X icon at the top right corner of the Firmware Updater dialog.
- Select Tools > Firmware Updater from the Arduino IDE menus.
🐛 The previously selected board+port is still shown as selected in the menu even though it is no longer connected to the computer.
Expected behavior
The menu goes back to the "Select a board..." state if the previously selected board+port is no longer discovered.
Arduino IDE version
2.2.1
Operating system
Windows
Operating system version
11
Additional context
I bisected the regression to 69ae38e (does not occur with the build from the previous commit 9a6a457).
I used the "Firmware Updater" feature in the demonstration above, but the behavior is the same in "Upload SSL Root Certificates" as well.
An example of when this might cause confusion is when updating the firmware or uploading certificates to the UNO R4 WiFi board. After the process is completed, the board is left in a state where it is no longer discovered as a supported board and can not be used with these features until it has been power cycled (a requirement which is currently not communicated to the user: #2220). The user might be misled by the presence of the board in the menu into thinking the board was still available for subsequent firmware updates or certificate uploads.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details