-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[DEFECT] CommonOptions not available when formatting outside a PC #697
Comments
This should have been fixed in this commit: |
@AlexWeinstein92 - do you concur? |
After further investigation I realize I was off in my diagnosis of the root of the issue I saw.
|
There are only two modules that import scala.io.AnsiColor and therefore only two modules that could possibly insert ANSI highlighting. those modules are The only use of ANSI highlighting in the Logger occurs in the The "actual String holding the message" can only be generated from the Parser or validation routines and they never insert ANSI highlighting because they never import scala.io.AnsiColor. Consequently, I hold that no ANSI highlighting is being done without heeding the noANSIMessages setting in CommonOptions. If this occurs for you, it must necessarily be the setting of noANSIMessages you've placed in your given statements. |
Turns out a refactoring I did is another branch. My current branch uses an old method of producing console output. Apologies for the confusion |
Symptom
After each run, the plugin saves the Messages that come back from
runCommandWithArgs
These messages do not respect the check for commonOptions.noANSIMessages because the options are not passed into the
format
function or its downstreamannotateErrorLine
functionExpected Behavior
NoANSIMessages, and all other CommonOptions, should appropriately affect
Messages.format
even outside of aPlatformContext
Steps To Reproduce
List the steps to reproduce the symptomatic behavior:
Messages
ofruncommandWithArgs
and note that ANSI formatting codes are still present even whennoANSIMessages = true
The text was updated successfully, but these errors were encountered: