-
Notifications
You must be signed in to change notification settings - Fork 164
RLS Cannot be started. #237
Comments
What's your |
rustc 1.25.0-nightly (15a1e2844 2018-01-20) typing rls --version results in Even though I run it from the folder rls is installed in (.cargo/bin) |
Vs Code plugin version Is 0.3.2 |
You’re saying that RLS is installed via rustup - what does ‚rustup
component add rls-preview’ say?
The component changed its name some time ago, maybe you have the old
component installed?
…On Sun, 21 Jan 2018 at 17:27, Neil Danson ***@***.***> wrote:
Vs Code plugin version Is 0.3.2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#237 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8y3UI7UNfECwqqOOZT2yLx9BexQLuuks5tM2VagaJpZM4Rl0bP>
.
|
It says info: component 'rls-preview' for target 'x86_64-pc-windows-msvc' is up to date |
I uninstalled all gnu toolchains so that it was clearer what Rust (rls) would be using Now I get "The Rust Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted." |
Hm, that's weird. Would you mind setting a RUST_LOG env var to something like |
I'm on Windows and having this issue. RLS itself seems to be fine, but the VS Code extension isn't detecting it. Setting those environment variables doesn't seem to have added anything to the output log. The specific order of events is:
|
I was experiencing this issue as well. For what it's worth, when looking in my settings (In fact, setting |
Setting |
Perhaps rls-vscode should handle this the same way the atom plugin does: finding the latest dated channel release with RLS and installing that for them (taken from rust-lang/rls#677 (comment)). |
I'm on windows, getting the same error even after setting the "rust-client.channel" to stable. No output at all from the extension that I can find. |
Changing to stable worked for me. |
Sorry, the problem isn't that RLS can't be installed, it's that every time I run Code it says that "Info: RLS is not installed. Install?", if I don't press 'yes' then it says RLS can't be started. If I do press 'yes' then it toils away in the background for a while and after this RLS is available. |
I met VS Code 1.19.3 7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba
|
I figured out at least one aspect of this. Once I set |
So workspace mode is on by default on nightly and off by default on stable, so that might be a cause? |
I have the same issue on my VSCode, I am running the RLS plugin 0.4.5 and my rust version is rustc 1.26.1 (827013a31 2018-05-25). I have added "rust-client.channel": "stable", to my user settings file in vscode. And I am using this on High Sierra running MacOS. Does anyone have any updates on this one ? |
@ormrepo could you try using nightly RLS and see if that works please? |
1.2.1 is very old, I think current VSCode is 1.24. I think this error is because you don't have |
Can you run |
It looks like you're running rustup with I don't know anything else to try. The best bet is probably to try and debug it yourself - pull this repo and open it in VSCode, in rustup.ts you should be able to find the error messages you're getting. Set breakpoints and see if you can get any more information about the errors. |
Running into this on not one, but two Windows 10 machines with entirely fresh installs of the stable Rustup release. Components are verified to be correctly installed. Paths are correct. Starting up RLS manually from a console/bash terminal work. Trying to start this extension gives me "Error starting up rls" in a popup with no additional information. |
Just wanted to make sure people are aware this is still happening, I'm getting @jeremyong 's problem too. |
cc @Xanewok this might be a good place to add facility to get more info in the event of an error |
It just started happening with me as well. How would reset it so it will at least attempt to run again? |
It happens to me too! |
I'm also having this problem on Windows 10 running Visual Studio Code version 1.31.1, with the Rust(rls) extension version 0.5.3.
edit: VS Code terminals now correctly pick up rust in the path (who knows why), but RLS still produces errors on startup. However, RLS will intermittently start. I don't know what the difference between a successful startup and failed one is. |
I encountered this problem after attempting to use vs code with newly installed Rust via rustup on Windows 10. After getting the "RLS could not be started" error popup, I popped open the vs code developer console, and saw that the problems all seemed to start with this error:
Sure enough, explicitly setting |
FYI, I was experiencing this issue on VSCode as well, the |
Happen to me as well on VSCode MacOS. Same fix for vanilla rust installation |
Just started having the same issue. will try the rust-client.channel thing. If it helps any it started only after I assigned an override to a directory of the nightly toolchain. But it broke with every other project as well. Was working perfectly fine before this. even after unsetting the override in the directory the problem persists. |
The most recent problem should be fixed with 0.5.4. In the future, we need to better tell the user what's wrong, but for now I'll close this issues since it's gotten too big and too broad now. Thanks everyone for sharing their fixes 💯 |
With everything up to date and rust(rls) extension 0.5.4 still get the error "Could not install RLS component (rls-preview)" on windows 10. Can run from vc terminal and windows cmd rustup and rustc commands from anywhere so path is set correctly. |
…nd-from-racer Provide CompletionItem.kind for Racer completions
EDIT 30. September 2019:
This method works for me every time. Original comment: 1.) Delete everything in 2.) Install toolchain, set default, install components 3.) Uninstall Rust (rls) plugin in VSCode, restart VSCode, install the plugin, close VSCode |
still cant work for me |
This is happening for me after adding a new It keeps showing |
The same thing happens to me. Environment
$ rustup --version; rustc --version; rls --version
Wed Jul 24 22:47:29 DST 2019
rustup 1.18.3 (435397f48 2019-05-22)
rustc 1.36.0 (a53f9df32 2019-07-03)
rls 1.36.0 (9692ca8 2019-05-18) Symptoms The visual symptoms are the same as in the graphic @nshen posted: the same two notices, plus the infinite spinner for "RLS Starting". Hypothesis Could it be that the Rust (rls) extension does not know about WSL, and is looking for executables named i.e. |
This continues to happen for me on Mac. Infinitely spinning with "RLS Starting." Every time I try to re-install, it tells me it can't find RLS and it can't find Rustup. Both are in
|
I'm going to pile on with an example of VS Code (1.36.1 x64) on Linux (Mint). bryan@Linux-Mint:~/repo/rust_variables$ rls --version
rls 1.36.0 (9692ca8 2019-05-18)
See also my comment in this issue, for my comments on logging not working as expected / needed. |
I have just tested what's causing the problem. I'm using vscodium under Debian testing and the problem seems to be the shell script that is located in bin directory of vscod(e|ium). Inside my vscodium directory I have the executable named codium, in your case should be code, and if you execute that one, everything works as expected. If you run the script version that is found in UPDATE: I forgot to mention that I have added a symlink in my The current workaround is the following:
It's an interesting issue, I have to admit. UPDATE #2: When I attempt to start the editor via Now, if I go via terminal to the actual location where the folder is located and execute I hope this helps in any way. |
I'm seeing the same issue on Debian Linux amd64, not sure how it broke since it used to work.
In the command line the same works:
In vscode I get these errors:
I start vscode with a shortcut which calls vscode directly:
Versions are:
VSCode version info:
|
I think at fault is the fact sh incorrectly called, skipping the
|
The issue - and solution - to this (at least, in my case), was that the default path to rustup was incorrectly set in the extension. This is resolved by manually editing the path, as per this issue: #622 (comment) |
in 2021 now. Thanks for the help. This got rls working for me in vscode |
FYI, in VSCode many folks have been moving to the rust-analyzer |
I can vouch for this. Switched to rust-analyzer a few months ago and it works much better. |
@bluejekyll @lamafab Thanks for the tip. Im on rust-analyzer now. |
As of 19/1/2018 (maybe earlier):
Extension says no rls installed, do I want to install. This is strange as rls is installed (via rustup) in cargo bin.
Couldn't start client Rust Language Server
ErrorCould not install RLS component (rls)
VSCode:
Version 1.19.2
Commit 490ef761b76b3f3b3832eff7a588aac891e5fe80
Date 2018-01-10T15:55:03.538Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
Rust installed via rustup -
toolchains installed:
stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc
beta-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-gnu
nightly-x86_64-pc-windows-msvc (default)
Uninstalled the plugin and reinstalling has no effect. Nothing about Rust or RLS in logs.
Not sure exactly what is wrong or how to diagnose more.
The text was updated successfully, but these errors were encountered: