zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.27k stars 2.98k forks source link

Keeps trying to save a file as a directory #16483

Open atomkirk opened 2 months ago

atomkirk commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

CleanShot 2024-08-19 at 11 49 54@2x
  1. I open a new buffer
  2. past in some json
  3. Try to save it
  4. Worked first time, not it gives this error every time I try to save

Environment

CleanShot 2024-08-19 at 11 55 00@2x

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

doens't show anything relevant

notpeter commented 2 months ago

This is a shot in the dark, I wonder if this is a MacOS folder protection thing. Can you save to a different folder that is not under one of the protected folders (e.g. not under Downloads, Desktop, Photos, Library, etc) like in the root of your user directory?

If so, check System Preferences -> Privacy & Security -> Files & Folders -> Zed and make sure the "Downloads Folder" access is enabled for Zed.

Screenshot 2024-08-23 at 14 47 24