-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flycheck 0: File with cargo diagnostic not found in VFS: file not found: clippy.toml #15753
Comments
This is happening on my MacBook as well |
Can be reproduced by creating a new cargo project, adding a clippy.toml with some contents, and setting {
"rust-analyzer.checkOnSave.command": "clippy"
} |
So you probably know this already, but Clippy does not accept
According to the docs, only the ones in https://rust-lang.github.io/rust-clippy/master/index.html#/Configuration are supported. So we should fix this on our side, of course, but there's no reason why you should be seeing it in a real project. |
Implementation note: we can fix this for Cargo projects by adding rust-analyzer/crates/load-cargo/src/lib.rs Line 210 in 1087295
clippy.toml vfs::loader::Entry::Files entries below), but it doesn't feel right. A custom check command could report diagnostics anywhere, so we either have to make this configurable, or decide to lazy-load files into the VFS.
CC @Veykril |
We'll have to add the toml files to the VFS soon for the |
VSCode about
rust-analyzer version: rust-analyzer version: 0.3.1689-standalone (b1f89a8 2023-10-06)
rustc version: rustc 1.73.0 (cc66ad468 2023-10-03)
relevant settings:
clippy.toml
settings.json (project dir)
settings.json (user preferences)
The text was updated successfully, but these errors were encountered: