rust-analyzer: rust-analyzer crashing after switching to other crate in the same workspace
Here what I got in
[ERROR rust_analyzer::main_loop] File with cargo diagnostic not found in VFS: foo/target/debug/build/boo-a04cb5b45ec9024d/out/java_glue.rs
Error: LspError { code: -32900, message: "Rust file outside current workspace is not supported yet." }
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', /home/evgeniy/.cargo/registry/src/github.com-1ecc6299db9ec823/lsp-server-0.3.1/src/stdio.rs:29:13
Process rust-analyzer stderr finished
I build rust-analyzer from source rev 1b136aae0b92b4b75ae1aad28ccf27d8b2b6cf73
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (8 by maintainers)
Indeed, thanks for the hint… I just saw the new VFS commit. I was running the previous release accidentally.
So I can finally start using rust-analyzer again, I feel like I’ve recovered a superpower. 😄 Thanks!
@dkasak that’s strage, as we no longer have “Rust file outside current workspace is not supported yet” string in the codebase. So, either our release process is broken and we’ve relased some very old code, or you might not be using the version you think you use.
I got a couple of panics, but not the one in the original report:
cc @edwin0cheng