-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compile errors are no longer colorized #49322
Comments
cc @alexcrichton who wrote the likely offending PR. |
Thanks for the report @aloucks! This is almost for sure due to #48588 The interesting part here is that it looks like rustc is detecting that it should use colors because somet of the messages look bold. It looks, though, like there may be a bug in how rustc is colorizing things as the wrong colors are coming out! To confirm, @aloucks are you using |
@alexcrichton - Yes, the screen shot is using I noticed it was showing bold too. It is strange that it detects that it should use color, but doesn't apply it correctly. |
I did some investigation on this. It looks like when you use both @BurntSushi do you have any particular insight on this? I did a quick fix by just moving the code to set bold to before the I didn't do significant testing, but it seems to avoid the bold setting from overriding the color setting. |
@ehuss I don't have any special insight, no, but I do recall running into those sorts of problems when adding VT100 support for Windows. I can't remember the details. If re-arranging the ordering fixes things, then that seems like a fine thing to me. I'd be happy to take your patch! |
There is an issue with the Windows 10 console where if you issue the bold escape sequence after one of the extended foreground colors, it overrides the color. This happens in termcolor if you have bold, intense, and color set. The workaround is to issue the bold sequence before the color. This is for rust-lang/rust#49322.
@BurntSushi I don't think this should be closed until a new termcolor release is made and the rust lock file is updated. |
Oh awesome thanks so much for the fix here @ehuss! @BurntSushi mind publishing a new version of |
Oh, errm, yeah I didn't mean to close this. I always forget that github does cross repo closes. In any case, |
Awesome, thanks! @ehuss want to send a PR I can r+? No worries if you're busy though! |
@alexcrichton sure! I'd like to do a build first, but I'll post it soon! |
This updates termcolor to pick up BurntSushi/ripgrep#867. Fixes rust-lang#49322.
Fix diagnostic colors on Windows 10 console. This updates termcolor to pick up BurntSushi/ripgrep#867. Fixes rust-lang#49322.
Previously, the line numbers were in cyan and error codes and error underlines were in red.
Possibly related: #48588
The text was updated successfully, but these errors were encountered: