Skip to content

rust-analyzer crashing after switching to other crate in the same workspace #4451

@Dushistov

Description

@Dushistov

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 1b136aa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions