IDE hangs on startup: "discovery teensy:teensy-discovery not found"

Every time I try to open the new Arduino IDE I can't get past the bouncing logo. When I run in powershell this is what I get.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Program Files\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T10:04:35.814Z" (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.2","cliVersion":"0.35.3","buildDate":"2024-02-20T10:04:35.814Z"}
Starting backend process. PID: 8780
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/charl/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-03-13T16:41:22.381Z root INFO Backend Object.initialize: 3.1 ms [Finished 0.324 s after backend start]
2024-03-13T16:41:22.381Z root INFO Backend Object.configure: 2.5 ms [Finished 0.324 s after backend start]
2024-03-13T16:41:22.381Z root INFO Backend s.onStart: 1.3 ms [Finished 0.324 s after backend start]
2024-03-13T16:41:22.381Z root INFO Backend s.configure: 0.2 ms [Finished 0.338 s after backend start]
2024-03-13T16:41:22.382Z root INFO Backend d.onStart: 0.2 ms [Finished 0.338 s after backend start]
2024-03-13T16:41:22.382Z root INFO Backend d.configure: 0.1 ms [Finished 0.338 s after backend start]
2024-03-13T16:41:22.383Z root INFO Backend d.initialize: 13.8 ms [Finished 0.338 s after backend start]
2024-03-13T16:41:22.383Z root INFO Backend c.onStart: 0.2 ms [Finished 0.338 s after backend start]
2024-03-13T16:41:22.383Z root INFO Backend a.configure: 0.7 ms [Finished 0.339 s after backend start]
2024-03-13T16:41:22.384Z config INFO >>> Initializing CLI configuration...
2024-03-13T16:41:22.384Z root INFO Backend c.initialize: 0.4 ms [Finished 0.339 s after backend start]
2024-03-13T16:41:22.384Z root INFO Backend R.onStart: 0.4 ms [Finished 0.339 s after backend start]
2024-03-13T16:41:22.385Z config INFO Loading CLI configuration from c:\Users\charl\.arduinoIDE\arduino-cli.yaml...
2024-03-13T16:41:22.385Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-03-13T16:41:22.385Z root INFO Backend a.initialize: 0.2 ms [Finished 0.340 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend w.onStart: 0.7 ms [Finished 0.340 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend r.configure: 1.1 ms [Finished 0.341 s after backend start]
2024-03-13T16:41:22.385Z discovery-log INFO start
2024-03-13T16:41:22.385Z discovery-log INFO start new deferred
2024-03-13T16:41:22.385Z root INFO Backend d.initialize: 0.4 ms [Finished 0.341 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend y.onStart: 1.4 ms [Finished 0.342 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend r.configure: 1.1 ms [Finished 0.342 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend a.onStart: 0.3 ms [Finished 0.343 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend h.configure: 0.3 ms [Finished 0.343 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend s.configure: 0.1 ms [Finished 0.343 s after backend start]
2024-03-13T16:41:22.385Z root INFO Backend l.configure: 0.0 ms [Finished 0.343 s after backend start]
2024-03-13T16:41:22.387Z root INFO Theia app listening on http://127.0.0.1:50612.
2024-03-13T16:41:22.387Z root INFO Finished starting backend application: 1.8 ms [Finished 0.345 s after backend start]
2024-03-13T16:41:22.390Z root WARN The local plugin referenced by local-dir:/c%3A/Users/charl/.arduinoIDE/plugins does not exist.
2024-03-13T16:41:22.390Z root WARN The local plugin referenced by local-dir:/c%3A/Users/charl/.arduinoIDE/extensions does not exist.
2024-03-13T16:41:22.391Z root WARN The local plugin referenced by local-dir:C:\Users\charl\.arduinoIDE\plugins does not exist.
2024-03-13T16:41:22.394Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\charl\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\charl\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\charl\\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}}
2024-03-13T16:41:22.394Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-03-13T16:41:22.394Z config INFO Loaded the CLI configuration.
2024-03-13T16:41:22.396Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/charl/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/charl/OneDrive/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-03-13T16:41:22.396Z config INFO Validating the CLI configuration...
2024-03-13T16:41:22.396Z config INFO The CLI config is valid.
2024-03-13T16:41:22.396Z config INFO <<< Initialized the CLI configuration.
2024-03-13T16:41:22.407Z root INFO Resolve plugins list: 22.2 ms [Finished 0.364 s after backend start]
2024-03-13T16:41:22.435Z daemon INFO time="2024-03-13T10:41:22-06:00" level=info msg="Using config file: c:\\Users\\charl\\.arduinoIDE\\arduino-cli.yaml"
time="2024-03-13T10:41:22-06:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-03-13T10:41:22-06:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:50613
{"IP":"127.0.0.1","Port":"50613"}
2024-03-13T16:41:22.435Z daemon INFO Daemon is running.
2024-03-13T16:41:22.505Z daemon INFO time="2024-03-13T10:41:22-06:00" level=info msg="Checking signature" index="C:\\Users\\charl\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\charl\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-03-13T10:41:22-06:00" level=info msg="Loading hardware from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading package arduino from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware"
time="2024-03-13T10:41:22-06:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
time="2024-03-13T10:41:22-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading package builtin from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-03-13T10:41:22-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading package teensy from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware"
time="2024-03-13T10:41:22-06:00" level=info msg="Adding monitor tool" protocol=teensy tool="teensy:teensy-monitor"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded platform" platform="teensy:avr@1.58.1"
time="2024-03-13T10:41:22-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\tools"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="teensy:teensy-compile@11.3.1"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.56.2"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.58.0"
time="2024-03-13T10:41:22-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.59.0"
time="2024-03-13T10:41:22-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" location=platform
time="2024-03-13T10:41:22-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries" location=platform
time="2024-03-13T10:41:22-06:00" level=info msg="Loading libraries index file" index="C:\\Users\\charl\\AppData\\Local\\Arduino15\\library_index.json"
2024-03-13T16:41:22.506Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery teensy:teensy-discovery not found
2024-03-13T16:41:22.610Z daemon INFO time="2024-03-13T10:41:22-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-03-13T10:41:22-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\OneDrive\\Documents\\Arduino\\libraries" location=user
2024-03-13T16:41:22.843Z 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: Error loading hardware platform: discovery teensy:teensy-discovery not found

2024-03-13T16:41:22.847Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-03-13T16:41:22.847Z daemon INFO time="2024-03-13T10:41:22-06:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-03-13T10:41:22-06:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-03-13T16:41:22.921Z root INFO Deploy plugins list: 22.2 ms [Finished 0.879 s after backend start]
2024-03-13T16:41:23.159Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Checking signature" index="C:\\Users\\charl\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\charl\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-03-13T16:41:23.159Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loading hardware from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages"
2024-03-13T16:41:23.160Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loading package arduino from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware"
2024-03-13T16:41:23.161Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-03-13T10:41:23-06:00" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
time="2024-03-13T10:41:23-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-03-13T10:41:23-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
2024-03-13T16:41:23.161Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
2024-03-13T16:41:23.161Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
2024-03-13T16:41:23.161Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loading package builtin from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-03-13T10:41:23-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-03-13T16:41:23.162Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loading package teensy from: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding monitor tool" protocol=teensy tool="teensy:teensy-monitor"
time="2024-03-13T10:41:23-06:00" level=info msg="Loaded platform" platform="teensy:avr@1.58.1"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\tools"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loading tools from dir: C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\tools"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="teensy:teensy-compile@11.3.1"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.56.2"
2024-03-13T16:41:23.164Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.58.0"
time="2024-03-13T10:41:23-06:00" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.59.0"
2024-03-13T16:41:23.164Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery teensy:teensy-discovery not found
2024-03-13T16:41:23.165Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\teensy\\hardware\\avr\\1.58.1\\libraries" location=platform
2024-03-13T16:41:23.166Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" location=platform
time="2024-03-13T10:41:23-06:00" level=info msg="Loading libraries index file" index="C:\\Users\\charl\\AppData\\Local\\Arduino15\\library_index.json"
2024-03-13T16:41:23.264Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\AppData\\Local\\Arduino15\\libraries" location=ide
2024-03-13T16:41:23.264Z daemon INFO time="2024-03-13T10:41:23-06:00" level=info msg="Adding libraries dir" dir="C:\\Users\\charl\\OneDrive\\Documents\\Arduino\\libraries" location=user
Opening channel for service path '/services/electron-window'.
2024-03-13T16:41:23.456Z 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: Error loading hardware platform: discovery teensy:teensy-discovery not found

2024-03-13T16:41:23.456Z 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 teensy:teensy-discovery not found

    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622877
    at E.evaluateErrorStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622893)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:622563)
Opening channel for service path '/services/ide-updater'.
2024-03-13T16:41:23.623Z root WARN A command editor.action.toggleStickyScroll is already registered.

Up to this point, "our" machines report the same. Yours then errors to a halt where mine continues.

When I start my IDE on my very slow Windows 11 (the script even complains root WARN Backend d.initialize took longer than the expected maximum 50 milliseconds: 66.0 ms), I see in the IDE lower-left the "indexing x/y" happening... and so I wait.

Try restarting your IDE, and start a tea an toast while it loads and indexes and lets all the magic out.

Hi @chazlambo.

This indicates that something is wrong with the installation of the "Teensy" boards platform on your computer.

Other users who experienced this problem reported that it was fixed after uninstalling and then reinstalling the platform. Normally we can use the convenient Boards Manager GUI to uninstall platforms, but since the IDE doesn't start it will instead be necessary to uninstall it manually. After that, the IDE should start up and you can use Boards Manager to reinstall the platform.

I'll provide instructions you can follow to do that:

A. Uninstall "Teensy" Platform

  1. Close the Arduino IDE window if it is running.
  2. Delete the folder at the following path:
    C:\Users\charl\AppData\Local\Arduino15\packages\teensy\
    
    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!
    :exclamation: If looking for it with your file browser or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  3. Start Arduino IDE.

The IDE should start successfully this time.

B. Reinstall "Teensy" Platform

The instructions above uninstalled the "Teensy" boards platform. If you need that platform, you should now reinstall it by following the official instructions here:

https://www.pjrc.com/arduino-ide-2-0-0-teensy-support/

Hopefully that will produce a fully working installation that won't interfere with the IDE's ability to start up on future sessions.


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

That did the trick. Thanks you're awesome!

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

Regards,
Per

A post was merged into an existing topic: IDE hangs on startup

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