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

Hello!

I Know this topic has been posted many times, but none of the threads seems to have provided a solution on my end.

I have installed Arduino IDE 2.3.2 on my Macbook Pro running Sonoma; everytime i try to launch IDE it gets stuck on the pulsating logo.

This is my work laptop and it has Jamf installed, could that contribute to the issue?

If anyone has a solution or some insight I would be very grateful :slight_smile:

Thanks everyone!

At first run, the IDE needs internet access to download some additional stuff.

I'm not a Mac user.

  1. Does Jamf keeps a log? You can check that.
  2. Arduino IDE not working on macOS anymore - #2 by ptillisch contains instructions to get relevant data that might help others to help you.

I don't know enough about the subject so I will probably not be able to assist.

Thanks a lot for your reply and for the link.
I am not sure if Jamf keeps a log, but srely i would not have access to it and would ave to go through IT which would not help.

I will make sure to post the solution if i find one :slight_smile:

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


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Open macOS Launchpad.
  3. Type terminal in the "Search" field.
  4. Click on the "Terminal" icon.
    A "zsh" window will open.
  5. Type the following command in the zsh window:
    "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
    
  6. Press the Enter key.
  7. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the Terminal window).
  8. Switch back to the Terminal window if the Arduino IDE window took the focus.
  9. Press the Command+A keyboard shortcut.
    This will select all the text in the Terminal window.
  10. Press the Command+C keyboard shortcut.
    This will copy the selected text to the clipboard.
  11. Open a forum reply here by clicking the "Reply" button.
  12. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
    Code block icon on toolbar
  13. Press the Command+V keyboard shortcut.
    This will paste the output into the code block.
  14. Move the cursor outside of the code block markup before you add any additional text to your reply.
  15. Click the "Reply" button to post the output.

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

Hi @ptillisch Thank you so much for your reply here is attached the results from the terminal.

(base) sce_admin@EBY03019M11840S ~ % /Applications/Arduino\ IDE.app/Contents/MacOS/Arduino\ IDE
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
2024-03-12 11:05:17.321 Arduino IDE[38634:690651] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
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-20T09:53:59.281Z" (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-20T09:53:59.281Z"}
Starting backend process. PID: 38662
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/sce_admin/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-03-12T11:05:17.779Z root INFO Backend Object.initialize: 3.2 ms [Finished 0.392 s after backend start]
2024-03-12T11:05:17.781Z root INFO Backend Object.configure: 2.6 ms [Finished 0.392 s after backend start]
2024-03-12T11:05:17.781Z root INFO Backend s.onStart: 1.0 ms [Finished 0.392 s after backend start]
2024-03-12T11:05:17.781Z root INFO Backend s.configure: 0.2 ms [Finished 0.411 s after backend start]
2024-03-12T11:05:17.782Z root INFO Backend d.onStart: 0.1 ms [Finished 0.411 s after backend start]
2024-03-12T11:05:17.782Z root INFO Backend d.configure: 0.1 ms [Finished 0.411 s after backend start]
2024-03-12T11:05:17.783Z root INFO Backend d.initialize: 18.5 ms [Finished 0.411 s after backend start]
2024-03-12T11:05:17.783Z root INFO Backend c.onStart: 0.2 ms [Finished 0.411 s after backend start]
2024-03-12T11:05:17.783Z root INFO Backend a.configure: 2.0 ms [Finished 0.413 s after backend start]
2024-03-12T11:05:17.784Z config INFO >>> Initializing CLI configuration...
2024-03-12T11:05:17.784Z root INFO Backend c.initialize: 0.3 ms [Finished 0.413 s after backend start]
2024-03-12T11:05:17.784Z root INFO Backend R.onStart: 0.4 ms [Finished 0.414 s after backend start]
2024-03-12T11:05:17.784Z config INFO Loading CLI configuration from /Users/sce_admin/.arduinoIDE/arduino-cli.yaml...
2024-03-12T11:05:17.785Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-03-12T11:05:17.785Z root INFO Backend a.initialize: 0.3 ms [Finished 0.414 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend w.onStart: 0.6 ms [Finished 0.415 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend r.configure: 1.0 ms [Finished 0.415 s after backend start]
2024-03-12T11:05:17.785Z discovery-log INFO start
2024-03-12T11:05:17.785Z discovery-log INFO start new deferred
2024-03-12T11:05:17.785Z root INFO Backend d.initialize: 0.2 ms [Finished 0.415 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend y.onStart: 1.1 ms [Finished 0.416 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend r.configure: 0.9 ms [Finished 0.416 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend a.onStart: 0.3 ms [Finished 0.417 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend h.configure: 0.3 ms [Finished 0.417 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend s.configure: 0.1 ms [Finished 0.417 s after backend start]
2024-03-12T11:05:17.785Z root INFO Backend l.configure: 0.0 ms [Finished 0.417 s after backend start]
2024-03-12T11:05:17.786Z root INFO Theia app listening on http://127.0.0.1:50567.
2024-03-12T11:05:17.786Z root INFO Finished starting backend application: 1.5 ms [Finished 0.418 s after backend start]
2024-03-12T11:05:17.794Z root WARN The local plugin referenced by local-dir:/Users/sce_admin/.arduinoIDE/plugins does not exist.
2024-03-12T11:05:17.794Z root WARN The local plugin referenced by local-dir:/Users/sce_admin/.arduinoIDE/extensions does not exist.
2024-03-12T11:05:17.796Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/Users/sce_admin/Library/Arduino15","downloads":"/Users/sce_admin/Library/Arduino15/staging","user":"/Users/sce_admin/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-12T11:05:17.796Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-03-12T11:05:17.796Z config INFO Loaded the CLI configuration.
2024-03-12T11:05:17.798Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/sce_admin/Library/Arduino15","sketchDirUri":"file:///Users/sce_admin/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-03-12T11:05:17.798Z config INFO Validating the CLI configuration...
2024-03-12T11:05:17.829Z config INFO The CLI config is valid.
2024-03-12T11:05:17.829Z config INFO <<< Initialized the CLI configuration.
Restoring workspace roots: /Users/sce_admin/Desktop/sketch_feb15c/sketch_feb15c.ino
isTempSketch: false. Input was /Users/sce_admin/Desktop/sketch_feb15c/sketch_feb15c.ino
2024-03-12T11:05:17.847Z root INFO Resolve plugins list: 63.2 ms [Finished 0.479 s after backend start]
2024-03-12T11:05:17.932Z daemon INFO time="2024-03-12T11:05:17Z" level=info msg="Using config file: /Users/sce_admin/.arduinoIDE/arduino-cli.yaml"
time="2024-03-12T11:05:17Z" level=info msg="arduino-cli version 0.35.3"
2024-03-12T11:05:17.932Z daemon INFO time="2024-03-12T11:05:17Z" level=info msg="Executing `arduino-cli daemon`"
2024-03-12T11:05:17.939Z daemon INFO Daemon is now listening on 127.0.0.1:50568
{"IP":"127.0.0.1","Port":"50568"}
2024-03-12T11:05:17.939Z daemon INFO Daemon is running.
2024-03-12T11:05:17.977Z daemon INFO time="2024-03-12T11:05:17Z" level=info msg="Checking signature" index=/Users/sce_admin/Library/Arduino15/package_index.json signatureFile=/Users/sce_admin/Library/Arduino15/package_index.json.sig trusted=true
2024-03-12T11:05:17.978Z daemon INFO time="2024-03-12T11:05:17Z" level=info msg="Loading hardware from: /Users/sce_admin/Library/Arduino15/packages"
2024-03-12T11:05:17.979Z daemon INFO time="2024-03-12T11:05:17Z" level=info msg="Loading package arduino from: /Users/sce_admin/Library/Arduino15/packages/arduino/hardware"
2024-03-12T11:05:18.076Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
2024-03-12T11:05:18.076Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
2024-03-12T11:05:18.087Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-03-12T11:05:18Z" level=info msg="Loaded platform" platform="arduino:mbed_nano@4.1.1"
time="2024-03-12T11:05:18Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/arduino/tools"
2024-03-12T11:05:18.087Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/arduino/tools"
2024-03-12T11:05:18.089Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
2024-03-12T11:05:18.089Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:arm-none-eabi-gcc@7-2017q4"
2024-03-12T11:05:18.090Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
2024-03-12T11:05:18.090Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
2024-03-12T11:05:18.090Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:bossac@1.9.1-arduino2"
2024-03-12T11:05:18.090Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:dfu-util@0.10.0-arduino1"
2024-03-12T11:05:18.090Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:openocd@0.11.0-arduino2"
2024-03-12T11:05:18.091Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="arduino:rp2040tools@1.0.6"
2024-03-12T11:05:18.091Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loading package builtin from: /Users/sce_admin/Library/Arduino15/packages/builtin"
2024-03-12T11:05:18.091Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/builtin/tools"
time="2024-03-12T11:05:18Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/builtin/tools"
2024-03-12T11:05:18.092Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-03-12T11:05:18.092Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-03-12T11:05:18.093Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-03-12T11:05:18.093Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
2024-03-12T11:05:18.093Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
2024-03-12T11:05:18.093Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Loading package teensy from: /Users/sce_admin/Library/Arduino15/packages/teensy/hardware"
2024-03-12T11:05:18.124Z daemon INFO time="2024-03-12T11:05:18Z" level=info msg="Adding monitor tool" protocol=teensy tool="teensy:teensy-monitor"
time="2024-03-12T11:05:18Z" level=info msg="Loaded platform" platform="teensy:avr@1.58.1"
time="2024-03-12T11:05:18Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/teensy/tools"
time="2024-03-12T11:05:18Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/teensy/tools"
time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="teensy:teensy-compile@11.3.1"
time="2024-03-12T11:05:18Z" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.58.0"
time="2024-03-12T11:05:18Z" level=info msg="Starting download" url="https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_macOS_ARM64.tar.gz"
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-03-12T11:05:19.125Z daemon INFO time="2024-03-12T11:05:19Z" level=info msg="Installing tool" Tool="builtin:serial-monitor@0.14.1"
2024-03-12T11:05:19.158Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 163.1 ms [Finished 1.263 s after frontend start]
2024-03-12T11:05:19.201Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-03-12T11:05:19.203Z daemon INFO time="2024-03-12T11:05:19Z" level=info msg="Skipping tool configuration." Tool="builtin:serial-monitor@0.14.1"
time="2024-03-12T11:05:19Z" level=info msg="Tool installed" Tool="builtin:serial-monitor@0.14.1"
time="2024-03-12T11:05:19Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/builtin/tools"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
time="2024-03-12T11:05:19Z" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
time="2024-03-12T11:05:19Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries location=platform
time="2024-03-12T11:05:19Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
time="2024-03-12T11:05:19Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries location=platform
time="2024-03-12T11:05:19Z" level=info msg="Loading libraries index file" index=/Users/sce_admin/Library/Arduino15/library_index.json
2024-03-12T11:05:19.203Z 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-12T11:05:19.297Z daemon INFO time="2024-03-12T11:05:19Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/libraries location=ide
time="2024-03-12T11:05:19Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Documents/Arduino/libraries location=user
2024-03-12T11:05:20.006Z root INFO Deploy plugins list: 63.2 ms [Finished 2.638 s after backend start]
2024-03-12T11:05:20.079Z 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-12T11:05:20.080Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-03-12T11:05:20.080Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-03-12T11:05:20.081Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-03-12T11:05:20.763Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Checking signature" index=/Users/sce_admin/Library/Arduino15/package_index.json signatureFile=/Users/sce_admin/Library/Arduino15/package_index.json.sig trusted=true
2024-03-12T11:05:20.763Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loading hardware from: /Users/sce_admin/Library/Arduino15/packages"
2024-03-12T11:05:20.763Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loading package arduino from: /Users/sce_admin/Library/Arduino15/packages/arduino/hardware"
2024-03-12T11:05:20.765Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-03-12T11:05:20Z" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
2024-03-12T11:05:20.766Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-03-12T11:05:20Z" level=info msg="Loaded platform" platform="arduino:mbed_nano@4.1.1"
2024-03-12T11:05:20.766Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/arduino/tools"
time="2024-03-12T11:05:20Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/arduino/tools"
2024-03-12T11:05:20.767Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
2024-03-12T11:05:20.768Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:arm-none-eabi-gcc@7-2017q4"
2024-03-12T11:05:20.768Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
2024-03-12T11:05:20.768Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
2024-03-12T11:05:20.768Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:bossac@1.9.1-arduino2"
2024-03-12T11:05:20.769Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:dfu-util@0.10.0-arduino1"
2024-03-12T11:05:20.769Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:openocd@0.11.0-arduino2"
2024-03-12T11:05:20.769Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="arduino:rp2040tools@1.0.6"
2024-03-12T11:05:20.769Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loading package builtin from: /Users/sce_admin/Library/Arduino15/packages/builtin"
2024-03-12T11:05:20.769Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/builtin/tools"
time="2024-03-12T11:05:20Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/builtin/tools"
2024-03-12T11:05:20.770Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-03-12T11:05:20.770Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-03-12T11:05:20.770Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-03-12T11:05:20.770Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
2024-03-12T11:05:20.771Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
2024-03-12T11:05:20.771Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-03-12T11:05:20.771Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loading package teensy from: /Users/sce_admin/Library/Arduino15/packages/teensy/hardware"
2024-03-12T11:05:20.773Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding monitor tool" protocol=teensy tool="teensy:teensy-monitor"
time="2024-03-12T11:05:20Z" level=info msg="Loaded platform" platform="teensy:avr@1.58.1"
2024-03-12T11:05:20.773Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Checking existence of 'tools' path: /Users/sce_admin/Library/Arduino15/packages/teensy/tools"
time="2024-03-12T11:05:20Z" level=info msg="Loading tools from dir: /Users/sce_admin/Library/Arduino15/packages/teensy/tools"
2024-03-12T11:05:20.773Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="teensy:teensy-compile@11.3.1"
2024-03-12T11:05:20.773Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Loaded tool" tool="teensy:teensy-tools@1.58.0"
2024-03-12T11:05:20.774Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries location=platform
2024-03-12T11:05:20.774Z 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-12T11:05:20.774Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/arduino/hardware/mbed_nano/4.1.1/libraries location=platform
time="2024-03-12T11:05:20Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
time="2024-03-12T11:05:20Z" level=info msg="Loading libraries index file" index=/Users/sce_admin/Library/Arduino15/library_index.json
2024-03-12T11:05:20.888Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Library/Arduino15/libraries location=ide
2024-03-12T11:05:20.888Z daemon INFO time="2024-03-12T11:05:20Z" level=info msg="Adding libraries dir" dir=/Users/sce_admin/Documents/Arduino/libraries location=user
2024-03-12T11:05:21.196Z 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-12T11:05:21.196Z 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 /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:622733
    at E.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:622749)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async a.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:622419)


Hi! I have followed the instructions and pasted the results last week. Just checking if they appear on the thread or not.

Thanks again!

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:
    /Users/sce_admin/Library/Arduino15/packages/teensy/
    
    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!
    :exclamation: The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
  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.

Thanks very much!
Deleting the teensy package folder did the job and the IDE started on the first try.

Thanks again.

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

Regards,
Per

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