discoveries not isolated with different protocols #711
Labels
topic: CLI
Related to Arduino CLI
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
If a custom discovery lists a port with the same address as another port, but a different protocol, then Arduino-IDE should treat them as separate ports. This is how the Arduino-cli works and the 1.X IDE.
The 2.0 IDE groups them together and only shows one device, with the protocol determined by which discovery reported the added device first.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In the setup above, any comm port connected to the system should be listed twice, once under 'serial' protocol, and once under 'newprotocol'.
Debug Lines
For my testing, I have an Arduino device. serial-discovery sees it as:
A second discovery I'm running (quarto-discovery) sees that same port as
I then run arduino-ide rc2 in verbose mode and when I plug in my device, I sometimes get:
In this case, the serial-discovery return is ignored. Other times, I get
and in this case quarto-discovery's return is ignored.
I've run the same test with arduino-cli and there I get:
where the two discoveries do not conflict and it adds COM16 twice, once with each protocol.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: