Skip to content

MacOS impossible to open IDE unless it's done from the terminal with sudo command #2284

@oliv2776

Description

@oliv2776

Describe the problem

I can't open the IDE by clicking on the icon in the application folder, I need to open it with the terminal and the sudo command. Otherwise I get this:

2023-11-17T15:37:12.717Z root WARN The local plugin referenced by local-dir:/Users/olivierdeschenes/.arduinoIDE/plugins does not exist.
2023-11-17T15:37:12.717Z root WARN The local plugin referenced by local-dir:/Users/olivierdeschenes/.arduinoIDE/extensions does not exist.
2023-11-17T15:37:12.722Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Volumes/Olivier/Library/Arduino15/libraries"},"data":"**/Volumes/Olivier/Library/Arduino15**","downloads":"/Volumes/Olivier/Library/Arduino15/staging","user":"/Users/olivierdeschenes/arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2023-11-17T15:37:12.722Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-11-17T15:37:12.722Z config INFO Loaded the CLI configuration.
2023-11-17T15:37:12.724Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Volumes/Olivier/Library/Arduino15","sketchDirUri":"file:///Users/olivierdeschenes/arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-11-17T15:37:12.724Z config INFO Validating the CLI configuration...
2023-11-17T15:37:12.725Z root ERROR Uncaught Exception:  Error: EACCES: permission denied, unlink '/Users/olivierdeschenes/.arduinoIDE/localization-cache/zh-tw/nls.config.zh-tw.json'
2023-11-17T15:37:12.725Z root ERROR Error: EACCES: permission denied, unlink '/Users/olivierdeschenes/.arduinoIDE/localization-cache/zh-tw/nls.config.zh-tw.json'
2023-11-17T15:37:12.725Z config INFO The CLI config is valid.
2023-11-17T15:37:12.725Z config INFO <<< Initialized the CLI configuration.
2023-11-17T15:37:12.729Z root INFO Resolve plugins list: 14.3 ms [Finished 0.254 s after backend start]
2023-11-17T15:37:12.733Z daemon INFO time="2023-11-17T16:37:12+01:00" level=info msg="Using config file: /Users/olivierdeschenes/.arduinoIDE/arduino-cli.yaml"
time="2023-11-17T16:37:12+01:00" level=info msg="arduino-cli version 0.34.0"
time="2023-11-17T16:37:12+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:49566
{"IP":"127.0.0.1","Port":"49566"}
2023-11-17T15:37:12.733Z daemon INFO Daemon is running.

It seems it's looking for some files in /Volumes/Olivier but these files doesn't exists why is it looking for them? why when the IDE can't open a folder it asks the user to select another one?
I tried to remove all files linked to the App with AppCleaner and delete the Arduino15 folder but each time I reinstall the IDE I get the same error...

To reproduce

Always

Expected behavior

The IDE should open normally by clicking on the

Arduino IDE version

2.2.2

Operating system

macOS

Operating system version

Somona 14.1

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions