Comments (7)
"I know that IDEA's own console supports ANSI colour sequences" I didn't know that. Looks like it isn't supported across the board, though:
http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880
I'll poke through the sources and see if I can find a way. Would be great to use this for SBT colorization rather that the current hack.
from idea-sbt-plugin.
Many thanks for looking into it. Hopefully work on the IntelliJ side
will make this easier to enable soon.
Stuart.
Jason Zaugg wrote:
"I know that IDEA's own console supports ANSI colour sequences" I
didn't know that. Looks like it isn't supported across the board, though:http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880I'll poke through the sources and see if I can find a way. Would be
great to use this for SBT colorization rather that the current hack.
Reply to this email directly or view it on GitHub:
#51 (comment)Jason Zaugg
mailto:[email protected]
15 November 2011 3:47pm
"I know that IDEA's own console supports ANSI colour sequences" I
didn't know that. Looks like it isn't supported across the board, though:http://youtrack.jetbrains.net/issue/IDEA-68679
http://youtrack.jetbrains.net/issue/IDEA-69880I'll poke through the sources and see if I can find a way. Would be
great to use this for SBT colorization rather that the current hack.
Reply to this email directly or view it on GitHub:
#51 (comment)
from idea-sbt-plugin.
This would also be nice for scalatest output
from idea-sbt-plugin.
Is it still relevant since it is supported by Grep Console plugin?
from idea-sbt-plugin.
@krasa SBT Console plugin seems to strip ANSI color codes, so your Grep Console cannot see them. =(
@retronym Maybe there could be an option somewhere in SBT Console's settings to turn this stripping off? =)
from idea-sbt-plugin.
The plugin sets -Dsbt.nologformat=true
(or something like that) to instruct SBT not to colorize the output.
from idea-sbt-plugin.
@retronym setting this to false
in https://github.com/orfjackal/idea-sbt-plugin/blob/756a2ed6b70024f6ab71aed7310f973d17f825b8/sbt-plugin/src/main/java/net/orfjackal/sbt/runner/SbtRunner.java#L55 (or removing this line altogether) doesn't make the plugin output ANSI codes for me. I've tried changing jline.terminal
to jline.UnixTerminal
, with no success either.
SBT documentation, http://www.scala-sbt.org/release/docs/faq.html#how-do-i-disable-ansi-codes-in-the-output, says:
Sometimes sbt doesn't detect that ansi codes aren't supported and you get output that looks like:
So it seems SBT is doing some checks on its own and may decide to not output ANSI color codes even if -Dsbt.log.noformat=true
. =(
from idea-sbt-plugin.
Related Issues (20)
- Assertion Error
- REQUEST: add more details to readme.md
- Custom path for test sources in special task
- ERROR: Editor of class com.intellij.openapi.editor.impl.EditorImpl hasn't been released HOT 2
- Compatibility with Idea-15 HOT 33
- SBT console not showing up in Tools or View-Tool Windows
- Improvement: Allow key binding for 'Refresh ALL sbt projects' command HOT 1
- ANDROID_HOME??? HOT 3
- SBT console arrows up or down don't show history HOT 1
- can't find scala 2.11.8
- com.github.mpeltonen#sbt-idea;1.7.0-SNAPSHOT: not found
- Doesn't work in Idea-2017 EAP (idea-IU-171.2014.21) HOT 1
- Version for jar not set properly when changed in build.sbt HOT 1
- SBT sync imports libraries as modules for Android project with Google Mobile Services
- Exception in plugin sbt idea when using run configuration for Android
- IllegalStateException HOT 4
- Exception in plugin SBT(1.8.0) when is not used HOT 2
- IllegalArgumentException
- Exception in plugin sbt HOT 1
- Support command line arguments (in addition to JVM parameters)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idea-sbt-plugin.