zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed hangs installing an extension

Open timfee opened this issue 6 months ago • 5 comments

Summary

When I try to install the angular extension, the UI hangs and it doesn't install.

Steps to reproduce:

  1. Clean zed install 0.188.3
  2. Remove everything from ~/Library/Application Support/Zed/ , ~/.config/zed
  3. Try to install angular
  4. Observe that the UI hangs, the extension is not installed into Zed (but is downloaded into ~/Library/Application Support/Zed/extensions/installed/angular)

Expected Behavior:

Extension installs or there's an error

Actual Behavior:

Image

log files

2025-05-28T12:12:10-07:00 INFO  [zed] ========== starting zed ==========
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [zed] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2025-05-28T12:12:10-07:00 INFO  [prompt_store::prompts] No prompt template overrides directory found at /Users/timfee/.config/zed/prompt_overrides. Using built-in prompts.
2025-05-28T12:12:10-07:00 INFO  [assistant_tools::terminal_tool] agent selected bash for terminal tool
2025-05-28T12:12:10-07:00 INFO  [extension_host] extensions updated. loading 2, reloading 0, unloading 0
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [client] set status on client 0: Authenticating
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [client] set status on client 70521: Connecting
2025-05-28T12:12:10-07:00 INFO  [db] Opening main db
2025-05-28T12:12:10-07:00 INFO  [util] set environment variables from shell:/bin/zsh, path:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:/Users/timfee/Library/Python/3.9/bin:/usr/local/git/git-google/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
2025-05-28T12:12:10-07:00 INFO  [client] connected to rpc endpoint https://collab.zed.dev/rpc
2025-05-28T12:12:11-07:00 INFO  [rpc::peer] add_connection;
2025-05-28T12:12:11-07:00 INFO  [client] set status on client 70521: Connected { peer_id: PeerId { owner_id: 817, id: 940202 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2025-05-28T12:13:35-07:00 INFO  [extension_host] installing extension angular latest version
2025-05-28T12:13:36-07:00 ERROR [extension_host] TOML parse error at line 41, column 17
   |
41 | documentation = true
   |                 ^^^^
invalid type: boolean `true`, expected struct DocumentationConfig

2025-05-28T12:13:36-07:00 INFO  [extension_host] rebuilt extension index in 28.707042ms
2025-05-28T12:13:38-07:00 INFO  [db] Opening main db

Zed Version and System Specs

Zed: v0.188.3 (Zed) OS: macOS 15.5.0 Memory: 16 GiB Architecture: aarch64

timfee avatar May 28 '25 19:05 timfee

I'm experiencing the same since the latest update. Zed was no longer recognising the angular extension, so I uninstalled and now I've hit the same issue trying to reinstall.

I'm happy to take a look at this if it is unresolved by Saturday

Aiden10x avatar May 29 '25 13:05 Aiden10x

I just ran into this issue as well.

jpike88 avatar May 30 '25 03:05 jpike88

What's strange is that there is no mention of a documentation property in the extension.toml of the angular extension, I don't know where that's coming from

jpike88 avatar May 30 '25 03:05 jpike88

oops. I found it in the config.toml

jpike88 avatar May 30 '25 03:05 jpike88

I've raised a PR to the zed angular repo to fix this. in the meantime, you can pull down the repo, remove that offending line, and it will work ok as a dev extension.

jpike88 avatar May 30 '25 04:05 jpike88

This has been fixed upstream. Thanks all for reporting.

notpeter avatar Jun 16 '25 13:06 notpeter