-
Notifications
You must be signed in to change notification settings - Fork 101
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 options in .cargo/config
causes constant rebuilds
#412
Comments
Can you show me your lsp-mode config please. |
Can you try if it works when you add the config options to |
I would consider using the |
Additionally, the reason which causes a rebuild could be either one of the build.rs scripts. |
In fact, judging by how many scripts require you to ignore the |
Update: |
Turns out this was never an issue with any of rustic, rust-analyzer, or lsp, but a known behavior with cargo itself. See, e.g., rust-lang/cargo#14551 |
I'm not sure if this is a bug in rustic, rust-analyzer, or lsp, and I haven't been very successful in tracking down what's going on, so feel free to point me elsewhere. When I open a file in the coreutils project, clippy is run as the linter. If I then run clippy from the command line, it treats it as a clean rebuild, and vice versa. It seems like the problem is the additional clippy flags in .cargo/config, like the cache is invalidated because they aren't being applied when run via rustic.
The text was updated successfully, but these errors were encountered: