No Port Select from tools


From one moment to the next, I went through the Tools --> Ports option.
The option doesn't show me the ports in version 1.8.19, and in versions 2.x, it lets me select them, but then gives an error as if the port doesn't exist.
In the photo, I show the situation, and the Device Manager shows that there are 3 ports available.
I previously ran a port communication check with software like Realtherm, communicating with Arduino 1, and they are functional.
I've already reinstalled, and nothing.

I appreciate your help in advance with this issue

What does the IDE show?

Hi @LFCA2005.

Do you have the "STM32 MCU based boards" platform (AKA "STM32duino") installed? There was a bug in an older version of that platform that caused it to break the Tools > Port menu of Arduino IDE 1.x:

Providing a vague description of the error is not helpful. Please provide the full and exact text of the error in a reply here on the forum topic.

Sometimes updating your IDE is helpful! I used to use this one and a similar error occurred with me. If you don’t want to update your entire IDE, I’d recommend trying out Arduino cloud.

Similar problem to what is discussed in this thread https://forum.arduino.cc/t/arduino-ide-1-8-19-in-tools-menu-port-grayed-out/1287639/1

Running Arduino IDE 1.8.19 from command line on linux, I get the following:

Picked up JAVA_TOOL_OPTIONS: 
Exception in thread "cc.arduino.packages.discoverers.serial.SerialDiscovery" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
	at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
	at java.util.LinkedList.get(LinkedList.java:476)
	at processing.app.Platform.resolveDeviceByVendorIdProductId(Platform.java:188)
	at cc.arduino.packages.discoverers.serial.SerialDiscovery.forceRefresh(SerialDiscovery.java:166)
	at cc.arduino.packages.discoverers.serial.SerialDiscovery$1.run(SerialDiscovery.java:96)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

Problem is caused by the ESP32 board package by Expressif Systems version 3.3.1, vid with no pid for the FoBE Quill ESP32S3 Mesh FH4R2. Commenting out the two vid lines with no accompanying pid corrects the problem.

52128 ##############################################################
52129 
52130 # FoBE Quill ESP32S3 Mesh FH4R2
52131 
52132 fobe_quill_esp32s3_mesh.name=FoBE Quill ESP32S3 Mesh
52133 fobe_quill_esp32s3_mesh.vid.0=0x303a
52134 fobe_quill_esp32s3_mesh.pid.0=0x82f4
52135 fobe_quill_esp32s3_mesh.vid.1=0x303a
52136 fobe_quill_esp32s3_mesh.vid.1=0x82f5
52137 fobe_quill_esp32s3_mesh.vid.2=0x303a
52138 fobe_quill_esp32s3_mesh.pid.2=0x82f6

Great work identifying the cause of the problem @david_2018!

The bug in the "esp32" boards platform has been fixed:

The fix was released today in version 3.3.2 of the platform. So affected users can simply update to the latest version. If you don't see version 3.3.2 in your Boards Manager, make sure you have added the additional URL to your Arduino IDE preferences, according to the official installation instructions for the "esp32" platform:

I also see that some improvements have been made to the system the maintainers of the "esp32" platform set up for validating the board definitions:

This should reduce the likelihood of more regressions being introduced into the platform as board definitions are added or modified.