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

Unknown RLS configuration: mode ,rustup #572

Closed
japert opened this issue Apr 12, 2019 · 4 comments
Closed

Unknown RLS configuration: mode ,rustup #572

japert opened this issue Apr 12, 2019 · 4 comments

Comments

@japert
Copy link

japert commented Apr 12, 2019

Observed behavior:

Popup of "Unknown RLS configuration: mode ,rustup"
Screen Shot 2019-04-12 at 8 53 20 AM

Build indicator keeps spinning:
Screen Shot 2019-04-12 at 8 53 29 AM

vscode.log

Steps to reproduce

  • open non-empty rust project in vs code with rls-vscode installed.

Environment

  • VS Code Version 1.33.1 (1.33.1)
  • macOS 10.14.4 (18E226)
  • rustc
    • stable-x86_64-apple-darwin (default)
    • rustc 1.34.0 (91856ed52 2019-04-10)
$ rustup component list --toolchain stable --installed
cargo-x86_64-apple-darwin
rls-x86_64-apple-darwin
rust-analysis-x86_64-apple-darwin
rust-docs-x86_64-apple-darwin
rust-src
rust-std-x86_64-apple-darwin
rustc-x86_64-apple-darwin

Expected behavior:

  • rls-vscode extension shows no error
  • rls-vscode finishes build
@dusty-phillips
Copy link

dusty-phillips commented Apr 12, 2019

I had this as well and had to remove "rust.mode": "legacy" from my user settings (editing the json by hand, as opposed to using the GUI). It appears they've disabled legacy mode. I can't remember why I turned it on in the first place, so that's all right.

@Xanewok
Copy link
Member

Xanewok commented Apr 12, 2019

I believe these options are for another extension - https://github.com/editor-rs/vscode-rust. I wouldn't recommend running both as they may spawn two instances of RLS or do overwrite each other tasks or similar. I believe that extension is quasi-deprecated at this point and this should be used instead, so in this case it's safe to remove rust.mode and rust.rustup entries from settings.json.

@Xanewok Xanewok closed this as completed Apr 12, 2019
@japert
Copy link
Author

japert commented Apr 12, 2019

You are right I had these orphan settings my user settings!
However the build indicator keeps spinning.
Might be related to #492

@w614561012
Copy link

you need to delete the rust.mode and rust.rustup in the setting.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants