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

RLS doesn't support RUSTC_WRAPPERs #460

Open
@mythmon

Description

@mythmon

The only thing that this extension seems to do is show an single error that covers every line in my Cargo.toml that says "Could not compile ". The crate changes every time I restart VS Code, but the problem stays the same.

The problems panel shows this:

Could not compile `rand_core`.
process didn't exit successfully: `/home/mythmon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rls rustc --crate-name rand_core /home/mythmon/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.0/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="std"' -C metadata=b6d594d63c2dd510 -C extra-filename=-b6d594d63c2dd510 --out-dir /home/mythmon/src/advent-of-code/target/rls/debug/deps -L dependency=/home/mythmon/src/advent-of-code/target/rls/debug/deps --cap-lints allow --error-format=json --sysroot /home/mythmon/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu` (exit code: 1)

Running that command manually reports

Unknown argument 'rustc'. Supported arguments:

    --version or -V to print the version and commit info
    --help or -h for this message
    --cli starts the RLS in command line mode
    No input starts the RLS as a language server

This seems to me that I have a version incompatibility between RLS and rls-vscode. I've updated both (and VS Code itself). The command rls --version reports rls-preview 1.31.6 (daa138c 2018-11-20). I have version 0.4.10 of rls-vscode.

It would be nice to fix this problem, and also to be able to detect such version incompatibilities in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrlsIssue related to the RLS itself rather than the extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions