zed
zed copied to clipboard
called `Option::unwrap()` on a `None` value on language.rs
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Trigger grammar parser, crashes randomly. Type in text in a language with grammar definitions
Environment
Zed: v0.148.1 (Zed) OS: Linux Wayland ultramarine 40 Memory: 15.5 GiB Architecture: x86_64 GPU: AMD Radeon RX 580 Series (RADV POLARIS10) || radv || Mesa 24.1.6
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
[2024-08-26T02:01:44+07:00 ERROR assistant] no worktrees when constructing ProjectLspAdapterDelegate [2024-08-26T02:01:48+07:00 ERROR language::syntax_map] error parsing text: failed to parse [2024-08-26T02:01:49+07:00 ERROR language::syntax_map] error parsing text: failed to parse [2024-08-26T02:02:02+07:00 ERROR language::syntax_map] error parsing text: failed to parse [2024-08-26T02:02:02+07:00 ERROR zed::reliability] { "thread": "main", "payload": "called `Option::unwrap()` on a `None` value", "location_data": { "file": "crates/language/src/language.rs", "line": 1523 }, "backtrace": [ "__libc_start_call_main", "__libc_start_main_alias_1" ], "app_version": "0.148.1", "release_channel": "Zed", "os_name": "Linux Wayland", "os_version": "ultramarine 40", "architecture": "x86_64", "panicked_on": 1724612522997, "installation_id": "ca25f3d1-9acb-49e1-8891-c46f380343a9", "session_id": "7fd9a14a-ffa7-47f6-9cbc-71d291f34de1" } fish: Job 1, '/usr/libexec/zed-editor' terminated by signal SIGABRT (Abort)