zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed still crashes in certain situations when commenting yaml

Open mmhartmann opened this issue 6 months ago • 2 comments

Summary

This is probably related to #31380, which should have been fixed by #31603, but I discovered some other situations, where Zed crashes when inserting a comment # in yaml. This issue persists in v0.188.5.

Description

Example yaml file:

# lorem ipsum

lorem_ipsum:

When you insert a # in the empty line, Zed crashes.

/cc @maxbrunsfeld Maybe you want to have another look?

Zed Version and System Specs

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

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

No response

mmhartmann avatar May 31 '25 07:05 mmhartmann

I cannot reproduce with steps providing using the same Zed version as you (v0.188.5).

Do you have any extensions which might be shipping their own tree-sitter-yaml? (Docker compose, etc). If you uninstall extensions and restart can you reproduce?

If yes, can you provide more explicit steps to help trigger this behavior?

notpeter avatar May 31 '25 17:05 notpeter

I can reproduce this. Thanks for the report.

maxbrunsfeld avatar Jun 02 '25 21:06 maxbrunsfeld