Skip to content

Error during execution of cargo metadata: error: --all-features is not allowed #2040

Closed
@Matthias247

Description

@Matthias247

I just updated rust-analyzer to the latest git revision 6b9bd7b. Here I get the following error message when opening VsCode:

rust-analyzer failed to load workspace: cargo metadata failed: Error during execution of cargo metadata: error: --all-features is not allowed in the root of a virtual workspace

This didn't happen with the last revision I build (unfortunately I don't have the commit ID, but it should have been roughly 2 weeks old).

Unfortunately I don't have the code online yet, but it's nothing very special. Just a cargo workspace with 3 subprojects in it. One of them specifies features on some dependencies, the others don't deal with features at all.

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