fnando / vscode-linter

Extension for code linting, all in one package. New linters can be easily added through an extension framework.
https://marketplace.visualstudio.com/items?itemName=fnando.linter
MIT License
62 stars 16 forks source link

Clippy lints fail because "offense is for another file" on Windows #37

Open OmegaJak opened 10 months ago

OmegaJak commented 10 months ago

Clippy lints for Rust files aren't working for me. In the linter log, every lint produces a message like this:

offense is for another file {
  "src": "file://d:\\Documents\\Creation\\Rust\\project\\src\\main.rs",
  "uri": "file:///d%3A/Documents/Creation/Rust/project/src/main.rs"
}

or

offense is for another file {
  "src": "file://d:\\Documents\\Creation\\Rust\\project\\src\\main.rs",
  "uri": "file:///d%3A/Documents/Creation/Rust/project/src/app.rs"
}

This appears to happen for main.rs as well as all other files. Using Clippy 0.1.72 on Windows, VSCode version 1.84.0, extension version 0.0.19.