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

I have similar problem, can you help me?

Here's my error code:

2023-01-27T11:20:16.679Z root ERROR Uncaught Exception:
2023-01-27T11:20:16.679Z 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: Error loading hardware platform: discovery builtin:serial-discovery not installed
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not installed

    at isIndexUpdateRequiredBeforeInit (C:\Users\Gost\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:378:11)
    at CoreClientProvider.evaluateErrorStatus (C:\Users\Gost\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:190:16)
    at ClientReadableStreamImpl.<anonymous> (C:\Users\Gost\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:175:36)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Hi @nomercy777. This error is usually caused by the antivirus software quarantining the serial-discovery and mdns-discovery tools Arduino IDE downloads from the Internet and installs the first time you start the IDE.

Please check your antivirus software to see if it placed these files in quarantine. If you can restore them from quarantine and then restart Arduino IDE, it should work fine.

The original paths of the files:

C:\Users\Gost\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.3.3\serial-discovery.exe
C:\Users\Gost\AppData\Local\Arduino15\packages\builtin\tools\mdns-discovery\1.0.6\mdns-discovery.exe

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