Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread 'LspServer' panicked at crates\base-db\src\lib.rs:133:14: #19406

Open
Veykril opened this issue Mar 21, 2025 · 1 comment
Open

thread 'LspServer' panicked at crates\base-db\src\lib.rs:133:14: #19406

Veykril opened this issue Mar 21, 2025 · 1 comment
Labels
C-bug Category: bug I-panic

Comments

@Veykril
Copy link
Member

Veykril commented Mar 21, 2025

Happened when switching revisions where one of the files I had open no longer exists

thread 'LspServer' panicked at crates\base-db\src\lib.rs:133:14:
Unable to fetch FileSourceRootInput; this is a bug
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library\std\src\panicking.rs:692
   1: core::panicking::panic_fmt
             at /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library\core\src\panicking.rs:75
   2: core::panicking::panic_display
             at /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library\core\src\panicking.rs:261
   3: core::option::expect_failed
             at /rustc/4eb161250e340c8f48f66e2b929ef4a5bed7c181/library\core\src\option.rs:2024
   4: <ide_db::RootDatabase as base_db::SourceDatabase>::file_source_root
   5: base_db::change::FileChange::apply
   6: hir_expand::change::ChangeWithProcMacros::apply
   7: ide_db::apply_change::<impl ide_db::RootDatabase>::apply_change
   8: rust_analyzer::global_state::GlobalState::new
   9: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
  10: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
  11: rust_analyzer::main_loop::main_loop
  12: rust_analyzer::run_server
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@Veykril Veykril added C-bug Category: bug I-panic labels Mar 21, 2025
@Veykril
Copy link
Member Author

Veykril commented Mar 21, 2025

Trying to reproduce this did not yield a panic unfortunately :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug I-panic
Projects
None yet
Development

No branches or pull requests

1 participant