rust-lang / vscode-rust

Rust extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
Other
1.39k stars 167 forks source link

The Rust Analyzer server crashed 5 times in the last 3 minutes. The server will not be restarted. #897

Open itsandreramon opened 3 years ago

itsandreramon commented 3 years ago

There are open issues that discuss issue this but have already been closed, so I will re-open this one. I am running the following versions:

Versions:

There are no known updates available. Note is that it works with the normal rust-analyzer plugin.

Screenshot 2021-03-17 at 08 34 42

My extensions:

Screenshot 2021-03-17 at 08 45 09

My vs-code settings.json:

{
    "telemetry.enableTelemetry": false,
    "aws.telemetry": false,
    "workbench.colorTheme": "GitHub Dark",
    "editor.minimap.enabled": false,
    "rust-client.engine": "rust-analyzer",
    "editor.formatOnSave": true,
}

See:

lnicola commented 3 years ago

The rust-analyzer support is not working right now and is unmaintained (you might have seem me pointing this out previously). You should either use RLS or the stand-alone rust-analyzer extension.

itsandreramon commented 3 years ago

According to #816 it should have been moved here I thought.

itsandreramon commented 3 years ago

Are there any releases planned in the near future? The latest release was in May 2020.

lnicola commented 3 years ago

816 was a one-time import. There's been only one change to that code since then, again in last July.

I don't know of any concrete plans to update it, although it might happen eventually. Currently, the rust-analyzer extension is developed in the RA repository, for both technical and organizational reasons.

itsandreramon commented 3 years ago

Ok, I will keep an eye on future releases but will stick with intellij-rust until then.

lnicola commented 3 years ago

Is there any reason why you don't want to use the stand-alone extension?

itsandreramon commented 3 years ago

I'm relatively new to Rust but as far as I can tell, the Rust Language Servers gives the less recommendations when typing code but I'm not sure if it should be that way. Take this one for example:

VS Code (RLS)

Screenshot 2021-03-17 at 09 02 51

IntelliJ Rust in CLion

Screenshot 2021-03-17 at 09 01 30

Run configurations

Using the RLS engine the plugin also does not provide single "run" button like you have in the other rust-analyzer or intellij-rust plugin so you always have to go to the terminal. Might not be a big deal but just some observations so far.

lnicola commented 3 years ago

Sorry, I meant to ask why you would prefer using this extension (rust-lang.rust) instead of the rust-analyzer one, not why you prefer IntelliJ.

itsandreramon commented 3 years ago

Oh my bad, I want to stick with official plugins and not too many 3rd party plugins.

lnicola commented 3 years ago

rust-analyzer is official according to https://github.com/rust-lang/rfcs/blob/master/text/2912-rust-analyzer.md (but not according to the materials on the rust-lang.org site).

Anyway, that's fair, I suppose. I suggest trying the stand-alone extension instead of filing issues in this repo, since it's more maintained.