Skip to content

Label of unidentified port missing in "Board Selector" after opening new window #1383

Closed
@per1234

Description

@per1234

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

  1. Select the port from the Tools > Port menu in the Arduino IDE.
  2. 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.
  3. Open the "Board Selector" menu.
    🙂 The port label is shown in the menu selection, as expected:
    image
  4. Select File > New from the Arduino IDE menus.
  5. Open the Tools > Port menu in the new window.
    🙂 The port is still selected, as expected:
    image
  6. Open the "Board Selector" menu in the new window.
    🐛 The port label is missing from the menu selection:
    image

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions