Hi! My IDE is stuck on loading.
I'm on a Macbook pro M1 model.
Hi! My IDE is stuck on loading.
I'm on a Macbook pro M1 model.
Hi @cleverwolfano. I'm going to ask you to post some additional information that might help us to identify the problem.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
terminal
in the "Search" field."/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
<CODE/>
icon on the post composer toolbar.```
) to your reply to make sure the output is correctly formatted.Please let me know if you have any questions or problems while following those instructions.
Last login: Sat Apr 20 00:38:57 on console
CWYG@CWYG ~ % "/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-04-20 22:17:59.015 Arduino IDE[41334:1430026] 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: 41356
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/CWYG/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-04-20T20:17:59.502Z root INFO Backend Object.initialize: 3.7 ms [Finished 0.406 s after backend start]
2024-04-20T20:17:59.505Z root INFO Backend Object.configure: 3.0 ms [Finished 0.407 s after backend start]
2024-04-20T20:17:59.505Z root INFO Backend s.onStart: 1.2 ms [Finished 0.407 s after backend start]
2024-04-20T20:17:59.505Z root INFO Backend s.configure: 0.3 ms [Finished 0.429 s after backend start]
2024-04-20T20:17:59.506Z root INFO Backend d.onStart: 0.2 ms [Finished 0.429 s after backend start]
2024-04-20T20:17:59.506Z root INFO Backend d.configure: 0.1 ms [Finished 0.429 s after backend start]
2024-04-20T20:17:59.507Z root INFO Backend d.initialize: 22.9 ms [Finished 0.430 s after backend start]
2024-04-20T20:17:59.507Z root INFO Backend c.onStart: 0.3 ms [Finished 0.430 s after backend start]
2024-04-20T20:17:59.508Z root INFO Backend a.configure: 2.7 ms [Finished 0.433 s after backend start]
2024-04-20T20:17:59.509Z config INFO >>> Initializing CLI configuration...
2024-04-20T20:17:59.509Z root INFO Backend c.initialize: 0.4 ms [Finished 0.433 s after backend start]
2024-04-20T20:17:59.509Z root INFO Backend R.onStart: 0.6 ms [Finished 0.433 s after backend start]
2024-04-20T20:17:59.509Z config INFO Loading CLI configuration from /Users/CWYG/.arduinoIDE/arduino-cli.yaml...
2024-04-20T20:17:59.510Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.510Z root INFO Backend a.initialize: 0.3 ms [Finished 0.434 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend w.onStart: 1.1 ms [Finished 0.435 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend r.configure: 1.6 ms [Finished 0.435 s after backend start]
2024-04-20T20:17:59.510Z discovery-log INFO start
2024-04-20T20:17:59.510Z discovery-log INFO start new deferred
2024-04-20T20:17:59.510Z root INFO Backend d.initialize: 0.3 ms [Finished 0.435 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend y.onStart: 1.3 ms [Finished 0.436 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend r.configure: 1.1 ms [Finished 0.436 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend a.onStart: 0.4 ms [Finished 0.437 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend h.configure: 0.3 ms [Finished 0.437 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend s.configure: 0.1 ms [Finished 0.437 s after backend start]
2024-04-20T20:17:59.510Z root INFO Backend l.configure: 0.1 ms [Finished 0.437 s after backend start]
2024-04-20T20:17:59.512Z root INFO Theia app listening on http://127.0.0.1:52144.
2024-04-20T20:17:59.512Z root INFO Finished starting backend application: 2.2 ms [Finished 0.439 s after backend start]
2024-04-20T20:17:59.512Z root WARN The local plugin referenced by local-dir:/Users/CWYG/.arduinoIDE/plugins does not exist.
2024-04-20T20:17:59.512Z root WARN The local plugin referenced by local-dir:/Users/CWYG/.arduinoIDE/extensions does not exist.
2024-04-20T20:17:59.519Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/Users/promang/Library/Arduino15","downloads":"/Users/promang/Library/Arduino15/staging","user":"/Users/promang/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-04-20T20:17:59.519Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-04-20T20:17:59.519Z config INFO Loaded the CLI configuration.
2024-04-20T20:17:59.524Z config WARN Could not ensure user directory existence: /Users/promang/Documents/Arduino Error: EACCES: permission denied, mkdir '/Users/promang'
2024-04-20T20:17:59.524Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/promang/Library/Arduino15","sketchDirUri":"file:///Users/promang/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-04-20T20:17:59.524Z config INFO Validating the CLI configuration...
2024-04-20T20:17:59.524Z root ERROR Check accessible failed for input: /Users/promang/Documents/Arduino Error: ENOENT: no such file or directory, scandir '/Users/promang/Documents/Arduino'
2024-04-20T20:17:59.524Z config ERROR Failed to initialize the CLI configuration. Error: InvalidConfigError:
- Could not access the sketchbook location at '/Users/promang/Documents/Arduino': Error: ENOENT: no such file or directory, scandir '/Users/promang/Documents/Arduino'
at R.validateCliConfig (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:615965)
at async R.initConfig (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:613784)
2024-04-20T20:17:59.533Z root INFO Resolve plugins list: 23.8 ms [Finished 0.460 s after backend start]
2024-04-20T20:17:59.595Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.596Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.596Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.596Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.649Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.649Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.649Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.649Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.668Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.668Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.668Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.668Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.719Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.719Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.719Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.720Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.764Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.764Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.764Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.794Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.822Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.822Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.822Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.822Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.841Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.841Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.841Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.841Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.888Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.888Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.888Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.890Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.952Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.952Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.952Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.952Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:17:59.984Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:17:59.984Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:17:59.984Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:17:59.985Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:18:00.030Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:18:00.030Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:18:00.030Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:18:00.030Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:18:00.046Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:18:00.046Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:18:00.046Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:18:00.046Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:18:00.093Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:18:00.093Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:18:00.093Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:18:00.093Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:18:00.167Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:18:00.167Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:42907)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2024-04-20T20:18:00.167Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-04-20T20:18:00.167Z daemon INFO Daemon exited with exit code: 7.
2024-04-20T20:18:00.193Z daemon INFO Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
2024-04-20T20:18:00.193Z daemon ERROR Error: Error: invalid path creating config dir: /Users/promang/Library/Arduino15 error: mkdir /Users/promang: permission denied
It looks this was caused by your macOS username changing from "promang" to "CWYG" since the time you installed Arduino IDE.
The first time you run Arduino IDE, it generates a configuration file that defines the paths to several folders used by the IDE. The default locations of these folders are under your home folder, which means the username is part of the path. When you change your username it makes the paths in the configuration file outdated. When the IDE attempts to access the old path, the operating system does not allow it, which causes the startup to hang.
I think the easiest solution will be to simply delete the configuration file. Arduino IDE will automatically generate a new file on startup with the correct paths.
I'll provide instructions you can follow to do that:
/Users/<username>/.arduinoIDE/arduino-cli.yaml
(where <username>
is your macOS username).arduinoIDE
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.Arduino IDE should now start up fully and be functional as usual.
Note that the file you deleted is used to store some of your IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location" or "Additional Boards Manager URLs" preferences before, you'll need to select Arduino IDE > Settings... from the Arduino IDE menus and then set those preferences once again after performing the instructions I provided above.
Please let me know if you have any questions or problems while following those instructions.
I see, thanks so much for your assistance!
You are welcome.
Regards,
Per