Unexpected board+port selection change when board is disconnected #2143
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The port that is currently selected in Arduino IDE may become no longer discoverable under normal operation for any of a number of reasons, including:
Arduino IDE automatically switches to a different board and port selection when the currently selected port is no longer discoverable under the following conditions:
🐛 The automatic board+port switch might be unnoticed or unwanted by the user, which could result in any of the following:
To reproduce
Equipment
This will be referred to as "board A" from here on.
This will be referred to as "board B" from here on.
Demo
❗You must use the board selector instead of the Tools > Port menu for this step.
ⓘ It doesn't matter what you select from the menu, or even if you perform this step at all. It is included in the instructions in order to reflect the typical user journey.
❗You must use the Tools > Port menu instead of the board selector menu for this step.
🐛 The board+port selection unexpectedly reverts to that of "board A".
Expected behavior
The board selection made by the user is retained even after the currently selected port becomes no longer discoverable.
No port is selected in Arduino IDE after the currently selected port becomes no longer discoverable, but that port selection is restored if the port becomes discoverable again later. *
* NOTE: there is special handling of the selected port becoming no longer discoverable during an upload operation. The expectation above is about when the selected port becomes no longer discoverable during operational modes of the IDE other than the upload operation.
Arduino IDE version
f6a4325
Operating system
Operating system version
Additional context
Related: #1319
Issue checklist
The text was updated successfully, but these errors were encountered: