rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.31k stars 1.62k forks source link

No Linting in VS Code #18191

Open afrazkhan opened 1 month ago

afrazkhan commented 1 month ago

rust-analyzer version: rust-analyzer 1.81.0 (eeb90cda 2024-09-04)

rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)

editor or extension: VSCode extension (version: v0.3.2121)

The Issue

The cargo check command works as expected (shows errors such as ^^ not found in this scope for example), but the editor never shows these kinds of errors. This includes on-save (I'm not expecting it to work on-the-fly, as I understand that's not a thing yet).

Seen a few people saying the extension has issues when working in a multi-project workspace, so I've also tried a few things whilst opening just a single project in VS Code.

ChayimFriedman2 commented 1 month ago

Are you sure you don't have the check on save setting turned off by mistake?