IDE hangs on startup: "Failed to initialize the CLI configuration"

Continuing the discussion from IDE hangs on startup: "Unable to get Documents Folder":

PS C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit> & ".\Arduino IDE"
PS C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit>
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit\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: 15052
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Claus/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-09-18T02:30:40.764Z root INFO Backend Object.initialize: 21.5 ms [Finished 1.855 s after backend start]
2024-09-18T02:30:40.770Z root INFO Backend Object.configure: 19.8 ms [Finished 1.855 s after backend start]
2024-09-18T02:30:40.770Z root INFO Backend s.onStart: 3.8 ms [Finished 1.855 s after backend start]
2024-09-18T02:30:40.771Z root INFO Backend s.configure: 1.1 ms [Finished 1.921 s after backend start]
2024-09-18T02:30:40.772Z root INFO Backend d.onStart: 0.7 ms [Finished 1.921 s after backend start]
2024-09-18T02:30:40.774Z root INFO Backend d.configure: 0.2 ms [Finished 1.922 s after backend start]
2024-09-18T02:30:40.778Z root WARN Backend d.initialize took longer than the expected maximum 50 milliseconds: 66.5 ms [Finished 1.922 s after backend start]
2024-09-18T02:30:40.778Z root INFO Backend c.onStart: 0.8 ms [Finished 1.922 s after backend start]
2024-09-18T02:30:40.779Z root INFO Backend a.configure: 6.1 ms [Finished 1.929 s after backend start]
2024-09-18T02:30:40.782Z config INFO >>> Initializing CLI configuration...
2024-09-18T02:30:40.782Z root INFO Backend c.initialize: 1.0 ms [Finished 1.929 s after backend start]
2024-09-18T02:30:40.783Z root INFO Backend R.onStart: 1.4 ms [Finished 1.930 s after backend start]
2024-09-18T02:30:40.784Z config INFO Loading CLI configuration from c:\Users\Claus\.arduinoIDE\arduino-cli.yaml...
2024-09-18T02:30:40.786Z daemon INFO Starting daemon from C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit\resources\app\lib\backend\resources\arduino-cli.exe...
2024-09-18T02:30:40.786Z root INFO Backend a.initialize: 0.8 ms [Finished 1.932 s after backend start]
2024-09-18T02:30:40.786Z root INFO Backend w.onStart: 5.0 ms [Finished 1.936 s after backend start]
2024-09-18T02:30:40.786Z root INFO Backend r.configure: 6.4 ms [Finished 1.937 s after backend start]
2024-09-18T02:30:40.786Z discovery-log INFO start
2024-09-18T02:30:40.786Z discovery-log INFO start new deferred
2024-09-18T02:30:40.786Z root INFO Backend d.initialize: 0.9 ms [Finished 1.938 s after backend start]
2024-09-18T02:30:40.786Z root INFO Backend y.onStart: 3.8 ms [Finished 1.941 s after backend start]
2024-09-18T02:30:40.786Z root INFO Backend r.configure: 3.5 ms [Finished 1.941 s after backend start]
2024-09-18T02:30:40.787Z root INFO Backend a.onStart: 1.4 ms [Finished 1.944 s after backend start]
2024-09-18T02:30:40.787Z root INFO Backend h.configure: 1.2 ms [Finished 1.944 s after backend start]
2024-09-18T02:30:40.787Z root INFO Backend s.configure: 0.3 ms [Finished 1.945 s after backend start]
2024-09-18T02:30:40.787Z root INFO Backend l.configure: 0.1 ms [Finished 1.945 s after backend start]
2024-09-18T02:30:40.801Z root INFO Theia app listening on http://127.0.0.1:49828.
2024-09-18T02:30:40.801Z root INFO Finished starting backend application: 14.8 ms [Finished 1.959 s after backend start]
2024-09-18T02:30:44.147Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Claus/.arduinoIDE/plugins does not exist.
2024-09-18T02:30:44.147Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Claus/.arduinoIDE/extensions does not exist.
2024-09-18T02:30:44.147Z root WARN The local plugin referenced by local-dir:C:\Users\Claus\.arduinoIDE\plugins does not exist.
2024-09-18T02:30:44.161Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2024-09-18T02:30:44.162Z config ERROR Failed to initialize the CLI configuration. TypeError: Cannot read properties of undefined (reading 'data')
    at R.loadCliConfig (C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit\resources\app\lib\backend\main.js:2:614605)
    at async R.initConfig (C:\Users\Claus\Downloads\arduino-ide_2.3.2_Windows_64bit\resources\app\lib\backend\main.js:2:613378)
2024-09-18T02:30:44.586Z root INFO Resolve plugins list: 3785.8 ms [Finished 5.727 s after backend start]
2024-09-18T02:30:45.292Z daemon INFO time="2024-09-17T22:30:45-04:00" level=info msg="Using config file: c:\\Users\\Claus\\.arduinoIDE\\arduino-cli.yaml"
time="2024-09-17T22:30:45-04:00" level=info msg="arduino-cli.exe version 0.35.3"
time="2024-09-17T22:30:45-04:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:49831
{"IP":"127.0.0.1","Port":"49831"}
2024-09-18T02:30:45.292Z daemon INFO Daemon is running.
2024-09-18T02:30:45.783Z daemon INFO time="2024-09-17T22:30:45-04:00" level=info msg="Checking signature" index="C:\\Users\\Claus\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Claus\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
2024-09-18T02:30:46.011Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loading hardware from: C:\\Users\\Claus\\AppData\\Local\\Arduino15\\packages"
2024-09-18T02:30:46.179Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loading package builtin from: C:\\Users\\Claus\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-09-17T22:30:46-04:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Claus\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-09-17T22:30:46-04:00" level=info msg="Loading tools from dir: C:\\Users\\Claus\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
2024-09-18T02:30:46.272Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
2024-09-18T02:30:46.295Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
2024-09-18T02:30:46.334Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
2024-09-18T02:30:46.362Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.1"
2024-09-18T02:30:46.491Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
2024-09-18T02:30:46.653Z daemon INFO time="2024-09-17T22:30:46-04:00" level=info msg="Loading libraries index file" index="C:\\Users\\Claus\\AppData\\Local\\Arduino15\\library_index.json"
2024-09-18T02:30:49.249Z daemon INFO time="2024-09-17T22:30:49-04:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Claus\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-09-17T22:30:49-04:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Claus\\OneDrive\\Documents\\Arduino\\libraries" location=user
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-09-18T02:30:58.629Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 7099.3 ms [Finished 16.333 s after frontend start]
2024-09-18T02:30:58.629Z root WARN A command editor.action.toggleStickyScroll is already registered.
[6384:0917/223058.882:ERROR:accelerator_util.cc(24)] The accelerator string can only contain ASCII characters, invalid string: "Ctrl+é"
2024-09-18T02:30:58.910Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 143.9 ms [Finished 16.556 s after frontend start]
2024-09-18T02:30:59.400Z root WARN Frontend D.onStart took longer than the expected maximum 100 milliseconds: 492.4 ms [Finished 17.197 s after frontend start]
2024-09-18T02:30:59.772Z root INFO Deploy plugins list: 3785.8 ms [Finished 20.930 s after backend start]

@jeajoe111, I think that you have a different problem, not the one mentioned in the referenced topic.

Close the IDE if it's open and delete the file c:\Users\Claus\.arduinoIDE\arduino-cli.yaml. It is safe to delete that file; if in doubt, make a backup.

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