arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.32k stars 393 forks source link

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

Open aliphys opened 2 years ago

aliphys commented 2 years ago

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:

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

aliphys commented 2 years ago

Related issue: