Skip to content

Zed hangs when moving or renaming folders + displays non-existing changes in Git panel #27167

@arggh

Description

@arggh

Summary

I managed to get Zed hang by running a script that just renamed a folder and then created a few new files to the same folder. Apparently not forever though, if you just wait it out for 5-10+ minutes.

Another method I used to succesfuly crash Zed was just moving a folder, discarding changes from Zed's git panel, then running git restore . from terminal.

After being stuck for multiple minutes, sometimes Zed became responsive, but the content displayed in Git panel was still out of sync with the actual git status, displaying changes & untracked files when actually there were no changes on the file system.

Steps to trigger the problem:

  1. Have a folder with some files, images + markdown in my case.
  2. Move/rename folder.
  3. Discard all changes in Zed's git panel.
  4. Run git restore . in terminal.
  5. It seemed sometimes removing the actual folder still left on the file system helped Zed recover, but the Git panel state still remains invalid.

Actual Behavior:

Hangs for a long time, displays stale status in git panel

Expected Behavior:

Zed remains responsive and correctly displays the actual git status in Git panel.

Zed Version and System Specs

Zed: v0.178.5 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: aarch64

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions