Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zed failed to launch. Could not create directory in "/Users/.../.cache/zed". Permission denied (os error 13) #15071

Closed
kennethwolters opened this issue Jul 24, 2024 · 5 comments

Comments

@kennethwolters
Copy link

kennethwolters commented Jul 24, 2024

I was in a situation where zed just wouldn't start anymore a couple months ago and I didn't use it because of that. I can remember deleting the .app file in the Applications directory and re-installing with a fresh .dmg didn't change the behaviour.

Today I did the same and now I am getting the following message:

Screenshot 2024-07-24 at 10 37 23

So it seems this particular problem is not solved for at least my machine.

Originally posted by @kennethwolters in #6148 (comment)

@SomeoneToIgnore
Copy link
Contributor

SomeoneToIgnore commented Jul 24, 2024

I have no idea why there's a message about creating an issue, as users are able to solve this pretty easily themselves by changing the directory's permissions to the current user, please follow #13426 (comment) and below for the instructions.
Note that those instructions are for macOS, but if you're a Linux user you should be familiar with permissions better.

Hopefully #13619 fixes the usability but I do not think we should keep this issue open.

@SomeoneToIgnore SomeoneToIgnore closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
@kennethwolters
Copy link
Author

Hi @SomeoneToIgnore, I did the steps at #13426 (comment) and I am still getting exactly the same error (I am on macOS apple silicon).

ls -lad ~/.config/ ~/.config/zed/ outputs:
drwxr-xr-x 10 kenneth staff 320 Jul 26 20:56 /Users/kenneth/.config/ drwxr-xr-x@ 24 kenneth staff 768 Mar 22 10:10 /Users/kenneth/.config/zed/

@SomeoneToIgnore
Copy link
Contributor

SomeoneToIgnore commented Jul 26, 2024

The error says ~/.cache/zed though? And you show the .config directory permissions which look fine — let's do the same for the former.

@kennethwolters
Copy link
Author

Thank you, careful reading doesn't seem to be my strength! It is really weird that my user didn't have write permissions in .cache I wonder how that arises... I am guessing it's not normal behaviour for a macOS machine

@SomeoneToIgnore
Copy link
Contributor

Yes, something was run with the root privileges before, and created this dir, this is not very good but now you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants