Description
Summary
I'm getting frequent long hangs of the UI on MacOS using the latest Zed 0.190.6
Description
Recently I had to work with a lot of dot files and some notes and repos in my home directory, so I decided to just add the homedir as the main item in the project panel. This is expanded by default. It did not seem to have any issues for several days of use, across some reopens too.
On Friday the update to 0.190.6 applied. Since then it (MacOS) will prompt at reopen as to whether I want to allow it (Zed) to work with files from other applications. I didn't understand why it'd ask, but I approved it. It would then spin for long periods of time.
I force quit once or twice as the UI was unresponsive, including moving the window on the screen or to another screen. On reopen it would repeat this dialog. I've since once denied it, and it no longer repeats the dialog. However the long waits persist.
I notice the wait (which can be 120-300 seconds) exists for searching across the project. It also occurs if I scroll to the bottom of the project panel.
Here's some of the things I did after the Friday update which may have contributed:
- I opened from the CLI
zed .brew/vault.rb INSTALL_RECEIPT.json sbom.spdx.json
while in/opt/homebrew/Celler/vault/1.19.5
; Of these files, after closing them, onlyINSTALL_RECIEPT.json
was at the bottom of the Project Panel. FYI On reopening Zed. it would reopen this one file, along with~/work/notes/aws_permissions.md
.- I would close this json file and leave the markdown file, and scroll down the panel to remove it from the project, but it would spin and hang then,
- and I'd twice force quit at this point, only to have it reopen that json file on the next relaunch.
- Eventually I decided not to force quit and wait, and about 5 minutes later I was able to remove the json file from the Project Panel.
- I quit Zed, I reopened Zed, it no longer opened that file. But scrolling the pane, which no longer includes it, still started a spinner.
- I used command shfit p to open the theme selector.
- I didn't change theme, though I cycled them with the arrow keys.
- I clicked on "Install Themes" and searched with "Jetbrains" for Jetbrains New UI, which on zed-themes it said was included in the extensions list. It doesn't show up, so
- I tried installing the JetBrains New UI Icon Theme v2.1.0 which installed, but I don't see anything in
~/.config/zed/themes
instead I found that I have a theme and icons in~/Library/Application Support/Zed/
~ ls -d ~/Library/Application\ Support/Zed/extensions/installed/* /Users/dlamblin/Library/Application Support/Zed/extensions/installed/html /Users/dlamblin/Library/Application Support/Zed/extensions/installed/intellij-newui-theme /Users/dlamblin/Library/Application Support/Zed/extensions/installed/jetbrains-new-ui-icons
- I do not get the option to use this theme in the theme picker however.
- I looked at the Console app for .ips files for Zed (from force quitting) there are none. Then I used command shift p to open log, which opens the last 1000 lines in
/Users/dlamblin/Library/Logs/Zed/Zed.log
wherein I see many lines like:ERROR [worktree] error scanning directory "/Users/dlamblin/Library/Containers/com.apple.messages.ReplyExtension/Data/Library/Application Support/AddressBook": Operation not permitted (os error 1)
.- This prompted me to attempt to remove
~/Library
from the project panel. I cannot. Yet I want all my other~/
files to be available without having to add each separately. I suppose the command line can help with that, unsure, haven't tried it yet. - FYI all the errors in
Zed.log
it seems relate to scanning or reading referrals into~/Library/Containers/com.apple…
with os error 1, except:ERROR [worktree] error reading file "/Users/dlamblin/Library/Application Support/Cursor/User/globalStorage/state.vscdb-journal" on event: canonicalizing "/Users/dlamblin/Library/Application Support/Cursor/User/globalStorage/state.vscdb-journal": No such file or directory (os error 2)
and symlinks referring into the same dir give os error 2 likeERROR [worktree] error reading target of symlink "/Users/dlamblin/Library/Containers/com.apple.wallpaper.extension.monterey/Data/Library/Preferences/com.apple.security.plist": canonicalizing "/Users/dlamblin/Library/Containers/com.apple.wallpaper.extension.monterey/Data/Library/Preferences/com.apple.security.plist": No such file or directory (os error 2)
- This prompted me to attempt to remove
- As mentioned at the top, I also searched my whole project to find something in my notes (after it stopped hanging as often, I thought because I'd removed the file in
/opt/homebrew/…
) only to find that- this took forever, I came back in an hour, and it had results,
- scrolling to the bottom of the results produced another 4+ minute hang. After it recovered, there were no additional results.
Steps to reproduce:
One way:
- Open your homedir on Mac OS.
- Search project files for short word like
JIRA-
- It will spin for a very long time, much longer than a full
find
with-exec grep
, or recursivegrep
would spend on it. - Have this 'project' reopen at start up. IDK why that hangs after first interaction with the project panel.
Another way:
- Open your homedir on Mac OS.
- Open a file in /opt/homedir and scroll up and down in the project panel.
- It will spin for a very long time too
- Have this 'project' reopen at start up. IDK why that hangs after first interaction with the project panel.
Just found this way:
- Open your homedir on Mac OS.
- Go to open recent, type something that doesn't complete anything, press escape to cancel.
- Click on the File menu. It will spin for a very long time ; though maybe just 90 seconds this time.
Expected Behavior:
open and close files and tabs without long pauses. A way to open the homedir with some exclusions.
Actual Behavior:
long pauses, no clear reason. Cannot exclude subdirs from the open dir of the Project Panel afaics.
UNRELATED, but an open question, does any part of vim mode call the vim binary with --clean
? my .vimrc
sets noundofile
but files open with zed sometimes leave a *.un~
file behind. I am using vim mode. I suspect vim
9.1 is actually doing this, but… it shouldn't and in some cases it hasn't touched the files, but zed
had them open once … so … ?
Zed Version and System Specs
Zed: v0.190.6 (Zed)
OS: macOS 15.5.0
Memory: 36 GiB
Architecture: aarch64