Apologies if I'm violating protocol.
Nothing on this thread since Oct-2021.
Nothing on github #573 "intermittent failure" since Jul-2022
I'm having the same problem, "No ports discovered" on my Linux Mint 21 machine.
This is not intermittent. Fresh install of Mint 21, IDE-2.0.0 installed (first arduino installed on this machine). IDE runs fine except won't upload for "no upload port provided". Restarts, changing cables, etc. no joy.
If I start the IDE with terminal ./arduino-ide, but with no arduino connected...
then I plug in an arduino board to USB,
these lines are added to the terminal readout (note highlighted):
daemon INFO {"level":"info","msg":"from discovery builtin:serial-discovery received message type: add, port: /dev/ttyUSB0","time":"2022-09-20T14:06:55-07:00"}
daemon INFO {"level":"info","msg":"from discovery builtin:serial-discovery received message type: add, port: /dev/ttyUSB0","time":"2022-09-20T14:06:55-07:00"}
discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyUSB0","label":"/dev/ttyUSB0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x7523"],["serialNumber",""],["vid","0x1a86"]]}},"error":""}
root INFO Attached boards and available ports changed:
root INFO - New port is available on /dev/ttyUSB0 Serial Port (USB)
root INFO ------------------------------------------
daemon INFO {"level":"info","msg":"from discovery builtin:serial-discovery received message type: remove, port: /dev/ttyUSB0","time":"2022-09-20T14:06:56-07:00"}
daemon INFO {"level":"info","msg":"from discovery builtin:serial-discovery received message type: remove, port: /dev/ttyUSB0","time":"2022-09-20T14:06:56-07:00"}
discovery-log INFO {"eventType":"remove","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyUSB0","label":"","protocol":"serial","protocolLabel":"","propertiesMap":[]}},"error":""}
root INFO Attached boards and available ports changed:
root INFO - Port is no longer available on /dev/ttyUSB0 Serial Port (USB)
root INFO ------------------------------------------
When I plug in the board, it is at first recognized, but then immediately removed.
Please help.