zed
zed copied to clipboard
Search crashes when searching last letter of filename containing İ
Summary
When a codebase contains a file with the letter İ in its name (U+0130 Latin Capital Letter I with Dot Above), typing the last letter of that filename into the Ctrl+P file search box crashes the editor.
Description
Steps to trigger the problem:
- Create a file named
İgin a project - Open the file switcher (Ctrl+P)
- Type
g
Actual Behavior: Zed hangs for a second or two and closes
Expected Behavior: It searches for files with g in their name
Zed Version and System Specs
Zed: v0.183.11 (Zed) OS: Linux Wayland opensuse-tumbleweed 20250426 Memory: 15.2 GiB Architecture: x86_64 GPU: Intel(R) Iris(R) Xe Graphics (RPL-P) || Intel open-source Mesa driver || Mesa 25.0.4
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
Zed.log
The log that seems to be relevant:
2025-04-20T23:04:30.134605705+03:00 [ERROR] {
"thread": "<unnamed>",
"payload": "index out of bounds: the len is 2 but the index is 2",
"location_data": {
"file": "crates/fuzzy/src/matcher.rs",
"line": 224
},
"backtrace": [
"zed::reliability::init_panic_hook::{{closure}}::hba4876f7a43de794+141243845",
"std::panicking::rust_panic_with_hook::h541791bcc774ef34+115626131",
"std::panicking::begin_panic_handler::{{closure}}::h6479a2f0137c7d19+115625354",
"std::sys::backtrace::__rust_end_short_backtrace::ha04e7c0fc61ded91+115618873",
"rust_begin_unwind+115624493",
"core::panicking::panic_fmt::h5764ee7030b7a73d+8655904",
"core::panicking::panic_bounds_check::h0328ca7e7f0749c4+8656386",
"fuzzy::matcher::Matcher::recursive_score_match::hc91af778db1db651+60440043",
"fuzzy::matcher::Matcher::score_match::h6f5a71762b197898+60437365",
"gpui::executor::Scope::spawn::{{closure}}::h6c0f35aea243abc8+48450412",
"async_task::raw::RawTask<F,T,S,M>::run::h70f9161f6c4dbede+45970218",
"std::sys::backtrace::__rust_begin_short_backtrace::h470febbd6b286bf8+65227187",
"core::ops::function::FnOnce::call_once{{vtable.shim}}::h27790ad43661da79+65346996",
"std::sys::pal::unix::thread::Thread::new::thread_start::hcc5ed016d554f327+115656219",
"start_thread+45445581780294",
"__GI___clone3+45445582321996"
],
"app_version": "0.182.11",
"app_commit_sha": "67ca67273f4066b703e3bed9d0a1a08b13010c43",
"release_channel": "stable",
"target": "x86_64-unknown-linux-gnu",
"os_name": "Linux Wayland",
"os_version": "opensuse-tumbleweed 20250417",
"architecture": "x86_64",
"panicked_on": 1745179470134,
"system_id": "eafc1df2-bd9a-4c16-ae17-fe004959edc4",
"installation_id": "45ccdf80-15ab-4133-8c49-17d59ae5c0e3",
"session_id": "7fb53a8e-c548-46d0-bc97-b2099520e678"
}
Sounds like we're not handling the unicode properly in our file index. Thanks for reporting!