Skip to content

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

@OmegaJak

Description

@OmegaJak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions