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

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

Closed
Veykril opened this issue Apr 15, 2024 · 0 comments · Fixed by #17145
Closed

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

Veykril opened this issue Apr 15, 2024 · 0 comments · Fixed by #17145
Labels
C-bug Category: bug I-panic

Comments

@Veykril
Copy link
Member

Veykril commented Apr 15, 2024

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

@Veykril Veykril added C-bug Category: bug I-panic labels Apr 15, 2024
@bors bors closed this as completed in 1ed7e2d Apr 26, 2024
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 26, 2024
…ykril

fix: Fix source roots not always being created when necessary

(should) fix rust-lang/rust-analyzer#17071 and fix rust-lang/rust-analyzer#17079
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 27, 2024
…ykril

fix: Fix source roots not always being created when necessary

(should) fix rust-lang/rust-analyzer#17071 and fix rust-lang/rust-analyzer#17079
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

Successfully merging a pull request may close this issue.

1 participant