NO PORTS DISCOVERED of IDE 2.0.0 -rc9,rc9.1

Apologies for my lack of knowledge on this.

Everything went well until step #12. here is the message I received in poweshell after connecting the arduino board:

PS C:\Users\adria\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.3.2> ./serial-discovery
HELLO 1 "arduino-cli 0.20.2"
{
  "eventType": "hello",
  "message": "OK",
  "protocolVersion": 1
}
START_SYNC
{
  "eventType": "start_sync",
  "message": "OK"
}
panic: runtime error: index out of range [0] with length 0

goroutine 20 [running]:
go.bug.st/serial/enumerator.retrievePortDetailsFromDevInfo(0xc00004a270, 0xc00004c3c0, 0x4, 0x0)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:351 +0x365
go.bug.st/serial/enumerator.nativeGetDetailedPortsList(0x0, 0x0, 0x0, 0x0, 0x0)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:299 +0x1b1
go.bug.st/serial/enumerator.GetDetailedPortsList(...)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/enumerator.go:31
github.com/arduino/serial-discovery/sync.Start.func2(0xc000088590, 0xc000088580, 0xc0000de0e0)
        /home/build/sync/sync_windows.go:138 +0x1ef
created by github.com/arduino/serial-discovery/sync.Start
        /home/build/sync/sync_windows.go:117 +0xc6
PS C:\Users\adria\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.3.2>

Thanks. This panic would definitely cause Arduino IDE to not discover any serial ports.

I see there is a bug report about the panic here:

The code that panicked can only be reached if ports were detected, but then when more information was requested, it was not available.

If you repeat my instructions from post 17, do you consistently experience the same panic as in the output you shared?

Make sure the USB cable is fully inserted into the Arduino board and the USB port on the computer. It is possible that an intermittent connection could cause the port to appear and disappear intermittently, triggering the panic.

ptillisch,

Thanks again for your incredible help. I tried the steps again and now it is working.
Something I saw when i opened the laptop today was the windows firewall asking if I wanted to block the serial-discovery.exe program from executing. I obviously allowed it to run.
This may have been what was keeping the serial discovery from scanning for the ports.
But now it works! Thanks again for your help!

You are welcome. I'm glad it is working now

The firewall blocking the discovery would definitely be a problem.

