-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Some error messages are invisible in Solorized Light #101045
Comments
Assuming the compiler uses standard 8x2 ansi colors (8 colors x 2 brightness levels) and not RGB values then this is an issue with the terminal configuration. You have to set up your color scheme so that those 16 colors are distinct. |
I'm not quite understand what I can or must do. Windows terminal supports RGB (or I don't get your message): |
There are multiple ways to tell a terminal to show a color. One is to set explicit RGB values (which can be problematic if one uses an RGB value as foreground which matches the user-defined background) or as a 16-color palette that is user-configurable. As far as I can tell rustc only uses the latter. Which means it will use the colors configured in the windows terminal color scheme: https://chrisyeh96.github.io/2020/03/28/terminal-colors.html#windows-colors |
This is a known issue with the solarized colour scheme: microsoft/terminal#6997. It is recommended to either use another theme or to override the invisible colours manually. |
Thanks, I will choose another theme. |
In some cases, rust compiler doesn't provide full error information:
Here, all is fine: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=44b2e8f8c231c6475a366c84f25f4ecd
Example on FreeImage.host
This issue appears on Windows terminal, but also I think that this is platform independed.
Consider to make error message color red as in playground
Apologize section:
Probably that issue is not so useful (because it's just a color), but I want to help to rust community
As for me, it was very unexpected to get this issue. I was thinking that something wrong in compiler, but thankfully it's not
The text was updated successfully, but these errors were encountered: