Add ENV variables for disabling colour stacktrace printing #40232
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Alternative option for closing #40228 (alternative to #40230)
Essentially I'd like to avoid the new
light_black
colour stacktrace printing which I find I can't really read, without having the run withjulia --color=no
Couple comments on the approach:
JULIA_STACKTRACE_*
variables.true
) you get the color printing that Base setsfalse
you can disable the color printing, recovering something very similar to the printing for Julia v1.0 - v1.5,If this kind of solution seems acceptable, then i'd appreciate advice on what exactly should be included (i.e. places where the colour should be disabled by this flag), as i think the printing can be fairly complex (it's easy to miss a place).
Example
Default
With
ENV["JULIA_STACKTRACE_COLOR_LINES"] = false
With
ENV["JULIA_STACKTRACE_COLOR_MODULES"] = false
too