I had the same issue with port discovery and for some reason I didn't have a serial-discovery.exe file in my C:\Users<username>\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.3.2 folder.
So for anyone with simmilar case: I just uninstalled the IDE 2.0.0, deleted 1.3.2 folder and installed the IDE back.
Works for now. Thanks for this post, helped a lot.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
>>
PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
>>
PS C:\Program Files\Arduino IDE>
& ".\Arduino IDE"
>>
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.0.1
Starting backend process. PID: 21308
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/DELL/.theia'
root INFO Backend Object.initialize: 3.7 ms [Finished 0.894 s after backend start]
root INFO Backend Object.configure: 3.0 ms [Finished 0.894 s after backend start]
root INFO Backend MessagingContribution.onStart: 1.2 ms [Finished 0.894 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.5 ms [Finished 0.928 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.4 ms [Finished 0.928 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.2 ms [Finished 0.928 s after backend start]
root INFO Backend LocalizationBackendContribution.initialize: 34.0 ms [Finished 0.929 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.929 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 2.2 ms [Finished 0.931 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 0.931 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 0.7 ms [Finished 0.932 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.4 ms [Finished 0.933 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.1 ms [Finished 0.934 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.2 ms [Finished 0.934 s after backend start]
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 0.7 ms [Finished 0.935 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.4 ms [Finished 0.935 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 0.936 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.5 ms [Finished 0.937 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 0.937 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 0.938 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 0.8 ms [Finished 0.939 s after backend start]
root INFO Theia app listening on http://localhost:59210.
root INFO Finished starting backend application: 5.6 ms [Finished 0.942 s after backend start]
root WARN The local plugin referenced by local-dir:/c%3A/Users/DELL/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/DELL/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\DELL\.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
root INFO Resolve plugins list: 275.9 ms [Finished 1.211 s after backend start]
root INFO Deployed backend plugin "cortex-debug@0.3.10" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension": 5.6 ms [Finished 1.217 s after backend start]
root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 3.1 ms [Finished 1.220 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 28.1 ms [Finished 1.249 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 18.0 ms [Finished 1.267 s after backend start]
root INFO Deployed backend plugin "json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 6.4 ms [Finished 1.273 s after backend start]
daemon INFO INFO[0000] Using config file: c:\Users\DELL\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.28.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"56202"}

daemon INFO Daemon is running.
root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 136.4 ms [Finished 1.410 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-cs@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 70.5 ms [Finished 1.480 s after backend start]
daemon INFO INFO[0000] Loading hardware from: c:\Users\DELL\AppData\Local\Arduino15\packages
INFO[0000] Loading package STMicroelectronics from: C:\Users\DELL\AppData\Local\Arduino15\packages\STMicroelectronics\hardware
INFO[0000] Checking signature                            error="opening signature file: open C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm32\\2.3.0\\installed.json.sig: The system cannot find the file specified." index="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm32\\2.3.0\\installed.json" signatureFile="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm32\\2.3.0\\installed.json.sig"
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="STMicroelectronics:stm32@2.3.0"
INFO[0000] Checking existence of 'tools' path: C:\Users\DELL\AppData\Local\Arduino15\packages\STMicroelectronics\tools
INFO[0000] Loading tools from dir: C:\Users\DELL\AppData\Local\Arduino15\packages\STMicroelectronics\tools
INFO[0000] Loaded tool                                   tool="STMicroelectronics:CMSIS@5.7.0"
INFO[0000] Loaded tool                                   tool="STMicroelectronics:STM32Tools@2.1.1"
INFO[0000] Loaded tool                                   tool="STMicroelectronics:xpack-arm-none-eabi-gcc@10.3.1-2.3"
INFO[0000] Loading package arduino from: C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware
INFO[0000] Checking signature                            error="opening signature file: open C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\installed.json.sig: The system cannot find the file specified." index="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\installed.json" signatureFile="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\installed.json.sig"
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="arduino:avr@1.8.5"
INFO[0000] Checking existence of 'tools' path: C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loading tools from dir: C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\tools
INFO[0000] Loaded tool                                   tool="arduino:arduinoOTA@1.3.0"
INFO[0000] Loaded tool                                   tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
INFO[0000] Loaded tool                                   tool="arduino:avrdude@6.3.0-arduino17"
INFO[0000] Loading package builtin from: C:\Users\DELL\AppData\Local\Arduino15\packages\builtin
INFO[0000] Checking existence of 'tools' path: C:\Users\DELL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loading tools from dir: C:\Users\DELL\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loaded tool                                   tool="builtin:ctags@5.8-arduino11"
INFO[0000] Loaded tool                                   tool="builtin:mdns-discovery@1.0.6"
INFO[0000] Loaded tool                                   tool="builtin:serial-discovery@1.3.2"
INFO[0000] Loaded tool                                   tool="builtin:serial-monitor@0.10.0"
INFO[0000] Checking signature                            index="c:\\Users\\DELL\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="c:\\Users\\DELL\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
INFO[0000] Checking signature                            error="opening signature file: open c:\\Users\\DELL\\AppData\\Local\\Arduino15\\package_stmicroelectronics_index.json.sig: The system cannot find the file specified." index="c:\\Users\\DELL\\AppData\\Local\\Arduino15\\package_stmicroelectronics_index.json" signatureFile="c:\\Users\\DELL\\AppData\\Local\\Arduino15\\package_stmicroelectronics_index.json.sig"
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries" location=platform
INFO[0000] Adding libraries dir                          dir="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\hardware\\stm32\\2.3.0\\libraries" location=platform
INFO[0000] Loading libraries index file                  index="c:\\Users\\DELL\\AppData\\Local\\Arduino15\\library_index.json"

root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 152.1 ms [Finished 1.632 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 95.6 ms [Finished 1.728 s after backend start]
daemon INFO INFO[0000] Adding libraries dir                          dir="C:\\Users\\DELL\\AppData\\Local\\Arduino15\\libraries" location=ide
INFO[0000] Adding libraries dir                          dir="c:\\Users\\DELL\\Documents\\Arduino\\libraries" location=user

root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 73.7 ms [Finished 1.801 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-hu@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 44.3 ms [Finished 1.846 s after backend start]
discovery-log INFO start request start watch
discovery-log INFO start requested start watch
discovery-log INFO start resolved watching
daemon INFO INFO[0000] starting discovery builtin:mdns-discovery process

root INFO Deployed backend plugin "vscode-language-pack-it@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 116.1 ms [Finished 1.962 s after backend start]
daemon INFO INFO[0000] starting discovery builtin:serial-discovery process
INFO[0000] started discovery builtin:serial-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.28.0" to discovery builtin:serial-discovery
INFO[0000] started discovery builtin:mdns-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.28.0" to discovery builtin:mdns-discovery
INFO[0000] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:serial-discovery
INFO[0000] from discovery builtin:serial-discovery received message type: start_sync, message: OK
INFO[0000] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:mdns-discovery
INFO[0000] from discovery builtin:mdns-discovery received message type: start_sync, message: OK

root INFO Deployed backend plugin "vscode-language-pack-ja@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 65.8 ms [Finished 2.028 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ko@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 47.1 ms [Finished 2.075 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-nl@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 19.1 ms [Finished 2.094 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pl@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 49.1 ms [Finished 2.143 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 48.1 ms [Finished 2.191 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 54.2 ms [Finished 2.245 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 48.3 ms [Finished 2.294 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-uk@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 33.1 ms [Finished 2.327 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 46.8 ms [Finished 2.374 s after backend start]
root INFO Deploy plugins list: 275.9 ms [Finished 2.380 s after backend start]
root WARN Frontend s.configure took longer than the expected maximum 100 milliseconds: 138.8 ms [Finished 22.110 s after frontend start]
root INFO Start frontend contributions: 389.7 ms [Finished 22.318 s after frontend start]
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO <<< Nothing to restore.
root INFO Initialize the workbench layout: 31.2 ms [Finished 22.378 s after frontend start]
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925] Waiting for backend deployment: 94.7 ms [Finished 22.410 s after frontend start]
root INFO [hosted-plugin: 8620] PLUGIN_HOST(8620) starting instance
root INFO Frontend application start: 1556.1 ms [Finished 24.635 s after backend start]
root INFO Replace loading indicator with ready workbench UI (animation): 991.8 ms [Finished 23.370 s after frontend start]
root INFO Changed application state from 'initialized_layout' to 'ready'.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925] Sync of 21 plugins: 1230.6 ms [Finished 23.641 s after frontend start]
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][marus25.cortex-debug]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][arduino.vscode-arduino-tools]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.cpp]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.json]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.json-language-features]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-bg]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-cs]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-de]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-es]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-fr]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-hu]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-it]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ja]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ko]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-nl]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-pl]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-pt-br]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ru]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-tr]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-uk]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-zh-hans]: Loaded contributions.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925] Load contributions of 21 plugins: 50.1 ms [Finished 23.691 s after frontend start]
Checking for update
root WARN 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN a registered grammar configuration for 'cpp' language is overridden
root ERROR ---- !!!SLOW!!! DURATION: search took 750.819 ms. Args: [{"type":"Updatable"}] ----
root INFO [hosted-plugin: 8620] PLUGIN_HOST(8620): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 8620] PLUGIN_HOST(8620): initializing(cortex-debug@0.3.10 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 8620] Debugger contribution has been registered: cortex-debug
root INFO [hosted-plugin: 8620] PLUGIN_HOST(8620): initializing(vscode-arduino-tools@0.0.2-beta.5 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(cpp@1.52.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(json@1.46.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(json-language-features@1.46.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-bg@1.48.3 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-cs@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-de@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-es@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-fr@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-hu@1.48.3 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-it@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-ja@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-ko@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-nl@1.48.3 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-pl@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-pt-BR@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-ru@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-tr@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-uk@1.48.3 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
PLUGIN_HOST(8620): initializing(vscode-language-pack-zh-hans@1.53.2 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 8620] PLUGIN_HOST(8620): PluginManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain)
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][marus25.cortex-debug]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][arduino.vscode-arduino-tools]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.cpp]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.json]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][vscode.json-language-features]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-bg]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-cs]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-de]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-es]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-fr]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-hu]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-it]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ja]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ko]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-nl]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-pl]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-pt-br]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-ru]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-tr]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-uk]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925][ms-ceintl.vscode-language-pack-zh-hans]: Started plugin.
root INFO [49effbce-aca8-44c1-9c97-15aabefed925] Start of 21 plugins: 1034.6 ms [Finished 24.741 s after frontend start]root WARN Timeout after 5000 millis. The editor has not shown up in time. URI: file:///c%3A/Users/DELL/AppData/Local/Temp/.arduinoIDE-unsaved2022101-21308-1gmblag.6f91/sketch_nov1a/sketch_nov1a.ino
Update for version 2.0.1 is not available (latest version: 2.0.1, downgrade is allowed).

Hi @rawesilpa. Please provide a detailed description of the problem you are having.

further to ptillisch, could you also please provide the output of

sudo lsusb

The serial to parallel converter could also be a cause.

@rawesilpa is using Windows. lsusb is a Linux-specific command.

Hi, @ptillisch I cannot connect the board to my computer. I checked the software it seems to work normally also the board but when I check the port in a select board and port tab it showed that NO PORTS DISCOVERED.

Please try this procedure to troubleshoot the problem:

  1. Open the Windows Device Manager.
  2. Unplug the USB cable of your Arduino board from your computer if it is currently connected.
  3. Plug the USB cable of your Arduino board into your computer.

Do you see any new device appear in the Device Manager tree after doing this? If so, please tell us where it is located in the tree and what it is named.

You can repeat steps 2-3 multiple times if you are not sure.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Nothing new appeared in my device manager. I'm not sure if this is related or not, my laptop only has USB C ports and now I connect the board through the toggle. One more thing is I cannot find my port list in my device manager too.

@rawesilpa, I can't find if you ever told us which board you are using; it might be relevant.

I know this is over a month old at this point, but I'm having the same issue. IDE2.0, no ports discovered. I've been using 2.0 flawlessly (minus the insane lag from time to time) for at least a few weeks at this point, and overnight now all of a sudden none of the ports show up anymore. Its an old laptop running win7, so no windows updates, no software updates, no changes made between when it worked and when it doesnt, except putting it to sleep and waking back up. Ive been scouring forums and digging through 3 year old reddit posts trying to find a solution for this and I've yet to find anything that works to resolve it, Im beginning to go a little insane. Everything shows up in device manager, Ive deleted the discovery folder, reinstalled, uninstalled, reinstalled new installer, manually uninstalled/reinstalled, still to no avail, meanwhile IDE 1.8 still works fine. Any guidance would be immensely helpful and I will be eternally grateful.

Hi @rockingstarfarm. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Start Windows "File Explorer".
  2. Open the Arduino IDE installation folder.
    (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. Click "Open command window here".
    cmd will now open with the current directory set to the Arduino IDE installation folder.
  5. Type the following command:
    "Arduino IDE"
    
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts.
  7. Wait for the Arduino IDE to finish starting.
  8. Switch back to the cmd window.
  9. Right click on the title bar of the cmd window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    This will select all the text in the cmd window.
  11. Press Ctrl+C.
    This will copy the contents of the cmd window to the clipboard.
  12. Open a forum reply here by clicking the Reply button.
  13. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  14. Press Ctrl+V.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

.json]: Loaded contributions.
2022-12-14T19:34:14.797Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][vscode
.json-language-features]: Loaded contributions.
2022-12-14T19:34:14.797Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-bg]: Loaded contributions.
2022-12-14T19:34:14.798Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-cs]: Loaded contributions.
2022-12-14T19:34:14.798Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-de]: Loaded contributions.
2022-12-14T19:34:14.798Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-es]: Loaded contributions.
2022-12-14T19:34:14.798Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-fr]: Loaded contributions.
2022-12-14T19:34:14.799Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-hu]: Loaded contributions.
2022-12-14T19:34:14.799Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-it]: Loaded contributions.
2022-12-14T19:34:14.799Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ja]: Loaded contributions.
2022-12-14T19:34:14.800Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ko]: Loaded contributions.
2022-12-14T19:34:14.800Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-nl]: Loaded contributions.
2022-12-14T19:34:14.800Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-pl]: Loaded contributions.
2022-12-14T19:34:14.801Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-pt-br]: Loaded contributions.
2022-12-14T19:34:14.801Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ru]: Loaded contributions.
2022-12-14T19:34:14.801Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-tr]: Loaded contributions.
2022-12-14T19:34:14.807Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-uk]: Loaded contributions.
2022-12-14T19:34:14.807Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-zh-hans]: Loaded contributions.
2022-12-14T19:34:14.808Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa] Load c
ontributions of 21 plugins: 222.4 ms [Finished 35.403 s after frontend start]
2022-12-14T19:34:15.332Z root WARN 'cpp' language is remapped from 'source.cpp.e
mbedded.macro' to 'source.cpp' scope
2022-12-14T19:34:15.333Z root WARN a registered grammar configuration for 'cpp'
language is overridden
2022-12-14T19:34:17.864Z root INFO Frontend application start: 9921.3 ms [Finish
ed 65.892 s after backend start]
2022-12-14T19:34:17.872Z root INFO Replace loading indicator with ready workbenc
h UI (animation): 2164.7 ms [Finished 37.581 s after frontend start]
2022-12-14T19:34:17.873Z root INFO Changed application state from 'initialized_l
ayout' to 'ready'.
2022-12-14T19:34:17.873Z root WARN Linked preference "workbench.colorCustomizati
ons" not found. Source: "editor.bracketPairColorization.enabled"
2022-12-14T19:34:18.053Z sketches-service WARN Mismatching sketch file <Tester_c
ode_for_Jak_a_bish.ino> and sketch folder name <LCD and Display codes>. Skipping

Checking for update
Update for version 2.0.3 is not available (latest version: 2.0.3, downgrade is a
llowed).
2022-12-14T19:34:19.475Z daemon INFO ←[36mINFO←[0m[0041] Updating libraries inde
x

2022-12-14T19:34:19.493Z daemon INFO ←[36mINFO←[0m[0041] Updating index
                       ←[36murl←[0m="https://downloads.arduino.cc/packages/packa
ge_index.tar.bz2"

2022-12-14T19:34:19.496Z root INFO core-client-provider [library-index]
2022-12-14T19:34:19.498Z root INFO core-client-provider [platform-index]
2022-12-14T19:34:19.538Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): Plugin
ManagerExtImpl/init()
2022-12-14T19:34:19.553Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(cortex-debug@1.5.1 with C:\Program Files\Arduino IDE\resources\app\node_m
odules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.597Z root INFO [hosted-plugin: 756] Debugger contribution ha
s been registered: cortex-debug
2022-12-14T19:34:19.607Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-arduino-tools@0.0.2-beta.5 with C:\Program Files\Arduino IDE\resou
rces\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.609Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(cpp@1.52.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@
theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.611Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(json@1.46.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\
@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.613Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(json-language-features@1.46.1 with C:\Program Files\Arduino IDE\resources
\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.615Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-bg@1.48.3 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.617Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-cs@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.620Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-de@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.622Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-es@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.625Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-fr@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.627Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-hu@1.48.3 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.633Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-it@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.634Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-ja@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.635Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-ko@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.637Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-nl@1.48.3 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.640Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-pl@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.641Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-pt-BR@1.53.2 with C:\Program Files\Arduino IDE\resou
rces\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.643Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-ru@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.645Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-tr@1.53.2 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.647Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-uk@1.48.3 with C:\Program Files\Arduino IDE\resource
s\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:19.648Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): initia
lizing(vscode-language-pack-zh-hans@1.53.2 with C:\Program Files\Arduino IDE\res
ources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
2022-12-14T19:34:21.714Z root ERROR ---- !!!SLOW!!! DURATION: search took 2762.8
09 ms. Args: [{"type":"Updatable"}] ----
2022-12-14T19:34:21.723Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): Plugin
ManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\vsc
ode-builtin-json-language-features\extension\client\dist\jsonMain)
2022-12-14T19:34:22.101Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): Plugin
ManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\vsc
ode-arduino-tools\extension\dist\bundle)
2022-12-14T19:34:22.217Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][marus2
5.cortex-debug]: Started plugin.
2022-12-14T19:34:22.221Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][arduin
o.vscode-arduino-tools]: Started plugin.
2022-12-14T19:34:22.222Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][vscode
.cpp]: Started plugin.
2022-12-14T19:34:22.223Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][vscode
.json]: Started plugin.
2022-12-14T19:34:22.223Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][vscode
.json-language-features]: Started plugin.
2022-12-14T19:34:22.224Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-bg]: Started plugin.
2022-12-14T19:34:22.225Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-cs]: Started plugin.
2022-12-14T19:34:22.225Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-de]: Started plugin.
2022-12-14T19:34:22.226Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-es]: Started plugin.
2022-12-14T19:34:22.226Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-fr]: Started plugin.
2022-12-14T19:34:22.233Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-hu]: Started plugin.
2022-12-14T19:34:22.233Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-it]: Started plugin.
2022-12-14T19:34:22.234Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ja]: Started plugin.
2022-12-14T19:34:22.235Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ko]: Started plugin.
2022-12-14T19:34:22.236Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-nl]: Started plugin.
2022-12-14T19:34:22.236Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-pl]: Started plugin.
2022-12-14T19:34:22.237Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-pt-br]: Started plugin.
2022-12-14T19:34:22.237Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-ru]: Started plugin.
2022-12-14T19:34:22.238Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-tr]: Started plugin.
2022-12-14T19:34:22.238Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-uk]: Started plugin.
2022-12-14T19:34:22.239Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa][ms-cei
ntl.vscode-language-pack-zh-hans]: Started plugin.
2022-12-14T19:34:22.247Z root INFO [hosted-plugin: 756] PLUGIN_HOST(756): Plugin
ManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\cor
tex-debug\extension\dist\extension.js)
2022-12-14T19:34:22.652Z root INFO [hosted-plugin: 756] Debug configuration prov
ider has been registered: cortex-debug, trigger: 1
2022-12-14T19:34:22.660Z root INFO [hosted-plugin: 756] GDB server console creat
ed
2022-12-14T19:34:22.874Z root INFO [916f078b-891b-4bd5-abc7-37f420aff2aa] Start
of 21 plugins: 8074.3 ms [Finished 43.495 s after frontend start]
2022-12-14T19:34:22.889Z root INFO Starting language server: arduino:avr:uno
2022-12-14T19:34:31.302Z daemon INFO ←[36mINFO←[0m[0052] Loading hardware from:
C:\Users\Owner\AppData\Local\Arduino15\packages

2022-12-14T19:34:31.303Z daemon INFO ←[36mINFO←[0m[0052] Loading package arduino
 from: C:\Users\Owner\AppData\Local\Arduino15\packages\arduino\hardware

2022-12-14T19:34:31.309Z daemon INFO ←[36mINFO←[0m[0052] Checking signature
                       ←[36merror←[0m="opening signature file: open C:\\Users\\O
wner\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\instal
led.json.sig: The system cannot find the file specified." ←[36mindex←[0m="C:\\Us
ers\\Owner\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\
installed.json" ←[36msignatureFile←[0m="C:\\Users\\Owner\\AppData\\Local\\Arduin
o15\\packages\\arduino\\hardware\\avr\\1.8.6\\installed.json.sig"

2022-12-14T19:34:31.314Z daemon INFO ←[36mINFO←[0m[0052] Adding monitor tool
                       ←[36mprotocol←[0m=serial ←[36mtool←[0m="builtin:serial-mo
nitor"
←[36mINFO←[0m[0052] Loaded platform                               ←[36mplatform←
[0m="arduino:avr@1.8.6"

2022-12-14T19:34:31.315Z daemon INFO ←[36mINFO←[0m[0052] Checking existence of '
tools' path: C:\Users\Owner\AppData\Local\Arduino15\packages\arduino\tools
←[36mINFO←[0m[0052] Loading tools from dir: C:\Users\Owner\AppData\Local\Arduino
15\packages\arduino\tools

2022-12-14T19:34:31.316Z daemon INFO ←[36mINFO←[0m[0052] Loaded tool
                       ←[36mtool←[0m="arduino:arduinoOTA@1.3.0"
←[36mINFO←[0m[0052] Loaded tool                                   ←[36mtool←[0m=
"arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"

2022-12-14T19:34:31.317Z daemon INFO ←[36mINFO←[0m[0052] Loaded tool
                       ←[36mtool←[0m="arduino:avrdude@6.3.0-arduino17"
←[36mINFO←[0m[0052] Loading package builtin from: C:\Users\Owner\AppData\Local\A
rduino15\packages\builtin
←[36mINFO←[0m[0052] Checking existence of 'tools' path: C:\Users\Owner\AppData\L
ocal\Arduino15\packages\builtin\tools
←[36mINFO←[0m[0052] Loading tools from dir: C:\Users\Owner\AppData\Local\Arduino
15\packages\builtin\tools

2022-12-14T19:34:31.319Z daemon INFO ←[36mINFO←[0m[0052] Loaded tool
                       ←[36mtool←[0m="builtin:ctags@5.8-arduino11"
←[36mINFO←[0m[0052] Loaded tool                                   ←[36mtool←[0m=
"builtin:mdns-discovery@1.0.6"
←[36mINFO←[0m[0052] Loaded tool                                   ←[36mtool←[0m=
"builtin:serial-discovery@1.3.2"
←[36mINFO←[0m[0052] Loaded tool                                   ←[36mtool←[0m=
"builtin:serial-monitor@0.11.0"

2022-12-14T19:34:31.328Z daemon INFO ←[36mINFO←[0m[0052] Checking signature
                       ←[36mindex←[0m="C:\\Users\\Owner\\AppData\\Local\\Arduino
15\\package_index.json" ←[36msignatureFile←[0m="C:\\Users\\Owner\\AppData\\Local
\\Arduino15\\package_index.json.sig" ←[36mtrusted←[0m=true

2022-12-14T19:34:31.331Z daemon INFO ←[36mINFO←[0m[0052] Adding libraries dir
                       ←[36mdir←[0m="C:\\Users\\Owner\\AppData\\Local\\Arduino15
\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" ←[36mlocation←[0m=platform


2022-12-14T19:34:31.332Z daemon INFO ←[36mINFO←[0m[0052] Loading libraries index
 file                  ←[36mindex←[0m="C:\\Users\\Owner\\AppData\\Local\\Arduino
15\\library_index.json"

2022-12-14T19:34:31.601Z daemon INFO ←[36mINFO←[0m[0053] Adding libraries dir
                       ←[36mdir←[0m="C:\\Users\\Owner\\AppData\\Local\\Arduino15
\\libraries" ←[36mlocation←[0m=ide

2022-12-14T19:34:31.602Z daemon INFO ←[36mINFO←[0m[0053] Adding libraries dir
                       ←[36mdir←[0m="C:\\Users\\Owner\\Documents\\Arduino\\libra
ries" ←[36mlocation←[0m=user

2022-12-14T19:34:32.583Z daemon INFO ←[36mINFO←[0m[0054] Searching tools require
d for board arduino:avr:uno

2022-12-14T19:34:32.586Z daemon INFO ←[36mINFO←[0m[0054] Required tool
                       ←[36mtool←[0m="arduino:arduinoOTA@1.3.0"
←[36mINFO←[0m[0054] Required tool                                 ←[36mtool←[0m=
"arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
←[36mINFO←[0m[0054] Required tool                                 ←[36mtool←[0m=
"arduino:avrdude@6.3.0-arduino17"
←[36mINFO←[0m[0054] Adding libraries dir                          ←[36mdir←[0m="
C:\\Users\\Owner\\AppData\\Local\\Arduino15\\libraries" ←[36mlocation←[0m=ide
←[36mINFO←[0m[0054] Adding libraries dir                          ←[36mdir←[0m="
C:\\Users\\Owner\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1
.8.6\\libraries" ←[36mlocation←[0m=platform
←[36mINFO←[0m[0054] Adding libraries dir                          ←[36mdir←[0m="
C:\\Users\\Owner\\Documents\\Arduino\\libraries" ←[36mlocation←[0m=user

2022-12-14T19:34:36.784Z daemon INFO ←[36mINFO←[0m[0058] Resolving include Ether
netENC.h for arch avr

2022-12-14T19:34:36.786Z daemon INFO ←[36mINFO←[0m[0058]   found better lib
                       ←[36mlib←[0m=EthernetENC ←[36mprio←[0m=643

2022-12-14T19:34:37.181Z daemon INFO ←[36mINFO←[0m[0058] Resolving include SPI.h
 for arch avr
←[36mINFO←[0m[0058]   found better lib                            ←[36mlib←[0m=S
PI ←[36mprio←[0m=64C

2022-12-14T19:34:39.315Z daemon INFO ←[36mINFO←[0m[0060] Searching tools require
d for board arduino:avr:uno

2022-12-14T19:34:39.317Z daemon INFO ←[36mINFO←[0m[0060] Required tool
                       ←[36mtool←[0m="arduino:arduinoOTA@1.3.0"
←[36mINFO←[0m[0060] Required tool                                 ←[36mtool←[0m=
"arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
←[36mINFO←[0m[0060] Required tool                                 ←[36mtool←[0m=
"arduino:avrdude@6.3.0-arduino17"


Thanks. I don't see any content in those logs that indicates a problem.

However, I do see that something important is missing. Normally the logs should show the serial-discovery tool being started and discovering each of the serial ports on your computer. For example, when I start Arduino IDE I see this in my logs:

2022-12-15T09:02:41.176Z discovery-log INFO start request start watch
2022-12-15T09:02:41.176Z discovery-log INFO start requested start watch
2022-12-15T09:02:41.176Z discovery-log INFO start resolved watching
2022-12-15T09:02:41.177Z daemon INFO INFO[0002] starting discovery builtin:mdns-discovery process

2022-12-15T09:02:41.177Z daemon INFO INFO[0002] starting discovery builtin:serial-discovery process

2022-12-15T09:02:41.187Z daemon INFO INFO[0002] started discovery builtin:serial-discovery process
INFO[0002] sending command HELLO 1 "arduino-cli 0.29.0" to discovery builtin:serial-discovery

2022-12-15T09:02:41.187Z daemon INFO INFO[0002] started discovery builtin:mdns-discovery process

2022-12-15T09:02:41.188Z daemon INFO INFO[0002] sending command HELLO 1 "arduino-cli 0.29.0" to discovery builtin:mdns-discovery

Opening channel for service path '/services/electron-window-ext'.
Opening channel for service path '/services/electron-window'.
2022-12-15T09:02:41.227Z daemon INFO INFO[0002] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1
INFO[0002] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1

2022-12-15T09:02:41.227Z daemon INFO INFO[0002] sending command START_SYNC to discovery builtin:mdns-discovery
INFO[0002] sending command START_SYNC to discovery builtin:serial-discovery
INFO[0002] from discovery builtin:serial-discovery received message type: start_sync, message: OK

2022-12-15T09:02:41.227Z daemon INFO INFO[0002] from discovery builtin:mdns-discovery received message type: start_sync, message: OK

2022-12-15T09:02:41.240Z daemon INFO INFO[0002] from discovery builtin:serial-discovery received message type: add, port: COM3

2022-12-15T09:02:41.243Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"COM3","label":"COM3","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[]}},"error":""}
2022-12-15T09:02:41.244Z daemon INFO INFO[0002] from discovery builtin:serial-discovery received message type: add, port: COM52
INFO[0002] from discovery builtin:serial-discovery received message type: add, port: COM1
INFO[0002] from discovery builtin:serial-discovery received message type: add, port: COM7
INFO[0002] from discovery builtin:serial-discovery received message type: add, port: COM254

There is nothing like this in your logs.


I think the next thing to try is running the serial-discovery tool directly and seeing whether it is able to discover your ports. I'll provide instructions:


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


During all this, keep an eye out for anything that doesn't match the expected behavior as described at each step.

  1. Open the following folder in Windows "File Explorer":
    C:\Users\<username>\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery
    
    Note that the AppData folder is hidden by default in "File Explorer". You can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  2. The serial-discovery folder will contain a subfolder for each of the versions of serial-discovery which are installed on your computer.
    For example:
    serial-discovery/
    ├── 1.3.0/
    ├── 1.3.0-rc1/
    └── 1.3.2/
    
  3. Hold the Shift key while clicking the right hand button on the mouse on the folder with the highest version (1.3.2 in the example above).
  4. From the context menu, click "Open command window here".
    cmd will now open with the current directory set to the 1.3.2 folder.
  5. Type the following command:
    serial-discovery
    
  6. Press the Enter key.
    serial-discovery will now start. There won't be any obvious sign of this other than that there is no longer a command prompt at the cursor in the terminal.
  7. Type the following command:
    HELLO 1 "arduino-cli 0.20.2"
    
  8. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "hello",
      "protocolVersion": 1,
      "message": "OK"
    }
    
  9. Unplug your Arduino board from your computer if you have it plugged in.
  10. Type the following command:
    START_SYNC
    
  11. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "start_sync",
      "message": "OK"
    }
    
    You might also see some additional objects in the output depending on which serial ports are available on your computer.
  12. Plug your Arduino board into your computer.
    You should now see a response printed that looks something like this:
    {
      "eventType": "add",
      "port": {
        "address": "COM42",
        "label": "COM42",
        "protocol": "serial",
        "protocolLabel": "Serial Port (USB)",
        "properties": {
          "pid": "0x804e",
          "vid": "0x2341",
          "serialNumber": "EBEABFD6514D32364E202020FF10181E"
        }
      }
    }
    
    This is only an example of what you might see. The output will be different depending on the board you connected.
  13. Unplug your Arduino board from your computer.
    You should now see a response printed that looks something like this:
    {
      "eventType": "remove",
      "port": {
        "address": "COM42",
        "protocol": "serial"
      }
    }
    
    This is only an example of what you might see. The address field value should be the same as the "add" event you saw when you plugged the board in.

You should continue to see the same results if you repeat steps (12) and (13).

Once you are done with your experiments with the "serial-discovery" tool, follow these instructions to exit:

  1. Type the following command:
    STOP
    
  2. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "stop",
      "message": "OK"
    }
    
  3. Type the following command:
    QUIT
    
  4. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "quit",
      "message": "OK"
    }
    
    You should now be back at the cmd command line. You can now close the cmd window.

Start sync returns a runtime error. I double checked device manager to make sure the devices show up and they do (side note, this is with the CH340 Nano clone, however I have the same issue with my genuine Uno boards, this just happens to be the one in use at the moment) Also, serial discovery parent folder used to contain several versions on the old install, however with the fresh install the latest version (1.3.2) is the only one. Thank you again for all your time and effort. I still dont understand how this would happen after it already being in use for almost a month without an issue.


C:\Users\Owner\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1
.3.2>serial-discovery
HELLO 1 "arduino-cli 0.20.2"
{
  "eventType": "hello",
  "message": "OK",
  "protocolVersion": 1
}
START_SYNC
{
  "eventType": "start_sync",
  "message": "OK"
}
panic: runtime error: index out of range [0] with length 0

goroutine 34 [running]:
go.bug.st/serial/enumerator.retrievePortDetailsFromDevInfo(0xc0000c2090, 0xc0000
f8120, 0x5, 0x0)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:351 +0x365

go.bug.st/serial/enumerator.nativeGetDetailedPortsList(0x0, 0x0, 0x0, 0x0, 0x0)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:299 +0x1b1

go.bug.st/serial/enumerator.GetDetailedPortsList(...)
        /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/enumerator.go:31
github.com/arduino/serial-discovery/sync.Start.func2(0xc000182020, 0xc000182010,
 0xc000184000)
        /home/build/sync/sync_windows.go:118 +0x3c
created by github.com/arduino/serial-discovery/sync.Start
        /home/build/sync/sync_windows.go:117 +0xc6

C:\Users\Owner\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1
.3.2>

There was a previous report about this here:

We didn't find a specific fix because it just started working for that user without any explanation.

As I mentioned in that thread, there is a bug report about the error message here:

But again, it is not clear to me exactly how this would happen (I had a hypothesis it might be caused by a problem with the board or USB cable or USB port causing the board to connect and disconnect intermittently repeatedly, but I don't know and was not able to reproduce it by plugging and unplugging the USB cable on my board repeatedly.

It might be because you are using Windows 7. That operating system is not officially supported for use with Arduino IDE 2.x and we don't do any testing for it.

That is fine. Arduino IDE doesn't remove the old versions when it automatically updates, but it always uses the latest version, so those previous versions weren't being used for anything. 1.3.2 was released last February, so it is unlikely that the change was caused by a switch from an older version to 1.3.2.

So...... just go back to 1.8 then? I guess? Its not world ending dont get me wrong and I understand that win7 is not a supported OS (and trust if I had the power to change that on this laptop I would) however, I would be completely fine with it never working in the first place and that being the case but since it has been running fine, for weeks, with several different boards and many many plugs and unplugs etc, I dont see how that cant be resolved with a reinstall/clean install or something similar to that nature. You could say that the problem is inherent to it being windows7, sure, but then that would't explain any of the previous posts or examples, so I guess im just curious if those are the only two options? Roll back to 1.0 or wait for a fix thats "technically" not for this OS. (I apologize if I missed something in your post that would negate this response) but I had already scoured most of the github error reports and other threads, all which are months, if not years, old.