vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

"command `rls.restart` not found

Open blm768 opened this issue 5 years ago • 3 comments

Tested in VS Code 1.34.0, extension version 0.6.1, on Windows 10, with recent versions of both stable and nightly Rust. rls, rust-analysis, and rust-src components are all installed, and the RLS executable is in my PATH.

The RLS seems to silently fail to start, and attempting to restart the RLS via the command palette produces the following error:

command rls.restart not found

Trying to update the RLS from the command palette produces a similar error.

The only non-default configuration setting I have for the extension is "rust-client.revealOutputChannelOn": "info". I've tried restarting VS Code, uninstalling and reinstalling the extension, etc., but that doesn't seem to have an effect. The RLS seems to start just fine on my Linux machine when working in the same directory.

blm768 avatar Jun 04 '19 04:06 blm768

Interestingly enough, the RLS seems to have spontaneously started working again a few minutes after resetting the permissions on the workspace directory, so it's possible that this issue is somehow permissions-related.

blm768 avatar Jun 04 '19 04:06 blm768

I have the same problem

When trying to run commands: Rust: Update the RLS or Rust: Restart the RLS from Command Palette within VS Code.

I get errors: command 'rls.update' not found command 'rls.restart' not found

OS: Ubuntu 18.04 VSCode version: 1.42.1 (Tried both Snap and non-snap)

Installation: Extension was installed through marketplace inside VSCode RLS was added through rustup: rustup component add rls

Environment PATH contains ~/.cargo/bin and I can access all the commands in terminal: rustc 1.41.1 (f3e1a954d 2020-02-24) rustup 1.21.1 (7832b2ebe 2019-12-20) rls 1.41.0 (8f1c275 2019-12-10)

EDIT: I am not sure how to reset workspace permissions, but I've tried some stuff that does not work.

NangiDev avatar Feb 28 '20 09:02 NangiDev

I have the same problem (using an Alpine container development with VSCode).

Installed with

RUN wget -qO- https://sh.rustup.rs | sh -s -- -q -y
ENV PATH=/root/.cargo/bin:${PATH}
# ...
RUN rustup component add rls rust-analysis rust-src

(Source Dockerfile)

rls can be accessed through the terminal, but VScode won't start it with the errors command rls.restart not found, command rls.start not found etc.

Even specifying "rust-client.rlsPath": "/root/.cargo/bin/rls", in the VSCode settings doesn't help.

Did any of you found a way to fix it? Thanks!

qdm12 avatar Jun 14 '21 18:06 qdm12