Skip to content

rust-analyzer fails to load the workspace partially #15341

@Robbepop

Description

@Robbepop

Since a few days rust-analyzer started to fail loading test-only parts of my workspace with the following message that constantly pops up as soon as I touch those test files:

image

Additionally it constantly creates the following file in .vscode/settings.json:
(Although this settings.json file does not even help with the problem.)

{
    "rust-analyzer.linkedProjects": [
        "./Cargo.toml"
    ]
}

This is a huge issue for me because I can no longer test and debug individual test files.
The whole IDE experience for my tests is gone. I reported this only now since I hoped the problem would resolve itself quickly.

The project with which I am experiencing this issue is: https://github.com/paritytech/wasmi
And in particular I am currently working on this branch: https://github.com/paritytech/wasmi/tree/rf-engine-regmach

It is important to note that the non-test related parts of the workspace seem to load fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions