Skip to content

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

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

Closed
3 tasks done
per1234 opened this issue Sep 2, 2022 · 0 comments · Fixed by #1412
Closed
3 tasks done

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

per1234 opened this issue Sep 2, 2022 · 0 comments · Fixed by #1412
Assignees
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Sep 2, 2022

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
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Sep 2, 2022
@ubidefeo ubidefeo added the criticality: medium Of moderate impact label Sep 2, 2022
@davegarthsimpson davegarthsimpson linked a pull request Sep 7, 2022 that will close this issue
4 tasks
davegarthsimpson added a commit that referenced this issue Sep 15, 2022
* fallback to port.address if addressLabel is false

* addressLabel if possible, reconcileAvailableBoards

* remove fallback
@per1234 per1234 added the conclusion: resolved Issue was resolved label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants