-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Duplicate error messages #3531
Comments
Minor update: the issue is with |
Thanks for the report! What's actually happening here is that the library is being compiled twice (once with |
Thanks for the response and explanation! Given all these duplicate bug reports reporting the same issue, do you think that perhaps that might be indicative of a tooling issue? Compiling twice makes sense once you understand what is going on, but for beginners like me it's rather surprising to see error messages duplicated (and interleaved). I suppose It would be really nice if there was better information available about this to the user (e.g. cargo printing out a message that it's compiling in parallel for unit tests and doc tests). |
I'm all for fixing this or making the situation better, I just don't know how to do so without hurting the experience of successful compilations. |
When I build with
cargo
, I often get duplicate error messages printed to the console. The following shows my versions ofrustc
andcargo
, as well as a way to reproduce the issue:Notice that
cargo test
results in the same error message being printed twice to the console. If I directly runrustc
manually, I only get the error printed to the console once, as expected:This suggests there is a bug in Cargo that is causing error messages to be printed twice. This is reproducible in iTerm2 and Terminal on OS X 10.12.2 with both zsh 5.2 and bash. This has been happening for quite some time, and is not unique to the latest nightly version of Cargo.
The text was updated successfully, but these errors were encountered: