Skip to content
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

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

Open
OmegaJak opened this issue Nov 2, 2023 · 0 comments · May be fixed by #38
Open

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

OmegaJak opened this issue Nov 2, 2023 · 0 comments · May be fixed by #38

Comments

@OmegaJak
Copy link

OmegaJak commented Nov 2, 2023

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.

@OmegaJak OmegaJak changed the title Clippy lints fail because "offense is for another file" Clippy lints fail because "offense is for another file" on Windows Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant