-
Notifications
You must be signed in to change notification settings - Fork 841
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
Stack produces wrong terminal color codes for file paths #4139
Comments
Is this on Windows or any OS? |
Happens on Linux, can't test on Windows. |
I can't reproduce this (using I have Note that If the intent was indeed 'dull' white, the line should be:
|
I also can not reproduce this using version |
I was not able to reproduce either, neither on Linux nor on Mac. I think these are changed from between 1.7.1 and 1.8.0. @pakettiale, can you please try with 1.8.0? Either upgrade to it via |
I can confirm that |
General summary/comments (optional)
Given that in stack/scr/Stack/PrettyPrint.hs style for the files is
this should correspond to ANSI code
^[[1m^[[37m^[[40m
however stack outputs^[[1m^[[97m
.See this gist for ANSI codes.
Steps to reproduce
script debug_stack_output
.stack ghci
outside of any project.:q
into ghci propt.control-d
to stop script command.debug_stack_output
in an editorvim debug_stack_output
.Expected
When running
stack ghci
outside of any project the note should have paths printed in bold white on a black backgroud.Actual
The paths were printed on bold white on white backgroud.
Relevant Places in stack Source:
display stackYaml
instance Display (Path b File)
styleFile
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: