-
Notifications
You must be signed in to change notification settings - Fork 655
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
[Bug] Windows Leo CLI colors fail and print escape codes instead #848
Comments
Duplicate of #609. |
It is a Clap coloring issue, which can only be solved by turning colors off on Windows builds. |
Since I installed directly using Cargo, is there a way to turn off colors in our build while compiling on Windows? And, also, isn't this already implemented in clap? See: https://github.com/clap-rs/clap/pull/1178/files I'm guessing I'm missing something? |
It's not that easy. Here's a link to Clap documentation. Long story short:
The only way for us to fix this bug at this moment is to turn off color feature for Windows builds. |
There is a way (or at least should be) - we can specify build features in |
🐛 Bug Report
While running any Leo CLI command that produces color text on Windows, the resulting text prints escape codes rather than producing color text.
Steps to Reproduce
leo new test-project
Expected Behavior
Should look like this:
Your Environment
Leo 1.2.3
rustc 1.53.0-nightly (2e495d2e8 2021-04-08)
Windows 10 Home v.1909 OS build 18363.628
The text was updated successfully, but these errors were encountered: