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 Fails to Launch #13426

Closed
1 task done
arashmoini opened this issue Jun 23, 2024 · 7 comments
Closed
1 task done

Zed Fails to Launch #13426

arashmoini opened this issue Jun 23, 2024 · 7 comments
Labels
support User support (non-defect troubleshooting, documentation, etc)

Comments

@arashmoini
Copy link

arashmoini commented Jun 23, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I downloaded the latest release of Zed for Apple Silicon (0.140.5), but I can't seem to open the app. The error I get is the following: "Could not create directory "/Users/Name/.config/zed": Permission denied (os error 13). For help resolving this, please open an issue on https://github.com/zed-industries/zed."

Environment

MacOS Sonoma 14.5
Apple M3 Pro
18 GB RAM
512 GB Storage

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log
@arashmoini arashmoini added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Jun 23, 2024
@jansol
Copy link
Contributor

jansol commented Jun 23, 2024

@arashmoini
Copy link
Author

Thanks for the reply. I tried the commands but unfortunately they didn't work.

@notpeter
Copy link
Member

Hi @arashmoini, can you try manually creating the zed config directory and paste if you get an error:

mkdir -p ~/.config/zed
ls -lad ~/.config/ ~/.config/zed/

Thanks

@notpeter notpeter added needs info / awaiting response Issue that needs more information from the user and removed bug [core label] triage Maintainer needs to classify the issue panic / crash [core label] admin read Pending admin review labels Jun 24, 2024
@arashmoini
Copy link
Author

Hey @notpeter, I ran the commands and get an error saying that permission is denied. I'm thinking it has something to do with the Sharing and Permissions settings of the .config folder, but I checked those and they all looked good to me.

@notpeter
Copy link
Member

@arashmoini Yes. The permissions on your .config are such that your user does not have rights to create subdirectories under .config. If you have local administrator/sudo rights you should be able to do the following:

sudo chown $(whoami):staff ~/.config
chmod +uwrx ~/.config

Note, the command in the other issue was previous incorrect -- I failed to include sudo for the chown command. Can you try this and see if it works? Additionally, if you paste the output of ls -lad ~/.config/ ~/.config/zed/ I could confirm my hypothesis.

@jansol
Copy link
Contributor

jansol commented Jun 24, 2024

Even if ~/.config is fine, ~/.config/zed (and everything in it) also needs to be correct. Which I guess it might not be if you happened to run Zed with sudo at some point... (don't do that)

@arashmoini
Copy link
Author

Zed seems to open up fine now! Even though this is the output from the ls command: ls: /Users/arashmoini/.config/zed/: No such file or directory drwxr-xr-x 3 arashmoini staff 96 28 May 08:53 /Users/arashmoini/.config/. It seems the command created the config folder but I just couldn't access it using ls.

Thanks for your help, everyone!

@notpeter notpeter added support User support (non-defect troubleshooting, documentation, etc) and removed needs info / awaiting response Issue that needs more information from the user labels Jun 28, 2024
github-merge-queue bot pushed a commit that referenced this issue Dec 23, 2024
…22368)

Also show all paths with issues, grouping them by the issue kind.

Inspired by #22365 ,
#20162,
#13426, ...

Attempts to provide example `chown` and `chmod` commands on this error,
instead of encouraging to submit another issue.
For now, uses a hardcoded command examples, but we might provide a
better workflow later, e.g. try to automatically run those commands.

I seem to be unable to select the size of the modal, but for something
that's supposed to appear only once, it seems to be ok.


![regular](https://github.com/user-attachments/assets/484feb95-b9c5-445c-87f8-cd1db9337529)


![also_regular](https://github.com/user-attachments/assets/680ea95d-91fe-4b16-b3bc-e241ecd841d4)


![many_kinds](https://github.com/user-attachments/assets/7103161f-754d-413a-94df-62a44e353674)


![exaggerated](https://github.com/user-attachments/assets/b6e70be7-9ab4-4861-afae-5285a554fdba)



Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support User support (non-defect troubleshooting, documentation, etc)
Projects
None yet
Development

No branches or pull requests

3 participants