-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: bugCategory: bug
Description
I got the following error several times in a row while working on a project which has a rust-lang/rust checkout in a subdirectory. The final message that vscode won't restart rust-analyzer happened while I had a file in src/test/ui open.
thread 'LspServer' panicked at 'called `Option::unwrap()` on a `None` value', crates/vfs/src/lib.rs:143:38
stack backtrace:
0: rust_begin_unwind
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:142:14
2: core::panicking::panic
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:48:5
3: rust_analyzer::global_state::GlobalState::process_changes
4: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::handle_event
5: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
6: rust_analyzer::main_loop::main_loop
7: rust_analyzer::run_server
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Info - 1:26:23 PM] Connection to server got closed. Server will restart.
rust-analyzer version: rust-analyzer version: 0.3.1203-standalone
rustc version: rustc 1.65.0-nightly (750bd1a 2022-09-14)
relevant settings: None that I know of.
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug