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

--color not respected? #2734

Closed
birkenfeld opened this issue May 24, 2016 · 1 comment
Closed

--color not respected? #2734

birkenfeld opened this issue May 24, 2016 · 1 comment

Comments

@birkenfeld
Copy link
Contributor

This is with cargo 0.11.0 (ca743f3 2016-05-23) and rustc 1.10.0-nightly (764ef92ae 2016-05-19).

When using cargo build --color=never, I get colored "Compiling" from Cargo and colored diagnostics from rustc. Conversely, when using cargo build --color=always and redirecting stderr to a file, I don't get ANSI escapes in the file.

Is there a config I'm missing? Environment variables?

@alexcrichton
Copy link
Member

Oh dear! Looks like this was always being ignored for the stderr stream and just didn't show up because all output went to stdout. Should have a patch soon!

alexcrichton added a commit to alexcrichton/cargo that referenced this issue May 24, 2016
Previously color configuration only affected stdout, not stder as well.

Closes rust-lang#2734
bors added a commit that referenced this issue May 24, 2016
Configure colors of both stdout/stderr

Previously color configuration only affected stdout, not stder as well.

Closes #2734
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

2 participants