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
Compilation console color all red is "rude" #1261
Comments
This is exactly how it is supposed to work :) Could you give us a screenshot of how compiler output looks like now? What operation system are you using? cc @alygin |
The problem here is that Rust only has two options for colored output on Windows: it uses Win API calls by default (not supported by IntelliJ platform, as far as I know) and the I'll have a look at how it works now. There were changes in the |
Nightly Cargo now emits ANSI escapes on windows, so we need to reconsider the situation. |
3312: Handle 8-bit and 24-bit ANSI color escapes in console r=ortem a=mchernyavsky Fixes #1261 (already fixed?) Closes #1630 (?) Fixes #1966 Fixes #2463 Thanks @kumbayo for [this](#1966 (comment)) comment! TODO: * Fix issue with white color on Windows #### Update Looks like a Rustc issue. macOS Mojave: ``` ^[[0m^[[1mFor more information about this error, try `rustc --explain E0369`.^[[0m ``` Windows 10: ``` ^[[0m^[[1m^[[38;5;15mFor more information about this error, try `rustc --explain E0369`.^[[0m^M ``` As you can see, on Windows, Rustc prepends `^[[38;5;15m` control sequence to some chunks of text, which forces console use white color for the foreground. This is a problem, as the default background in IDEA is also white. Not sure how to fix it (and whether to do it at all). The user can configure color mapping in the console (`Preferences > Editor > Console Scheme > Console Colors > ANSI Colors`). * Check #1842 (does it work as expected?) Co-authored-by: mchernyavsky <chemike47@gmail.com> Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
3312: Handle 8-bit and 24-bit ANSI color escapes in console r=ortem a=mchernyavsky Fixes #1261 (already fixed?) Closes #1630 (?) Fixes #1966 Fixes #2463 Fixes #1842 (does it work as expected?) Thanks @kumbayo for [this](#1966 (comment)) comment! TODO: * Fix issue with white color on Windows #### Update Looks like a Rustc issue. macOS Mojave: ``` ^[[0m^[[1mFor more information about this error, try `rustc --explain E0369`.^[[0m ``` Windows 10: ``` ^[[0m^[[1m^[[38;5;15mFor more information about this error, try `rustc --explain E0369`.^[[0m^M ``` As you can see, on Windows, Rustc prepends `^[[38;5;15m` control sequence to some chunks of text, which forces console use white color for the foreground. This is a problem, as the default background in IDEA is also white. Not sure how to fix it (and whether to do it at all). The user can configure color mapping in the console (`Preferences > Editor > Console Scheme > Console Colors > ANSI Colors`). Co-authored-by: mchernyavsky <chemike47@gmail.com> Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
3312: Handle 8-bit and 24-bit ANSI color escapes in console r=ortem a=mchernyavsky Fixes #1261 (already fixed?) Closes #1630 (?) Fixes #1966 Fixes #2463 Fixes #1842 (does it work as expected?) Thanks @kumbayo for [this](#1966 (comment)) comment! TODO: * Fix issue with white color on Windows #### Update Looks like a Rustc issue. macOS Mojave: ``` ^[[0m^[[1mFor more information about this error, try `rustc --explain E0369`.^[[0m ``` Windows 10: ``` ^[[0m^[[1m^[[38;5;15mFor more information about this error, try `rustc --explain E0369`.^[[0m^M ``` As you can see, on Windows, Rustc prepends `^[[38;5;15m` control sequence to some chunks of text, which forces console use white color for the foreground. This is a problem, as the default background in IDEA is also white. Not sure how to fix it (and whether to do it at all). The user can configure color mapping in the console (`Preferences > Editor > Console Scheme > Console Colors > ANSI Colors`). Co-authored-by: mchernyavsky <chemike47@gmail.com> Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
3312: Handle 8-bit and 24-bit ANSI color escapes in console r=ortem a=mchernyavsky Fixes #1261 (already fixed?) Closes #1630 (?) Fixes #1966 Fixes #2463 Fixes #1842 (does it work as expected?) Thanks @kumbayo for [this](#1966 (comment)) comment! TODO: * Fix issue with white color on Windows #### Update Looks like a Rustc issue. macOS Mojave: ``` ^[[0m^[[1mFor more information about this error, try `rustc --explain E0369`.^[[0m ``` Windows 10: ``` ^[[0m^[[1m^[[38;5;15mFor more information about this error, try `rustc --explain E0369`.^[[0m^M ``` As you can see, on Windows, Rustc prepends `^[[38;5;15m` control sequence to some chunks of text, which forces console use white color for the foreground. This is a problem, as the default background in IDEA is also white. Not sure how to fix it (and whether to do it at all). The user can configure color mapping in the console (`Preferences > Editor > Console Scheme > Console Colors > ANSI Colors`). Co-authored-by: mchernyavsky <chemike47@gmail.com> Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
Minor issue here, but I found having all the compiler output red feels "rude".
I sometime believe that I have errors but it's only warnings (mainly because my function has just been written and not used yet).
Can we have the default colours from the compiler?
The text was updated successfully, but these errors were encountered: