Skip to content
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

Multiple boards/ports are shown as selected in "Board Selector" menu #928

Closed
3 tasks done
GClairet opened this issue Mar 24, 2022 · 5 comments · Fixed by #1328
Closed
3 tasks done

Multiple boards/ports are shown as selected in "Board Selector" menu #928

GClairet opened this issue Mar 24, 2022 · 5 comments · Fixed by #1328
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

@GClairet
Copy link

GClairet commented Mar 24, 2022

Describe the problem

On Win10 Pro x64, with my Arduino Micro, after I upload the firmware, the COM port is resetted to the first COM port in the list (COM1) instead of returning to the COM9 in my case. With the serial monitor or serial plotter I have to reselect the COM port each time and I miss the beginning of the frames.

To reproduce

Select a COM port, run the serial monitor, compile and upload firmware: after uploading, the COM port has charged.
Maybe something to help, when I click on the COM port list, 2 COM ports are selected: COM9 and COM1. I have not managed to unselect the COM1.
image

Expected behavior

Returning automatically to the previously selected COM port (COM9) after uploading.

Arduino IDE version

2.0.0-rc5

Operating system

Windows

Operating system version

10 Pro x64 (20H2)

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
@GClairet GClairet added the type: imperfection Perceived defect in any part of project label Mar 24, 2022
@per1234 per1234 self-assigned this Mar 24, 2022
@per1234 per1234 added the topic: code Related to content of the project itself label Mar 24, 2022
@per1234
Copy link
Contributor

per1234 commented Mar 31, 2022

Thanks for your report @GClairet.

the COM port is resetted to the first COM port in the list (COM1) instead of returning to the COM9

We already have a report about the port change at #710

when I click on the COM port list, 2 COM ports are selected: COM9 and COM1. I have not managed to unselect the COM1.

I'm not aware of any previous reports of this bug (though I vaguely recollect encountering it myself), so let's make this issue about that exclusively. Feel free to comment on #710 if you have any new information on the port switch bug.

I did my best to reproduce this multiple port selection bug but didn't manage to accomplish it. Does it occur for you consistently?

@GClairet
Copy link
Author

GClairet commented Apr 6, 2022

Hi per1234,
OK for the report #710, I will read it.
Concerning the 2 COM ports selected, the bug bothered me for 2 days before finding out what manipulation triggered it. I think I selected the COM port by the menu "Tools/Port: " and later, after having unplugged-replugged my Arduino Micro into another USB port without closing Arduino 2.0, I re-selected the port by the drop-down list near the save button. I also remember clicking the "Select other board and port..." link in that drop-down list.
The bug remained after relaunching Arduino IDE 2.0. Only rebooting the PC cleared the selection of 2 COM ports.
Maybe the multiple ways to change this setting is the cause or maybe I used it wrong.
Now only I use the "Tools/Port: " menu to select the port and only use the drop list to check which port is selected.

@per1234 per1234 changed the title COM port number reset after upload Multiple boards/ports are shown as selected in "Board Selector" menu May 18, 2022
@davegarthsimpson
Copy link
Contributor

davegarthsimpson commented Sep 1, 2022

Was this fixed @davegarthsimpson?

yes from my own testing this was fixed by this PR.

@per1234 if you get the chance it'd be great to get your confirmation!

I could reproduce it easily with a bluetooth port:

  1. Plug in a board on port X, select the board + port X from the selector dropdown;
  2. Using the "Select other board and port..." menu, change port to a bluetooth one, with no board recognised on it (Unknown), keeping the same board selected;
  3. Reselect port X from the board selector dropdown;
    bug: double selection

@per1234
Copy link
Contributor

per1234 commented Sep 1, 2022

Thanks so much for those instructions Dave. I verified it was fixed by #1328 (I can still reproduce it while using the build from the previous commit).

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.

4 participants