Fix argument handling in rustic-cargo-clippy-rerun#458
Fix argument handling in rustic-cargo-clippy-rerun#458Kritzefitz wants to merge 2 commits intobrotzeit:masterfrom
rustic-cargo-clippy-rerun#458Conversation
|
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-rerunto not pass any effective arguments torustic-cargo-clippy-run, so the resulting run would always have no arguments.The second causes
rustic-cargo-clippy-rerunto passrustic-clippy-argumentseven when it's not set. This was inconsistent withrustic-cargo-clippywhich would fall back torustic-default-clippy-argumentswhenrustic-clippy-argumentswas empty.