-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Message caching does not allow switching --message-format between short and human #9003
Comments
Transferred to the rust-lang/cargo repository. This is a known issue where the cached messages do not allow switching between For now, I suggest either avoiding switching between formats, or just accept that cached messages may be in a different format. |
I see... I've seen in a related Clippy issue that you could use Don't know if I should close the issue or not because it seems like it won't be fixed, but I do want to voice my opinion that this behavior is pretty unexpected and breaks at least my workflow. |
I think it is fine to leave this open, just with the caveat that it will likely be difficult to fix. |
I'm using cargo 1.55.0 and errors are printed in one line, warnings in human format |
Just ran into this issue... my opinion is that a rebuild would be preferable to the current behavior. I would rather have to wait and eventually be shown the output I want, than be shown the wrong output I've specifically told cargo I don't want. I think the following would make sense:
|
I ran this command:
On previous versions, this outputted one error per line.
Instead now, it outputs the same as
--message-format human
.However,
cargo build --message-format short
outputs as expected.EDIT
Seems like it's also an issue with
cargo build
. I played around with it, this is how to reproduce:main.rs
filecheck
orbuild
with--message-format human
- works as expected--message-format short
- still displayshuman
main.rs
--message-format short
- works as expected--message-format human
- still displaysshort
Meta
rustc --version --verbose
:cargo --version --verbose
:The text was updated successfully, but these errors were encountered: