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

Clippy as command leads to no diagnostics

Open augustocdias opened this issue 4 years ago • 8 comments

If I set the setting rust-analyzer.checkOnSave.command to clippy I'm getting no diagnostics (on multi project workspaces) since last week's rust-analyzer update. Is this an issue with coc or rust-analyzer?

I could reproduce the issue on VSCode and NeoVim+Coc (https://github.com/fannheyward/coc-rust-analyzer/issues/833)

augustocdias avatar Aug 03 '21 09:08 augustocdias

Any updates here?

equal-l2 avatar Aug 28 '21 19:08 equal-l2

I just ran into something similar, but it was because I switched to the nightly toolchain with rustup and hadn't added clippy to it yet. After rustup component add clippy (with the relevant toolchain selected) things started working again.

RA didn't display any warning about the command not being found that I could see.

Does running cargo clippy in the project folder work?

semicoleon avatar Oct 10 '21 21:10 semicoleon

I don't use nightly and yes it works

augustocdias avatar Oct 11 '21 01:10 augustocdias

Same issue here, I get no diagnostics on a workspace project. Running cargo clippy manually works.

Leandros avatar Feb 15 '22 10:02 Leandros

Same issue

kkharji avatar Apr 25 '22 23:04 kkharji

This needs a reproducer for us to be actionable, or at least some logs.

Veykril avatar Apr 26 '22 09:04 Veykril

I can reproduce it easily. How can I get you some logs?

Leandros avatar Sep 06 '22 19:09 Leandros

On VSCode you can get the logs here grafik

Veykril avatar Sep 07 '22 11:09 Veykril

Are people still running into this? We'd need to see a repro this reproduces on

Veykril avatar Sep 16 '23 14:09 Veykril

Still happens for me.

Sorry, false positive. The build was failing somewhere else due to noDefaultFeatures being set.

pattop avatar Oct 05 '23 00:10 pattop