arduino-cli
arduino-cli copied to clipboard
`board list` does not list virtual ports
Bug Report
I have copied the bug report from here:
I set up virtual ports on Windows with com0com and mapped COM5 to ARDUINO:

I can confirm, I can see the ports in the Java IDE:

And I can also confirm when I run the board list on the CLI, I cannot see the virtual ports. I think it is a CLI issue. What do you think @masci?
$ ./arduino-cli.exe board list
Port Type Board Name FQBN Core
COM1 Serial Port Unknown
COM5 Serial Port Unknown
$ ./arduino-cli.exe board list --format json
[
{
"address": "COM1",
"protocol": "serial",
"protocol_label": "Serial Port"
},
{
"address": "COM5",
"protocol": "serial",
"protocol_label": "Serial Port"
}
]
Current behavior
The CLI does not return with the virtual ports.
Expected behavior
I can see the exact same port with the CLI as with the Java IDE.
Environment
- CLI version (output of
arduino-cli version): - OS and platform:
Additional context
This is a known missing feature of the underlying go-serial library, marking as feature request with no clear priority.
I believe there is now an upstream feature request for this: https://github.com/bugst/go-serial/issues/85