IDE hangs on startup: "Error loading hardware platform: discovery builtin:serial-discovery not found"

Hi, I have the same issue of Arduino IDE getting stuck at the loading screen. I've restarted my computer and uninstalled several times but nothing works. I'm on windows 11 and Arduino IDE 2.1.0

PS C:\Users\adham\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE" PS C:\Users\adham\AppData\Local\Programs\Arduino IDE> Arduino IDE 2.1.0 Starting backend process. PID: 13504 Using browser-only version of superagent in non-browser environment Configuration directory URI: 'file:///c%3A/Users/adham/.theia' Configuring to accept webviews on '^.+\.webview\..+$' hostname. 2023-05-01T02:45:56.544Z root INFO Backend Object.initialize: 5.1 ms [Finished 1.719 s after backend start] 2023-05-01T02:45:56.545Z root INFO Backend Object.configure: 4.2 ms [Finished 1.719 s after backend start] 2023-05-01T02:45:56.545Z root INFO Backend MessagingContribution.onStart: 1.9 ms [Finished 1.719 s after backend start] 2023-05-01T02:45:56.546Z root INFO Backend OSBackendApplicationContribution.configure: 0.4 ms [Finished 1.768 s after backend start] 2023-05-01T02:45:56.548Z root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 1.768 s after backend start] 2023-05-01T02:45:56.549Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 1.768 s after backend start] 2023-05-01T02:45:56.549Z root INFO Backend PluginLocalizationBackendContribution.initialize: 48.7 ms [Finished 1.768 s after backend start] 2023-05-01T02:45:56.550Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 1.768 s after backend start] 2023-05-01T02:45:56.551Z root INFO Backend ElectronTokenBackendContribution.configure: 1.7 ms [Finished 1.770 s after backend start] 2023-05-01T02:45:56.552Z config INFO >>> Initializing CLI configuration... 2023-05-01T02:45:56.552Z root INFO Backend PluginDeployerContribution.initialize: 0.8 ms [Finished 1.770 s after backend start] 2023-05-01T02:45:56.552Z root INFO Backend ConfigServiceImpl.onStart: 1.3 ms [Finished 1.771 s after backend start] 2023-05-01T02:45:56.553Z config INFO Loading CLI configuration from c:\Users\adham\.arduinoIDE\arduino-cli.yaml... 2023-05-01T02:45:56.554Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.4 ms [Finished 1.772 s after backend start] 2023-05-01T02:45:56.554Z root INFO Backend ArduinoDaemonImpl.onStart: 1.2 ms [Finished 1.773 s after backend start] 2023-05-01T02:45:56.554Z root INFO Backend NodeFileUploadService.configure: 2.4 ms [Finished 1.774 s after backend start] 2023-05-01T02:45:56.555Z daemon INFO Starting daemon from C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe... 2023-05-01T02:45:56.555Z discovery-log INFO start 2023-05-01T02:45:56.555Z discovery-log INFO start new deferred 2023-05-01T02:45:56.556Z root INFO Backend HostedPluginLocalizationService.initialize: 0.4 ms [Finished 1.775 s after backend start] 2023-05-01T02:45:56.556Z root INFO Backend BoardDiscovery.onStart: 1.2 ms [Finished 1.776 s after backend start] 2023-05-01T02:45:56.556Z root INFO Backend FileDownloadEndpoint.configure: 1.2 ms [Finished 1.776 s after backend start] 2023-05-01T02:45:56.556Z root INFO Backend AuthenticationServiceImpl.onStart: 0.5 ms [Finished 1.778 s after backend start] 2023-05-01T02:45:56.557Z root INFO Backend PluginApiContribution.configure: 0.6 ms [Finished 1.778 s after backend start] 2023-05-01T02:45:56.558Z root INFO Backend HostedPluginReader.configure: 0.8 ms [Finished 1.780 s after backend start] 2023-05-01T02:45:56.558Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.780 s after backend start] 2023-05-01T02:45:56.559Z root INFO Backend PlotterBackendContribution.configure: 1.0 ms [Finished 1.782 s after backend start] 2023-05-01T02:45:56.562Z root INFO Theia app listening on http://localhost:55988. 2023-05-01T02:45:56.562Z root INFO Finished starting backend application: 6.5 ms [Finished 1.786 s after backend start] 2023-05-01T02:45:56.579Z root WARN The local plugin referenced by local-dir:/c%3A/Users/adham/.arduinoIDE/plugins does not exist. 2023-05-01T02:45:56.582Z root WARN The local plugin referenced by local-dir:/c%3A/Users/adham/.arduinoIDE/extensions does not exist. 2023-05-01T02:45:56.584Z root WARN The local plugin referenced by local-dir:C:\Users\adham\.arduinoIDE\plugins does not exist. 2023-05-01T02:45:56.611Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.611Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines: 2023-05-01T02:45:56.612Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.612Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.8" with engines: 2023-05-01T02:45:56.612Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.612Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines: 2023-05-01T02:45:56.613Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.613Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines: 2023-05-01T02:45:56.613Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.614Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines: 2023-05-01T02:45:56.614Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.614Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines: 2023-05-01T02:45:56.614Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.615Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines: 2023-05-01T02:45:56.615Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.616Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines: 2023-05-01T02:45:56.616Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.617Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines: 2023-05-01T02:45:56.617Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.617Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines: 2023-05-01T02:45:56.617Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.617Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines: 2023-05-01T02:45:56.618Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.618Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines: 2023-05-01T02:45:56.618Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.618Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines: 2023-05-01T02:45:56.619Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.619Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines: 2023-05-01T02:45:56.619Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.619Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines: 2023-05-01T02:45:56.619Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.619Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines: 2023-05-01T02:45:56.620Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.620Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines: 2023-05-01T02:45:56.620Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.620Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines: 2023-05-01T02:45:56.621Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.621Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines: 2023-05-01T02:45:56.621Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.621Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines: 2023-05-01T02:45:56.622Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2023-05-01T02:45:56.622Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines: 2023-05-01T02:45:56.627Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\adham\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\adham\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\adham\\OneDrive\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}} 2023-05-01T02:45:56.628Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model. 2023-05-01T02:45:56.628Z config INFO Loaded the CLI configuration. 2023-05-01T02:45:56.661Z root INFO Resolve plugins list: 106.7 ms [Finished 1.883 s after backend start] 2023-05-01T02:45:56.684Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension.js": 22.9 ms [Finished 1.907 s after backend start] 2023-05-01T02:45:56.690Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.8" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 5.9 ms [Finished 1.913 s after backend start] 2023-05-01T02:45:56.717Z daemon INFO INFO[0000] Using config file: c:\Users\adham\.arduinoIDE\arduino-cli.yaml INFO[0000] arduino-cli.exe version 0.32.2 INFO[0000] Executing `arduino-cli daemon` Daemon is now listening on 127.0.0.1:55989 {"IP":"127.0.0.1","Port":"55989"} 2023-05-01T02:45:56.722Z daemon INFO Daemon is running. 2023-05-01T02:45:56.757Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 67.2 ms [Finished 1.981 s after backend start] 2023-05-01T02:45:56.760Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\adham\AppData\Local\Arduino15\package_index.json: open C:\Users\adham\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified. 2023-05-01T02:45:56.761Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found 2023-05-01T02:45:56.762Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found 2023-05-01T02:45:56.763Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\adham\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified. 2023-05-01T02:45:56.765Z daemon INFO INFO[0000] Loading hardware from: C:\Users\adham\AppData\Local\Arduino15\packages INFO[0000] Loading libraries index file index="C:\\Users\\adham\\AppData\\Local\\Arduino15\\library_index.json" INFO[0000] Adding libraries dir dir="C:\\Users\\adham\\AppData\\Local\\Arduino15\\libraries" location=ide INFO[0000] Adding libraries dir dir="C:\\Users\\adham\\OneDrive\\Documents\\Arduino\\libraries" location=user 2023-05-01T02:45:56.768Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 11.0 ms [Finished 1.992 s after backend start] 2023-05-01T02:45:56.769Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 1.0 ms [Finished 1.993 s after backend start] 2023-05-01T02:45:56.876Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 106.7 ms [Finished 2.099 s after backend start] 2023-05-01T02:45:57.017Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 140.8 ms [Finished 2.240 s after backend start] 2023-05-01T02:45:57.148Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 130.9 ms [Finished 2.371 s after backend start] 2023-05-01T02:45:57.245Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-es@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 97.1 ms [Finished 2.468 s after backend start] 2023-05-01T02:45:57.309Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-fr@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 64.5 ms [Finished 2.533 s after backend start] 2023-05-01T02:45:57.368Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-hu@1.48.3" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 58.6 ms [Finished 2.592 s after backend start] 2023-05-01T02:45:57.469Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-it@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 100.8 ms [Finished 2.692 s after backend start] 2023-05-01T02:45:57.533Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ja@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 64.6 ms [Finished 2.757 s after backend start] 2023-05-01T02:45:57.602Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ko@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 68.6 ms [Finished 2.826 s after backend start] 2023-05-01T02:45:57.631Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-nl@1.48.3" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 29.2 ms [Finished 2.855 s after backend start] 2023-05-01T02:45:57.708Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pl@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 76.3 ms [Finished 2.931 s after backend start] 2023-05-01T02:45:57.784Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pt-br@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 76.4 ms [Finished 3.008 s after backend start] 2023-05-01T02:45:57.874Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ru@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 90.0 ms [Finished 3.098 s after backend start] 2023-05-01T02:45:57.936Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-tr@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 61.5 ms [Finished 3.159 s after backend start] 2023-05-01T02:45:57.982Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-uk@1.48.3" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 46.2 ms [Finished 3.206 s after backend start] 2023-05-01T02:45:58.047Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-zh-hans@1.53.2" from "C:\Users\adham\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 65.0 ms [Finished 3.271 s after backend start] 2023-05-01T02:45:58.048Z root INFO Deploy plugins list: 106.7 ms [Finished 3.271 s after backend start] Opening channel for service path '/services/electron-window-ext'. Opening channel for service path '/services/electron-window'. Opening channel for service path '/services/ide-updater'. 2023-05-01T02:45:59.287Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 408.1 ms [Finished 2.584 s after frontend start] 2023-05-01T02:45:59.424Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 115.4 ms [Finished 2.760 s after frontend start] 

Hi @adham_you. I see the cause here:

These errors indicate Arduino IDE is not able to access the Internet.

On the first run after a fresh installation, Arduino IDE downloads some additional essential components from the Internet and installs them. If it can't install those components then the startup fails. So the computer must have access to the Internet on the first startup.

If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE once again. This time it should start up successfully.

After that first run, an Internet connection is not required. However, there are some supplemental features such as "Library Manager" that have an inherent dependency on the Internet. Those features will not be usable while your computer is offline. But the essential functionality of editing, compiling, and uploading sketches is available even without an Internet connection.


The Arduino IDE developers are tracking the need to communicate this first run Internet access requirement to the user here.

My computer is connected to wifi though

Please check to see whether your firewall or other security software is blocking the IDE from accessing the Internet.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.