Skip to content

no value set for FileSourceRootQuery(FileId(6196)) #17071

Closed
@Veykril

Description

@Veykril
thread 'LspServer' panicked at D:\a\rust-analyzer\rust-analyzer\crates\salsa\src\input.rs:91:32:
no value set for FileSourceRootQuery(FileId(6196))
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\std\src\panicking.rs:647
   1: core::panicking::panic_fmt
             at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\core\src\panicking.rs:72
   2: <salsa::input::InputStorage<Q> as salsa::plumbing::QueryStorageOps<Q>>::fetch
   3: <DB as base_db::SourceDatabaseExt>::file_source_root
   4: base_db::change::FileChange::apply
   5: hir_expand::change::ChangeWithProcMacros::apply
   6: ide_db::apply_change::<impl ide_db::RootDatabase>::apply_change
   7: rust_analyzer::global_state::GlobalState::new
   8: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
   9: rust_analyzer::main_loop::<impl rust_analyzer::global_state::GlobalState>::run
  10: rust_analyzer::main_loop::main_loop
  11: rust_analyzer::run_server
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

run into this when checking out a very old revision and then rebasing that on master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions