IDE hangs on startup: "discovery builtin:serial-discovery not found"

Hello everyone.
It just so happens that until recently I was using Arduino IDE version 2.3.2 and 1.8.xx at the same time.

But lately, when I launch the IDE version 2.3.2, it gets stuck in infinite loading, only showing the Arduino logo and won't start.

Here's the code I found on the forums, and it says to attach the code, so I'm using SHELL to attach the code.

I'm wondering what issue is preventing it from running... I would like to use an IDE.

PS C:\Users\ldk12\Desktop\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\ldk12\Desktop\Arduino IDE>
Arduino IDE 2.3.0
Checking for frontend application configuration customizations. Module path: C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\ldk12\Desktop\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.0" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.2" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-07T14:04:32.754Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.0","cliVersion":"0.35.2","buildDate":"2024-02-07T14:04:32.754Z"}
Starting backend process. PID: 26476
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/ldk12/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-04-22T03:25:14.838Z root INFO Backend Object.initialize: 6.8 ms [Finished 0.495 s after backend start]
2024-04-22T03:25:14.839Z root INFO Backend Object.configure: 6.0 ms [Finished 0.495 s after backend start]
2024-04-22T03:25:14.839Z root INFO Backend a.onStart: 1.5 ms [Finished 0.495 s after backend start]
2024-04-22T03:25:14.840Z root INFO Backend a.configure: 0.3 ms [Finished 0.516 s after backend start]
2024-04-22T03:25:14.840Z root INFO Backend d.onStart: 0.2 ms [Finished 0.516 s after backend start]
2024-04-22T03:25:14.841Z root INFO Backend d.configure: 0.1 ms [Finished 0.517 s after backend start]
2024-04-22T03:25:14.842Z root INFO Backend d.initialize: 21.5 ms [Finished 0.517 s after backend start]
2024-04-22T03:25:14.842Z root INFO Backend c.onStart: 0.2 ms [Finished 0.517 s after backend start]
2024-04-22T03:25:14.842Z root INFO Backend s.configure: 1.8 ms [Finished 0.519 s after backend start]
2024-04-22T03:25:14.843Z config INFO >>> Initializing CLI configuration...
2024-04-22T03:25:14.843Z root INFO Backend c.initialize: 0.6 ms [Finished 0.519 s after backend start]
2024-04-22T03:25:14.843Z root INFO Backend R.onStart: 0.7 ms [Finished 0.519 s after backend start]
2024-04-22T03:25:14.844Z config INFO Loading CLI configuration from c:\Users\ldk12\.arduinoIDE\arduino-cli.yaml...
2024-04-22T03:25:14.844Z daemon INFO Starting daemon from C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-04-22T03:25:14.845Z root INFO Backend s.initialize: 0.3 ms [Finished 0.520 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend w.onStart: 1.0 ms [Finished 0.521 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend r.configure: 1.5 ms [Finished 0.521 s after backend start]
2024-04-22T03:25:14.845Z discovery-log INFO start
2024-04-22T03:25:14.845Z discovery-log INFO start new deferred
2024-04-22T03:25:14.845Z root INFO Backend d.initialize: 0.3 ms [Finished 0.521 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend y.onStart: 1.5 ms [Finished 0.523 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend r.configure: 1.3 ms [Finished 0.523 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend s.onStart: 0.4 ms [Finished 0.524 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend h.configure: 0.3 ms [Finished 0.524 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend a.configure: 0.1 ms [Finished 0.524 s after backend start]
2024-04-22T03:25:14.845Z root INFO Backend l.configure: 0.1 ms [Finished 0.524 s after backend start]
2024-04-22T03:25:14.847Z root INFO Theia app listening on http://127.0.0.1:55784.
2024-04-22T03:25:14.847Z root INFO Finished starting backend application: 2.3 ms [Finished 0.526 s after backend start]
2024-04-22T03:25:14.848Z root WARN The local plugin referenced by local-dir:/c%3A/Users/ldk12/.arduinoIDE/plugins does not exist.
2024-04-22T03:25:14.848Z root WARN The local plugin referenced by local-dir:/c%3A/Users/ldk12/.arduinoIDE/extensions does not exist.
2024-04-22T03:25:14.848Z root WARN The local plugin referenced by local-dir:C:\Users\ldk12\.arduinoIDE\plugins does not exist.
2024-04-22T03:25:14.853Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json","https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json","https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\libraries"},"data":"c:\\Users\\ldk12\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\staging","user":"c:\\Users\\ldk12\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"locale":"ko","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"network":{"proxy":"http://_/","user_agent_ext":"daemon"},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-04-22T03:25:14.853Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-04-22T03:25:14.853Z config INFO Loaded the CLI configuration.
Restoring workspace roots: c:\Users\ldk12\Documents\็งป๋Œ๋ญ…?ใ…ฝ๋„š ่ซ›์†? ?๋šฏ์”ช\system.ino
2024-04-22T03:25:14.871Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/ldk12/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/ldk12/Documents/Arduino","additionalUrls":["https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json","https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json","https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"],"network":{"protocol":"http","hostname":"_","password":"","username":"","port":""},"locale":"ko"}
2024-04-22T03:25:14.872Z config INFO Validating the CLI configuration...
2024-04-22T03:25:14.872Z config INFO The CLI config is valid.
2024-04-22T03:25:14.872Z config INFO <<< Initialized the CLI configuration.
isTempSketch: false. Input was c:\Users\ldk12\Documents\็งป๋Œ๋ญ…?ใ…ฝ๋„š ่ซ›์†? ?๋šฏ์”ช\system.ino
2024-04-22T03:25:14.892Z root INFO Resolve plugins list: 48.3 ms [Finished 0.571 s after backend start]
2024-04-22T03:25:15.039Z daemon INFO time="2024-04-22T12:25:14+09:00" level=info msg="Using config file: c:\\Users\\ldk12\\.arduinoIDE\\arduino-cli.yaml"
time="2024-04-22T12:25:14+09:00" level=info msg="arduino-cli.exe version 0.35.2"
time="2024-04-22T12:25:14+09:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:55785
{"IP":"127.0.0.1","Port":"55785"}
2024-04-22T03:25:15.039Z daemon INFO Daemon is running.
2024-04-22T03:25:15.057Z daemon INFO time="2024-04-22T12:25:15+09:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-04-22T12:25:15+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-22T03:25:15.637Z root INFO Deploy plugins list: 48.3 ms [Finished 1.316 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-04-22T03:25:16.659Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 127.4 ms [Finished 1.719 s after frontend start]
2024-04-22T03:25:16.659Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-04-22T03:25:17.346Z daemon INFO time="2024-04-22T12:25:17+09:00" level=info msg="Updating index" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:17.348Z daemon INFO time="2024-04-22T12:25:17+09:00" level=info msg="Starting download" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:19.632Z daemon INFO time="2024-04-22T12:25:19+09:00" level=info msg="Updating index" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:19.633Z daemon INFO time="2024-04-22T12:25:19+09:00" level=info msg="Starting download" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:21.899Z daemon INFO time="2024-04-22T12:25:21+09:00" level=info msg="Updating index" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:21.901Z daemon INFO time="2024-04-22T12:25:21+09:00" level=info msg="Starting download" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:24.186Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Some indexes could not be updated.
2024-04-22T03:25:24.186Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-04-22T03:25:24.186Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_rp2040_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_rp2040_index.json: The system cannot find the file specified.
2024-04-22T03:25:24.186Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_stmicroelectronics_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_stmicroelectronics_index.json: The system cannot find the file specified.
2024-04-22T03:25:24.186Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Missing signature file" index="c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\package_MCUdude_MegaCore_index.json"
time="2024-04-22T12:25:24+09:00" level=info msg="Loading hardware from: c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages"
2024-04-22T03:25:24.187Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loading package MegaCore from: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware"
2024-04-22T03:25:24.193Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
2024-04-22T03:25:24.193Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loaded platform" platform="MegaCore:avr@2.2.2"
2024-04-22T03:25:24.193Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\tools"
time="2024-04-22T12:25:24+09:00" level=info msg="Loading tools from dir: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\tools"
2024-04-22T03:25:24.194Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loaded tool" tool="MegaCore:avrdude@7.1-arduino.1"
2024-04-22T03:25:24.195Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loading package arduino from: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino"
2024-04-22T03:25:24.195Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-04-22T12:25:24+09:00" level=info msg="Loading tools from dir: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
2024-04-22T03:25:24.196Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
2024-04-22T03:25:24.197Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
2024-04-22T03:25:24.197Z 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
2024-04-22T03:25:24.197Z 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
2024-04-22T03:25:24.197Z 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
2024-04-22T03:25:24.197Z 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
2024-04-22T03:25:24.201Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.2.2\\libraries" location=platform
time="2024-04-22T12:25:24+09:00" level=info msg="Loading libraries index file" index="c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\library_index.json"
2024-04-22T03:25:24.355Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-04-22T03:25:24.356Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Adding libraries dir" dir="c:\\Users\\ldk12\\Documents\\Arduino\\libraries" location=user
2024-04-22T03:25:24.422Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found

2024-04-22T03:25:24.423Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-22T03:25:24.425Z daemon INFO time="2024-04-22T12:25:24+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-22T03:25:24.426Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-04-22T03:25:26.704Z daemon INFO time="2024-04-22T12:25:26+09:00" level=info msg="Updating index" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:26.705Z daemon INFO time="2024-04-22T12:25:26+09:00" level=info msg="Starting download" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:26.706Z root INFO core-client-provider [platform-index] Downloading index: package_rp2040_index.json

2024-04-22T03:25:28.983Z daemon INFO time="2024-04-22T12:25:28+09:00" level=info msg="Updating index" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:28.986Z daemon INFO time="2024-04-22T12:25:28+09:00" level=info msg="Starting download" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:28.986Z root INFO core-client-provider [platform-index] Downloading index: package_stmicroelectronics_index.json

2024-04-22T03:25:31.275Z daemon INFO time="2024-04-22T12:25:31+09:00" level=info msg="Updating index" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:31.277Z daemon INFO time="2024-04-22T12:25:31+09:00" level=info msg="Starting download" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:31.278Z root INFO core-client-provider [platform-index] Downloading index: package_MCUdude_MegaCore_index.json

2024-04-22T03:25:33.554Z root ERROR Failed to update platform indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:763450)
    at Object.onReceiveStatus (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:791067)
    at Object.onReceiveStatus (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:784091)
    at C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:870213
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:790834)
    at a.updateIndex (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:855110)
    at C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:623722
    at C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:624070
    at new Promise (<anonymous>)
    at E.doUpdateIndex (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:624049)
    at E.updatePlatformIndex (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:623694)
    at E.updateIndex (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:623062)
    at E.initInstanceWithFallback (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:621306)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-04-22T03:25:33.555Z daemon INFO time="2024-04-22T12:25:33+09:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-22T03:25:33.557Z daemon INFO time="2024-04-22T12:25:33+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-04-22T03:25:35.826Z daemon INFO time="2024-04-22T12:25:35+09:00" level=info msg="Updating index" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:35.828Z daemon INFO time="2024-04-22T12:25:35+09:00" level=info msg="Starting download" url="https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json"
2024-04-22T03:25:38.110Z daemon INFO time="2024-04-22T12:25:38+09:00" level=info msg="Updating index" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:38.112Z daemon INFO time="2024-04-22T12:25:38+09:00" level=info msg="Starting download" url="https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json"
2024-04-22T03:25:40.383Z daemon INFO time="2024-04-22T12:25:40+09:00" level=info msg="Updating index" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:40.386Z daemon INFO time="2024-04-22T12:25:40+09:00" level=info msg="Starting download" url="https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:42.663Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Some indexes could not be updated.
2024-04-22T03:25:42.663Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-04-22T03:25:42.663Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_rp2040_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_rp2040_index.json: The system cannot find the file specified.
2024-04-22T03:25:42.664Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_stmicroelectronics_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_stmicroelectronics_index.json: The system cannot find the file specified.
2024-04-22T03:25:42.664Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Missing signature file" index="c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\package_MCUdude_MegaCore_index.json"
2024-04-22T03:25:42.664Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loading hardware from: c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages"
2024-04-22T03:25:42.666Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loading package MegaCore from: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware"
2024-04-22T03:25:42.672Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
2024-04-22T03:25:42.672Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loaded platform" platform="MegaCore:avr@2.2.2"
2024-04-22T03:25:42.672Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\tools"
time="2024-04-22T12:25:42+09:00" level=info msg="Loading tools from dir: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\tools"
2024-04-22T03:25:42.673Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loaded tool" tool="MegaCore:avrdude@7.1-arduino.1"
2024-04-22T03:25:42.674Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loading package arduino from: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino"
2024-04-22T03:25:42.675Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-04-22T12:25:42+09:00" level=info msg="Loading tools from dir: C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
2024-04-22T03:25:42.675Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
2024-04-22T03:25:42.676Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
2024-04-22T03:25:42.677Z 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
2024-04-22T03:25:42.677Z 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
2024-04-22T03:25:42.677Z 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
2024-04-22T03:25:42.677Z 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
2024-04-22T03:25:42.683Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\packages\\MegaCore\\hardware\\avr\\2.2.2\\libraries" location=platform
time="2024-04-22T12:25:42+09:00" level=info msg="Loading libraries index file" index="c:\\Users\\ldk12\\AppData\\Local\\Arduino15\\library_index.json"
2024-04-22T03:25:42.836Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\ldk12\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-04-22T03:25:42.836Z daemon INFO time="2024-04-22T12:25:42+09:00" level=info msg="Adding libraries dir" dir="c:\\Users\\ldk12\\Documents\\Arduino\\libraries" location=user
2024-04-22T03:25:42.905Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found

2024-04-22T03:25:42.905Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: open c:\Users\ldk12\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found

    at C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:622866
    at E.evaluateErrorStatus (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:622882)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (C:\Users\ldk12\Desktop\Arduino IDE\resources\app\lib\backend\main.js:2:622552)

Hi @123142123124

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.

The errors indicates some of those components are missing. If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE again. Hopefully after that the IDE will 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 will be available even without an Internet connection.

Won't run on first startup
I've tried reinstalling after an infinite load, and it's the same infinite load. Is there any other workaround? Is there any way to add that library directly?

You need to turn on Arduino to install Library Manager!

Is the developer not responsible, or is it just time-consuming.

Hundreds of people are pointing out that the program isn't working. I'm still using ver 1.8.x.

Is it a desirable form to distribute programs that do not work even with this behavior.

Does the CEO of Arduino know about this? When will it be resolved? I'm inquiring.

Even if there's a little error, can't you turn on the program and fix it!

Did you try the thing I told you to try?:

It is working perfectly for many, many thousands of people, including myself. The 99% it works for don't have any reason to post about it so all we see are the reports from the 1% who have some sort of unusual system configuration that causes a problem.

I do my best to support that minority.

Are you having some problem with Arduino IDE 2.x? If so, you are welcome to provide a detailed report of the problem in a dedicated forum topic and I'll try to help you out. If you are able to provide assistance in solving @123142123124's problem, you are very welcome to contribute, if not, please move on to other threads since your participation in this one so far is not productive.

This is free open source software. If you think you can fix it, then you are welcome to submit the fix. You can learn how from this guide:

https://github.com/arduino/arduino-ide/blob/main/docs/contributor-guide/pull-requests.md#pull-request-guide

1 Like