Skip to content
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

Mangled Output Formatting In Powershell #30559

Closed
martindevans opened this issue Dec 25, 2015 · 6 comments
Closed

Mangled Output Formatting In Powershell #30559

martindevans opened this issue Dec 25, 2015 · 6 comments

Comments

@martindevans
Copy link

Something seems to have gone terribly wrong with the formatting of rustc output to powershell!

untitled

As you can see from the image above it seems like rustc has totally lost the plot formatting the first error.

I'm using a surface pro 4, windows 10, powershell. My powershell is not in legacy mode, window is 80 chars wide and buffer is also 80 chars wide. Unfortunately I don't have access to another PC to test this on right now but if you tell me any additional information you'd like I'll try to provide it.

@sfackler
Copy link
Member

It looks like output from two rustc processes interleaved. I've seen this before when running cargo test in certain configurations when it tries to build the lib and the test binary at the same time.

@martindevans
Copy link
Author

Ahh interesting, is there a quick easy fix?

@sfackler
Copy link
Member

I just run cargo build instead of cargo test to fix the errors and then jump back to cargo test.

@jonas-schievink
Copy link
Contributor

I think doing cargo test -j1 will execute rustc in series, so it should work as well

@martindevans
Copy link
Author

Cargo build then cargo test seems to be working. Thanks for your help guys.

Merry Christmas 🎅

@retep998
Copy link
Member

Unfortunately we let the rustc instances write to the console directly because if they were redirected to pipes colors wouldn't work due to conhost using API calls rather than escape codes for colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants