#Rustup and rust-analyzer versions

14 messages · Page 1 of 1 (latest)

grave axle
#

I installed rust-analyzer using rustup component add rust-analyzer
The version does not match any of the releases on github.

I see this version info

$> rust-analyzer --version
rust-analyzer 1.84.0 (9fc6b431 2025-01-07)

On the rust-analyzer github page, the release is now 2025-01-07 with a different version number v0.3.2253

Should I rather use a different tool to install rust-analyzer, or is there some advantage to use rustup component for rust-analyzer?

rocky blaze
#

different version number?

#

1.84 is the rust version

grave axle
#

How do I know which version of rust-analyzer is installed?

rocky blaze
#

you just did

grave axle
rocky blaze
#

you mean the releases page

#

on github

grave axle
grave axle
#

I updated the question to make it a little clearer.

gaunt coyote
#

basically if you're compiling with 1.84 compiler you should also use rust-analyzer from that version

#

v0.3.2253 is also the VSCode extension version

grave axle
#

Thanks for the help.
After playing around with some options I decided to piggy-back on VSCode. I now alias the binary coming from the VSCode extension. Hacky yes; but easy to update and see what is going on.

I have to conclude that rustup component add rust-analyzer adds no real value and it seems to have an update lag.

I can be wrong. Nonetheless, I am closing this question.