-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
fix Issue 17396 - Add colorized syntax highlighting to error messages… #6777
Conversation
|
Anyone have any idea why this is suddenly happening?
The file is certainly there. |
cc @MartinNowak |
dlist.d is not on the command line of the library being compiled, so the module name should match the folder path, i.e. it should be module |
Ok, but why is this suddenly happening? Why is it happening to this PR and not the others? |
ffb8503
to
101255d
Compare
You have added an import |
Oh, ok. That makes sense. Thanks! |
I'll leave it to someone with better color sense to pick better colors. |
d629708
to
13a0a4b
Compare
It's working now! Of course, the rest of the error messages need to be marked with backticks for it to work with them. |
@WalterBright Something is wrong here, looks like newlines are getting lost somewhere: |
yeah, fixed that in #6781 |
Confirmed, thanks. |
For one I think we should avoid red and leave that reserved for the "Error:" part. |
Even just having them bold would be enough IMO. |
You could make the same argument for Warning and Deprecation messages too. Also supplemental and speculative messages if they get different highlights. That doesn't really leave much else left to use. |
I may be biased towards cgdb here, but if you insist on it being coloured, the following groupings I find are the least surprising:
There may be some who may want to swap token and comment colours in my above list. |
I also think a dmd.conf parameter to turn off colors globally is desirable. Colors mess with some folks terminals (different color schemes etc) - it should be easily disabled. (And preferrably not by adding |
… emitted by dmd
This colorizes D code in between backticks in error messages.