Skip to content

RA's workspace detection doesn't support "orphaned" workspace members #21616

@winterqt

Description

@winterqt

rust-analyzer version: 2026-01-19

rustc version: 1.93.0

editor or extension: Helix

relevant settings: n/a

repository link (if public, optional): https://github.com/winterqt/rust-analyzer-workspace-issue-repro (this uses an older version of r-a and rustc -- nothing changes)

When using r-a with Helix (and probably other clients like Neovim, but not VS Code IIRC), and opening src/main.rs in bar (cwd = bar as well), r-a loads the workspace instead of bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions