Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

[Project Model] Error when loading a Cargo.toml with edition #1043

Closed
@kngwyu

Description

@kngwyu

When the Cargo.toml in workspace-root contains edition, ProjectModelProvider causes an error
like

ERROR 2018-09-06T05:58:45Z: rls::actions: failed to fetch project model, using fallback: failed to parse manifest at `/home/yu/Programs/lark/Cargo.toml`
ErrorMessage { msg: "the cargo feature `edition` requires a nightly version of Cargo, but this is the `dev` channel" }

and can't do completion for external crates.
According to @matklad , it's related to https://github.com/rust-lang/cargo/blob/b15ee255e5cf625f15ff3f5ecdc6efb76e402768/src/cargo/lib.rs#L231

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