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

cargo check doesn't display colored messages #1072

Closed
lilianmoraru opened this issue Mar 16, 2017 · 4 comments
Closed

cargo check doesn't display colored messages #1072

lilianmoraru opened this issue Mar 16, 2017 · 4 comments

Comments

@lilianmoraru
Copy link

Running cargo check(now in Rust 1.16) with --color=always, displays everything in red(compilation messages, warnings, errors...).

@alygin
Copy link
Member

alygin commented Mar 17, 2017

What OS do you use? Such behaviour is expected on Windows because cargo and rustc don't emit correct ansi codes for msys terminals. You can find more details in #646, and here's the issue for Stebalien/term.

@alygin
Copy link
Member

alygin commented Mar 17, 2017

Oh, and on other platforms we don't colorize output for cargo check. As far as I remember, it didn't emit colors in the past. But it does now, so we can treat it as a color supporting command.

@lilianmoraru
Copy link
Author

To answer to the question: it is Linux(the OS).

@alygin
Copy link
Member

alygin commented Mar 17, 2017

Yeah, I should've guessed that. Just forgot that we deliberately excluded cargo check from the white list of colorizable commands.

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