How to show or remove ANSI codes in compiler output Follow
I am using the clippy compiler plugin: https://github.com/softwaremill/scala-clippy. It adds ANSI color codes to the compiler output. While they look great on CL, they are rendered like this in the Build Messages window:
found : [31mscala.concurrent.Future[Option[Int][39m]
required: [31mOption[?[39m]
How can I either let IntelliJ filter them out or better yet, display the colors?
Thank you
Please sign in to leave a comment.
You can't easily filter the colors out, but clippy seems to have an sbt setting to disable them:
Thanks for the quick answer Justin. Yeah disabling the colors altogether would work but I work both an CL and in IntelliJ, so hoped for some IntelliJ-specific settings. I guess I will just let the colors be - colors on the CL and ANSI in the IDE is a better prospect for me than pain text all over.
Cheers
Thanks for the feedback. We may add a way to add ide-specific sbt settings in the future.
Also you will soon be able to run builds in an integrated sbt shell which does support colors
Justin, an integrated sbt shell would be perfect, as an avid EAP user, I'm very much looking forward to it. Thanks again.
With EAP/nightlies you can already try it. Look for the "Start SBT Shell" action in the Tools menu, and the "build with sbt shell" option in the SBT options. I appreciate any feedback on general usefulness, but you can expect that not everything works smoothly yet :)
2017.1 EAP 171.3019.7 seems to be some builds short currently :) will return with feedback once the official EAP channel has the SBT shell. Cheers!