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

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

Open itsandreramon opened this issue 4 years ago • 10 comments

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:

  • macOS: 11.2.3 Big Sur
  • vs-code: 1.54.3
  • vscode-rust extension: 0.7.8
  • rust-analyzer as the engine
  • rustc 1.50.0
  • rustup 1.23.1

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:

  • #890 (about Windows)
  • #804 (similar but not the same)
  • #737 (about Rust Language Server)

itsandreramon avatar Mar 17 '21 07:03 itsandreramon

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.

lnicola avatar Mar 17 '21 07:03 lnicola

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

itsandreramon avatar Mar 17 '21 07:03 itsandreramon

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

itsandreramon avatar Mar 17 '21 07:03 itsandreramon

#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.

lnicola avatar Mar 17 '21 07:03 lnicola

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

itsandreramon avatar Mar 17 '21 07:03 itsandreramon

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

lnicola avatar Mar 17 '21 07:03 lnicola

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.

itsandreramon avatar Mar 17 '21 08:03 itsandreramon

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.

lnicola avatar Mar 17 '21 08:03 lnicola

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

itsandreramon avatar Mar 17 '21 08:03 itsandreramon

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.

lnicola avatar Mar 17 '21 08:03 lnicola