rust-lang / rust-analyzer

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

No Linting in VS Code #18191

Open afrazkhan opened 3 days ago

afrazkhan commented 3 days 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 3 days ago

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