Skip to content

Board/COM port not updated when board is disconnected/changed #1336

Open
@aliphys

Description

@aliphys

Describe the problem

The Arduino IDE 2.x reliably identifies connected Arduino board and ports. It is possible to view the connected board in the GUI. However, if you remove the board and connect another one, it isn't updated to reflect this change. You have to click on the drop down menu to manually reselect the board that was automatically identified.

To reproduce

Video:

https://loom.com/share/70ce701f376f4a449289bbb836198df7


  1. Open Arduino IDE 2.x
  2. Ensure that NO Arduino boards are connected
  3. Connect a MKR WiFi 1010
  4. If not already selected, choose Arduino MKR WiFi 1000 from the drop down menu
  5. Remove the board. Even though the board is removed, you can see that the board is still there.
  6. Connect a Nano 33 IoT. Now we have connected another board, yet the IDE still displays Arduino MKR WiFi 1000

Expected behavior

I expect that:

  • The IDE would display info when a board is disconnected
  • When a new board is connected (and no other boards are connected to the PC), the IDE automatically selects that board

Arduino IDE version

IDE 2.0.0-rc9.2.nightly-20220818

Operating system

Windows

Operating system version

Windows 10

Additional context

No response

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

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions