[BUG] `_claude_fs_right:/Users...` URL crashes rust-analyzer

Resolved 💬 10 comments Opened Jun 3, 2025 by trevyn Closed Jan 22, 2026

originally reported at https://github.com/rust-lang/rust-analyzer/issues/19910

Environment

  • Claude CLI version: 1.0.9
  • Operating System: macOS 14.7.6
  • Terminal: VSCode 1.100.2

Bug Description

workspace/didChangeWatchedFiles LSP call with _claude_fs_right:/Users/e/Documents/GitHub/hotline/runtime/src/shim_gen.rs URL crashes rust-analyzer LSP: "relative URL without a base"

Steps to Reproduce

  1. Use Claude code to propose an edit with the Claude Code VSCode extension enabled, so it opens a VSCode native diff viewer pane
  2. Accept the diff
  3. Check the "rust-analyzer Language Server" Output pane in VSCode

Expected Behavior

No LSP crash

Actual Behavior

thread 'LspServer' panicked at crates/rust-analyzer/src/handlers/dispatch.rs:420:17:
Invalid request
Method: workspace/didChangeWatchedFiles
 error: relative URL without a base: "_claude_fs_right:/Users/e/Documents/GitHub/hotline/runtime/src/shim_gen.rs"
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: rust_analyzer::handlers::dispatch::NotificationDispatcher::on_sync_mut
   3: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::handle_event
   4: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
   5: rust_analyzer::main_loop::main_loop
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

thread 'main' panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jod-thread-1.0.0/src/lib.rs:33:22:
called `Result::unwrap()` on an `Err` value: Any { .. }
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: stdx::thread::JoinHandle<T>::join
   4: rust_analyzer::with_extra_thread
   5: rust_analyzer::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Info  - 4:58:26 AM] Connection to server got closed. Server will restart.
true
[Error - 4:58:26 AM] Server process exited with code 101.

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