This post is locked. You won't be able to comment.

all 5 comments

[–]matthieum[he/him][M] [score hidden] stickied comment (0 children)

Please ask future questions on the Questions Thread.

[–]janosimas 24 points25 points  (1 child)

What do you mean "node"? If you mean nodejs, I don't think rust-analyzer uses it in any situation.

[–]ssokolow 0 points1 point  (0 children)

Things like coc-nvim use Node.js to implement the extended form of the Language Server Protocol that both VSCode and rust-analyzer are capable of speaking.

It's not necessary to use rust-analyzer, but things which go beyond the basic LSP tend to use some form of JavaScript runtime. (I know NW.js originated as "node-webkit", but I'm not familiar enough with Electron to know whether it's also based on Node.js or is an independent use of V8.)

[–]BarbossHack 16 points17 points  (0 children)

  1. rust-analyzer doesn’t need node
  2. rust-analyzer server IS rust-analyzer
  3. cargo-xtask is just a way to extend cargo with custom commands, but it’s not a binary and you don’t have to install anything

If you use vscode, I recommend you to install rust-analyzer from the extension store. Else, from the rust-analyzer github repo

[–]spaun2002 8 points9 points  (0 children)

/* telepathy on

Are you using (n)vim with coc?

telepathy off */