zed
zed copied to clipboard
Zed crashes when inserting # on first line in yaml
Summary
Zed crashes when inserting # on the first non empty line in a non empty yaml file.
Description
Steps to trigger the problem:
- Create a yaml file or an empty file with yaml selected as a language
- Type something
- Create an empty line above your text
- Insert
#
Actual Behavior: Editor crashes Expected Behavior: No crash
Zed Version and System Specs
Zed: v0.187.8 (Zed) OS: macOS 15.4.1 Memory: 16 GiB Architecture: aarch64
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
Zed.log
2025-05-25T15:00:19+02:00 INFO [zed] ========== starting zed ==========
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [zed] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2025-05-25T15:00:19+02:00 INFO [prompt_store::prompts] No prompt template overrides directory found at /Users/ukf/.config/zed/prompt_overrides. Using built-in prompts.
2025-05-25T15:00:19+02:00 INFO [assistant_tools::terminal_tool] agent selected bash for terminal tool
2025-05-25T15:00:19+02:00 INFO [extension_host] extensions updated. loading 9, reloading 0, unloading 0
2025-05-25T15:00:19+02:00 INFO [util] set environment variables from shell:/bin/zsh, path:/Users/ukf/.sdkman/candidates/java/current/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/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:/Library/TeX/texbin:/Users/ukf/Library/Application Support/JetBrains/Toolbox/scripts
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [client] set status on client 0: Authenticating
2025-05-25T15:00:19+02:00 INFO [db] Opening main db
2025-05-25T15:00:19+02:00 INFO [client] set status on client 337435: Connecting
2025-05-25T15:00:19+02:00 INFO [client] connected to rpc endpoint https://collab.zed.dev/rpc
2025-05-25T15:00:20+02:00 INFO [rpc::peer] add_connection;
2025-05-25T15:00:20+02:00 INFO [client] set status on client 337435: Connected { peer_id: PeerId { owner_id: 815, id: 1779944 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2025-05-25T15:00:29+02:00 INFO [project::prettier_store] Initializing default prettier with plugins {}