-
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
Fix argument handling in rustic-cargo-clippy-rerun
#458
base: master
Are you sure you want to change the base?
Conversation
Hmm, actually there still seems to be some oddity when I think oddities like this are to be expected when using buffer-local variables. But I think the situation can be improved by |
This fixes a bug wgere `rustic-cargo-clippy-rerun` did not pass any effective arguments to `rustic-cargo-clippy-run`, so the resulting run would always have no arguments.
This means that running `rustic-cargo-clippy-rerun` would use the same arguments, even when `rustic-default-clippy-arguments` were used.
f2409b4
to
e57139d
Compare
Sorry for the late reply. e57139d seems to fix the issue for me, even from a compilation buffer. I don't see why |
I have some projects, where I set
This makes |
Oh, I just read your reply again and now I'm confused. You want me to revert the second commit, but you also say that e57139d (which is the second commit) fixed the issue for you. So do you want me to keep the second commit or drop it? |
I'm currently a little slow with replying, sorry. I think ab84300 fixed it for me. But if it doesn't work for you we maybe have to take another look. |
Ok, I see. I still experience problems with only ab84300. You should be able to reproduce them as follows.
This seems like a bug to me. I would expect that the re-run in step 2 would use the same arguments as the first run, but in this case it doesn't. Note that this is different from the behavior when you explicitly override the parameters using e57139d tries to fix this, by always setting An alternative fix could have been to check in
This weird behavior in 3 happens, because |
This fixes two separate bugs.
The first caused
rustic-cargo-clippy-rerun
to not pass any effective arguments torustic-cargo-clippy-run
, so the resulting run would always have no arguments.The second causes
rustic-cargo-clippy-rerun
to passrustic-clippy-arguments
even when it's not set. This was inconsistent withrustic-cargo-clippy
which would fall back torustic-default-clippy-arguments
whenrustic-clippy-arguments
was empty.