Stream: t-compiler/wg-rls-2.0

Topic: running rust analyzer on a crate manually

matthiaskrgr (Aug 13 2019 at 10:04, on Zulip):

Hi, is there a way (cmd) to run rust-analyzer on a crate/workspace manually? (without having to use vscode/rla plugins etc)

matklad (Aug 13 2019 at 10:07, on Zulip):

What would be the result of such a manual run? There's ra_cli crate inside rust-analyzer which does somethig similar to, for example, type check every expression. But it exists mainly to debug ra itsefl

matthiaskrgr (Aug 13 2019 at 10:14, on Zulip):

was wondering if I could find some crashes by running ra on the ~5000 crates in my cargo cache

matklad (Aug 13 2019 at 10:15, on Zulip):

cargo run --package ra_cli -- analysis_stats ../dir should do the trick

matthiaskrgr (Aug 13 2019 at 10:25, on Zulip):

cool, thanks!

Florian Diebold (Aug 13 2019 at 10:49, on Zulip):

I always test my commits on RA itself, rustc and usually Chalk

Last update: Sep 18 2020 at 20:30UTC