Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

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

Open
itsandreramon opened this issue Mar 17, 2021 · 10 comments

Comments

@itsandreramon
Copy link

itsandreramon commented Mar 17, 2021

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)
@lnicola
Copy link
Member

lnicola commented Mar 17, 2021

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
Copy link
Author

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

@itsandreramon
Copy link
Author

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

@lnicola
Copy link
Member

lnicola commented Mar 17, 2021

#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
Copy link
Author

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

@lnicola
Copy link
Member

lnicola commented Mar 17, 2021

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

@itsandreramon
Copy link
Author

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
Copy link
Member

lnicola commented Mar 17, 2021

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
Copy link
Author

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

@lnicola
Copy link
Member

lnicola commented Mar 17, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants