Continuing the discussion from IDE hangs on startup:
Hello,
I have the same problem. Please ,could You check my code.
Thank You in advanced.
PS C:\Users\user\AppData\Local\Programs\arduino-ide> & ".\Arduino IDE"
PS C:\Users\user\AppData\Local\Programs\arduino-ide>
Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:03:03.490Z" (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.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:03:03.490Z"}
Starting backend process. PID: 13068
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/user/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-01-05T03:56:21.061Z root INFO Backend Object.initialize: 6.4 ms [Finished 0.790 s after backend start]
2025-01-05T03:56:21.062Z root INFO Backend Object.configure: 5.5 ms [Finished 0.790 s after backend start]
2025-01-05T03:56:21.062Z root INFO Backend s.onStart: 3.3 ms [Finished 0.790 s after backend start]
2025-01-05T03:56:21.063Z root INFO Backend s.configure: 0.4 ms [Finished 0.823 s after backend start]
2025-01-05T03:56:21.064Z root INFO Backend d.onStart: 0.3 ms [Finished 0.823 s after backend start]
2025-01-05T03:56:21.066Z root INFO Backend d.configure: 0.1 ms [Finished 0.823 s after backend start]
2025-01-05T03:56:21.067Z root INFO Backend d.initialize: 32.9 ms [Finished 0.824 s after backend start]
2025-01-05T03:56:21.067Z root INFO Backend c.onStart: 0.4 ms [Finished 0.824 s after backend start]
2025-01-05T03:56:21.068Z root INFO Backend a.configure: 1.6 ms [Finished 0.825 s after backend start]
2025-01-05T03:56:21.071Z config INFO >>> Initializing CLI configuration...
2025-01-05T03:56:21.071Z root INFO Backend c.initialize: 1.0 ms [Finished 0.826 s after backend start]
2025-01-05T03:56:21.071Z root INFO Backend x.onStart: 1.6 ms [Finished 0.827 s after backend start]
2025-01-05T03:56:21.073Z config INFO Loading CLI configuration from c:\Users\user\.arduinoIDE\arduino-cli.yaml...
2025-01-05T03:56:21.074Z daemon INFO Starting daemon from C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2025-01-05T03:56:21.074Z root INFO Backend a.initialize: 0.6 ms [Finished 0.829 s after backend start]
2025-01-05T03:56:21.074Z root INFO Backend w.onStart: 1.7 ms [Finished 0.830 s after backend start]
2025-01-05T03:56:21.074Z root INFO Backend r.configure: 3.0 ms [Finished 0.830 s after backend start]
2025-01-05T03:56:21.074Z discovery-log INFO start
2025-01-05T03:56:21.074Z discovery-log INFO start new deferred
2025-01-05T03:56:21.074Z root INFO Backend d.initialize: 0.9 ms [Finished 0.831 s after backend start]
2025-01-05T03:56:21.074Z root INFO Backend y.onStart: 3.1 ms [Finished 0.834 s after backend start]
2025-01-05T03:56:21.074Z root INFO Backend r.configure: 2.5 ms [Finished 0.834 s after backend start]
2025-01-05T03:56:21.075Z root INFO Backend a.onStart: 1.0 ms [Finished 0.837 s after backend start]
2025-01-05T03:56:21.075Z root INFO Backend h.configure: 0.9 ms [Finished 0.837 s after backend start]
2025-01-05T03:56:21.075Z root INFO Backend s.configure: 0.2 ms [Finished 0.837 s after backend start]
2025-01-05T03:56:21.075Z root INFO Backend l.configure: 0.1 ms [Finished 0.837 s after backend start]
2025-01-05T03:56:21.079Z root INFO Theia app listening on http://127.0.0.1:63606.
2025-01-05T03:56:21.079Z root INFO Finished starting backend application: 4.5 ms [Finished 0.841 s after backend start]
2025-01-05T03:56:21.087Z root WARN The local plugin referenced by local-dir:/c%3A/Users/user/.arduinoIDE/plugins does not exist.
2025-01-05T03:56:21.087Z root WARN The local plugin referenced by local-dir:/c%3A/Users/user/.arduinoIDE/extensions does not exist.
2025-01-05T03:56:21.087Z root WARN The local plugin referenced by local-dir:C:\Users\user\.arduinoIDE\plugins does not exist.
2025-01-05T03:56:21.113Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2025-01-05T03:56:21.113Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'2025-01-05T03:56:21.149Z root INFO Resolve plugins list: 76.5 ms [Finished 0.910 s after backend start]
2025-01-05T03:56:21.506Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="arduino-cli version 1.1.1"
time="2025-01-05T04:56:21+01:00" level=info msg="Using config file: c:\\Users\\user\\.arduinoIDE\\arduino-cli.yaml"
time="2025-01-05T04:56:21+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:63607
{"IP":"127.0.0.1","Port":"63607"}
2025-01-05T03:56:21.506Z daemon INFO Daemon is running.
2025-01-05T03:56:21.508Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\user\\Documents\\Arduino","data":"C:\\Users\\user\\AppData\\Local\\Arduino15"}}
2025-01-05T03:56:21.508Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\user\\Documents\\Arduino","data":"C:\\Users\\user\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2025-01-05T03:56:21.508Z config INFO Loaded the CLI configuration.
2025-01-05T03:56:21.521Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/user/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/user/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2025-01-05T03:56:21.521Z config INFO Validating the CLI configuration...
2025-01-05T03:56:21.527Z config INFO The CLI config is valid.
2025-01-05T03:56:21.527Z config INFO <<< Initialized the CLI configuration.
2025-01-05T03:56:21.548Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-01-05T03:56:21.650Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="Loading hardware from: C:\\Users\\user\\AppData\\Local\\Arduino15\\packages"
time="2025-01-05T04:56:21+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\user\\AppData\\Local\\Arduino15\\library_index.json"
time="2025-01-05T04:56:21+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\user\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2025-01-05T04:56:21+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\user\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2025-01-05T03:56:21.654Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.11.21:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2025-01-05T03:56:21.655Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\user\AppData\Local\Arduino15\package_index.json: open C:\Users\user\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.657Z 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
2025-01-05T03:56:21.658Z 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
2025-01-05T03:56:21.658Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\user\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.666Z 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\user\AppData\Local\Arduino15\package_index.json: open C:\Users\user\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
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\user\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.669Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2025-01-05T04:56:21+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
time="2025-01-05T04:56:21+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2025-01-05T03:56:21.683Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2
2025-01-05T03:56:21.684Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2
2025-01-05T03:56:21.688Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
at t.callErrorFromStatus (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:921712)
at Object.onReceiveStatus (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:949334)
at Object.onReceiveStatus (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:942356)
at C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:1028497
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
at s.makeServerStreamRequest (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:949101)
at s.updateIndex (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:1013389)
at C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:778402
at C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:778750
at new Promise (<anonymous>)
at v.doUpdateIndex (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:778729)
at v.updatePlatformIndex (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:778374)
at v.updateIndex (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:777742)
at v.initInstanceWithFallback (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:776035)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-01-05T03:56:21.694Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2025-01-05T03:56:21.711Z daemon INFO time="2025-01-05T04:56:21+01:00" level=info msg="Loading hardware from: C:\\Users\\user\\AppData\\Local\\Arduino15\\packages"
time="2025-01-05T04:56:21+01:00" level=info msg="Loading libraries index file" index="C:\\Users\\user\\AppData\\Local\\Arduino15\\library_index.json"
time="2025-01-05T04:56:21+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\user\\AppData\\Local\\Arduino15\\libraries" isSingleLibrary=false location=ide
time="2025-01-05T04:56:21+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\user\\Documents\\Arduino\\libraries" isSingleLibrary=false location=user
2025-01-05T03:56:21.712Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.11.21:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2025-01-05T03:56:21.713Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\user\AppData\Local\Arduino15\package_index.json: open C:\Users\user\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.714Z 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
2025-01-05T03:56:21.714Z 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
2025-01-05T03:56:21.715Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\user\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.717Z 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\user\AppData\Local\Arduino15\package_index.json: open C:\Users\user\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
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\user\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2025-01-05T03:56:21.717Z 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\user\AppData\Local\Arduino15\package_index.json: open C:\Users\user\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
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\user\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
at C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:777546
at v.evaluateErrorStatus (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:777562)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async a.<anonymous> (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:777232)2025-01-05T03:56:22.836Z root INFO Deploy plugins list: 76.5 ms [Finished 2.598 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2025-01-05T03:56:23.830Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 209.0 ms [Finished 2.589 s after frontend start]
2025-01-05T03:56:23.830Z root WARN A command editor.action.toggleStickyScroll is already registered.
Closing channel on service path '/services/electron-window'.
Closing channel on service path '/services/ide-updater'.
Stored workspaces roots:
No sketches were scheduled for deletion.