-
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
Driver logging: disable colors when logging to file #78435
Comments
This is the fault of rust/compiler/rustc_driver/src/lib.rs Line 1289 in 35debd4
I should be checking for whether the terminal supports colors before activating colors |
A workaround until then is to use https://superuser.com/a/380778 |
How can I run miri from the rust repo? (i.e. built using |
You can run the test suite with |
Until then, you'll have to resort to this. Some of the |
Ah, thanks! I forgot about that part of the docs :) |
Hmm, I'm getting this error:
I'm using the latest master rustc and the latest miri. Is miri broken right now? EDIT: Oh, I think I need |
Yeah looks like you are using the wrong stage or so. The docs are from back when stage 2 was the default... |
Update locally-built rustc instructions Cc rust-lang/rust#78435
Looks like the code tests |
Hmm, I guess I didn't notice any issues because I always redirect stderr to stdout and then view that. |
Working on a fix. |
Yeah, for now using |
@RalfJung FYI you can view the original color with |
When debugging a large Miri trace, I like to put the trace into a file that I can analyze and search through in an editor. Unfortunately, since the recent logging changes, that leads to a lot of garbage in the file:
Looks like the color escape sequences are printed even when redirecting to a file. This makes working with the logfile much harder than it was before. Is there a way to fix that?
Cc @oli-obk
The text was updated successfully, but these errors were encountered: