Description
Describe the problem
In addition to the traditional Tools > Board/Port menus of Arduino IDE 1.x, Arduino IDE 2.x provides an alternative interface called the "Board Selector" on the toolbar for identifying which board and port is selected, or for changing the the selection.
The "Board Selector" menu items consist of two components:
- board name
- port label
If a board can be identified for a port, that board name is shown automatically in the menu, but the user also has the ability to make an association between any board and and port, which will be reflected in the "Board Selector" menu.
🐛 If the selected port does not have a board identification, the port label will be missing from the selection in the "Board Selector" menu after opening a new Arduino IDE window.
To reproduce
Equipment
Any unidentified port. This could be an internal system port, an Arduino board which does not produce an identification (e.g., classic Arduino Nano), or any other device (e.g., "FTDI" module/cable).
Steps
- Select the port from the Tools > Port menu in the Arduino IDE.
- Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus.
ⓘ The board selection was chosen arbitrarily. Any board selection can be used. - Open the "Board Selector" menu.
🙂 The port label is shown in the menu selection, as expected:
- Select File > New from the Arduino IDE menus.
- Open the Tools > Port menu in the new window.
🙂 The port is still selected, as expected:
- Open the "Board Selector" menu in the new window.
🐛 The port label is missing from the menu selection:
Expected behavior
Port label is always shown in the "Board Selector" menu.
Arduino IDE version
2.0.0-rc9.2.snapshot-0d545be
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
I bisected the introduction of the bug to #1335 (does not occur when using the build from b5f9aa0)
I used the Tools menus in the instructions above in order to make them as clear as possible, but the bug also occurs when the port and board are selected via the "Board Selector" interfaces.
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