-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Intermingled JSON output from concurrent compilers #37011
Comments
You may also be interested in the |
Oh, yes, I was looking for such a flag but totally missed that PR. I think this will fix the problem for me 👍 |
So, is this not a bug, then? |
Just tried the latest nightly and that's exactly what I need (for cargo support in VisualRust), so it's a least not a bug that needs to be fixed urgently. Maybe it should be documented somewhere (in the cargo documentation) that using |
That sounds like a bug if setting RUSTFLAGS doesn't change the output format... |
It does change the output format, but it's useless, because the output might be intermingled. |
If this is a bug, I think this is a Cargo bug -- rustc itself just prints to stdout/stderr -- therefore I'm going to close. |
I don't know whether this is the right way to report this, since I found two related issues (#32486 and #30559), but my case is a bit different. It might also be a cargo issue.
In order to get JSON output from
cargo
, I passed--error-format json
throughRUSTFLAGS
. When multiple crates are compiled in parallel, sometimes their build output is intermingled:This also happens when redirecting stderr (where Cargo prints its output) to a file, so I won't be able to parse those messages correctly.
I'm using the latest nightlies:
The text was updated successfully, but these errors were encountered: