-
Notifications
You must be signed in to change notification settings - Fork 62
RLS panics with 0.4.0 #296
Comments
The reason behind this is user configuration. I've removed my old one and did the initial extension config. Now everything works ok. |
I had this also, same fix worked for me. Broken settings which caused crash:
What I did was remove ALL of these settings, then restart VS Code and follow the prompts to choose toolchain etc. Now my settings looks like this and there is no issue:
|
I'm sorry about that. |
@KalitaAlexey I have reset my settings, but the issue still exists.
My user settings:
on my Windows 10
|
@wangzishi, |
Same thing happening to me.
rustup show:
|
@rerzer, |
@KalitaAlexey edit:
|
Open a terminal.
And then paste what Rust Language Server says you. |
I'm on Win 10, used No output in the powershell I used to start vscode, output in vscode does not seem to change after the crash. Rust logging:
RLS still only shows:
|
@rerzer, |
Gonna try on my laptop with arch to see if it's a Windows only issue. |
Backtrace after crash with
and with
This is on a fresh install of rust nightly on Antergos. |
I'll look at it tomorrow. |
Could you make |
I did that right after I read the backtrace, it appears to have fixed the crashing on arch. Edit: Even though the rust-src was already installed it seems that after trying to install it again RLS no longer crashes on Win 10. Not sure if that was the cause though, i'll update if it crashes again. |
It shouldn't help, but try |
Okay I guess that was placebo, it still crashes. |
Could you try:
|
It's kind of strange problem. |
I see |
I'm going sleep. Write your results. Thanks. |
Managed to make it crash again on Arch.
Gonna try your suggestions next. |
I think removing the components and adding them again through the plugin might have helped. No crashes so far but I don't really have enough time to tets it right now. |
Followed the same steps on Win 10, still crashing. I assume it didn't "really" work on Arch then either and I was just lucky. |
It's RLS problem. I already mentioned nrc in the thread. I believe he knows better. |
This is the RLS issue that discusses this problem rust-lang/rls#372 |
@rerzer I got everything working by checking out and building {
"rust.rustup": {
"toolchain": "nightly-x86_64-apple-darwin",
"nightlyToolchain": "nightly-x86_64-apple-darwin"
},
"rust.mode": "rls",
"rust.rls": {
"useRustfmt": true,
"executable": "/Users/joe/Documents/Programming/rustproj/rls/target/release/rls",
"env": {
"DYLD_LIBRARY_PATH": "~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib"
}
}
} The environment variables will be dependent on the platform that you're using. |
Commenting on the previous one: building So if the above doesn't work for you, this should:
verify that running |
Version of VSCode: 1.13.1
Version of the extension: 0.4.0
OS: Fedora 25
Description:
RLS panics with latest extension version. On previous version it worked well.
Output of the "Rust Language Server" channel (Rust logging is not useful in this case):
The text was updated successfully, but these errors were encountered: