Skip to content

Diagnostics missing due to wrong paths being joined #43

@aldanor

Description

@aldanor

Interesting, in one of workspaces I see completions, auto-formatting works, but no diagnostics. Looking at rust-analyzer logfile, there's errors like:

ERROR flycheck 0: File with cargo diagnostic not found in VFS: file not found: workspace-dir/foo/bar/src/x.rs
ERROR flycheck 0: File with cargo diagnostic not found in VFS: file not found: workspace-dir/foo/foo/src/y.rs

whereas the actual layout is

workspace-dir/foo/src/y.rs
workspace-dir/bar/src/x.rs

(I'm working on crate foo that depends on bar, within the workspace, and for some reason everything is erroneously prefixed with its root path 'foo'; however it's a [package] whereas there's root Cargo.toml in workspace-dir with workspace members).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions