Skip to content

Board Selector only updates on board selection via other interfaces if associated port is selected #1206

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 Jul 18, 2022 · 0 comments · Fixed by #1214
Closed
3 tasks done
Assignees
Labels
conclusion: resolved Issue was resolved 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 Jul 18, 2022

Describe the problem

Arduino IDE 2.x offers three ways for the user to select a board for compilation and upload:

  • Tools > Board menu
  • "Board Selector" menu
  • "Select Board" dialog

In addition to a board selection interface, the "Board Selector" also provides the most prominent indicator of which board is selected (in addition to the selection being shown in the status bar and Tools > Board menu).

Under any of the following conditions, the "Board Selector" will not update after a different board is selected from the Tools > Board menu or "Select Board" dialog:

🐛 The board selection indicated by the "Board Selector" is not the one which will be used for compiling and uploading, which is sure to be confusing to the user.

To reproduce

  1. Select a board that is not associated with the currently selected port from the Tools > Board menu in the Arduino IDE.
    If you don't have a port selected, you can select any board.
  2. If the selected port was associated with the board selected before starting the instructions, repeat step (1).
    🐛 The "Board Selector" does not update to show the currently selected board:
    image
  3. Select File > Preferences... from the Arduino IDE menus.
  4. Check the box next to Show verbose output during > ☐ compile.
  5. Click the OK button.
  6. Select Sketch > Verify/Compile from the Arduino IDE menus.
    😕 The sketch is compiled for the board selected in the Tools > Board menu:
    Using board 'uno' from platform in folder: C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
    
  7. Open the "Board Selector" menu.
  8. Click on "Select other board and port...".
  9. Select a board that is not associated with the currently selected port from the "Select Board" dialog.
    🐛 The "Board Selector" does not update to show the currently selected board:

Expected behavior

"Board Selector" always shows the currently selected board.

Arduino IDE version

2.0.0-rc8-snapshot-ed41b25

Operating system

Windows

Operating system version

10

Additional context

I bisected the introduction of the issue to 4f27725 (does not occur when using the build for the previous commit 73835ec).


Also reported at: https://forum.arduino.cc/t/cpu-utilization-very-high/941187/44

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 Jul 18, 2022
@per1234 per1234 changed the title Board Selector only updates on "Tools > Board" selection change if associated port is selected Board Selector only updates on board selection via other interfaces if associated port is selected Jul 18, 2022
@per1234 per1234 linked a pull request Jul 19, 2022 that will close this issue
4 tasks
@per1234 per1234 added the conclusion: resolved Issue was resolved label Jul 19, 2022
@per1234 per1234 closed this as completed Jul 19, 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 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.

2 participants