Skip to content

How to configure rust-analyzer with rust toolchain 1.70.0 ? #18661

@MathieuSoysal

Description

@MathieuSoysal

Hello,

Currently I'm trying to develop in rust 1.70.0, but I have some trouble to configure rust-analyzer.

This is the error message that I got:

2024-12-11T09:11:10.252147304Z ERROR Flycheck failed to run the following command: CommandHandle { program: "/usr/local/cargo/bin/cargo", arguments: ["check", "--workspace", "--message-format=json-diagnostic-rendered-ansi", "--manifest-path", "/workspaces/CodinGame_Rust_template/Cargo.toml", "--keep-going", "--all-targets"], current_dir: Some("/workspaces/CodinGame_Rust_template") }, error=Cargo watcher failed, the command produced no valid metadata (exit code: ExitStatus(unix_wait_status(25856))):
error: the `--keep-going` flag is unstable, and only available on the nightly channel of Cargo, but this is the `stable` channel
See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
See https://github.com/rust-lang/cargo/issues/10496 for more information about the `--keep-going` flag.

This is the GitHub repo :
https://github.com/MathieuSoysal/CodinGame_Rust_template

This is my dev environement:
https://github.com/MathieuSoysal/CodinGame_Rust_template/blob/main/.devcontainer/devcontainer.json

Can somebody help me to solve this issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions