mihnita / ansi-econsole

Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
http://www.mihai-nita.net/java/
Other
91 stars 25 forks source link

not everything in DEBUG is highlighted #9

Closed The-Alchemist closed 9 years ago

The-Alchemist commented 10 years ago

If you run jboss from the terminal on Mac OS X, the entire DEBUG output is green:

jboss-terminal

However, if I run it from Eclipse, only the first two lines of DEBUG output are colorized:

jboss-eclipse

With ANSI codes, I think it looks like this:

07:38:15,213 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
07:38:15,343 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
07:38:15,395 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS 7.2.0.Final "Janus" starting
07:38:15,400 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties:
    awt.toolkit = sun.lwawt.macosx.LWCToolkit
    file.encoding = UTF-8
    file.encoding.pkg = sun.io
    file.separator = /
    ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    gopherProxySet = false
    http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
    java.awt.headless = true
    java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
    java.class.path = /usr/local/jboss-as-7.2.0.Final/jboss-modules.jar
    java.class.version = 51.0
    java.endorsed.dirs = /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/endorsed
    java.ext.dirs = /Users/someUser/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    java.home = /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre
    java.io.tmpdir = /var/folders/nt/t6zs32td6h76p6zfzhth8m140000gp/T/
    java.library.path = /Users/someUser/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
    java.net.preferIPv4Stack = true
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.7.0_67-b01
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.7
    java.util.logging.manager = org.jboss.logmanager.LogManager
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.sun.com/bugreport/
    java.version = 1.7.0_67
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.65-b04
    javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
    javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
    javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
    javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
    javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
    javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
    javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
    javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
    javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
    jboss.bind.address = 0.0.0.0
    jboss.bind.address.management = localhost
    jboss.home.dir = /usr/local/jboss-as-7.2.0.Final
    jboss.host.name = cdev1
    jboss.modules.dir = /usr/local/jboss-as-7.2.0.Final/modules
    jboss.modules.system.pkgs = org.jboss.byteman
    jboss.node.name = cdev1
    jboss.qualified.host.name = cdev1.local
    jboss.server.base.dir = /usr/local/jboss-as-7.2.0.Final/standalone
    jboss.server.config.dir = /usr/local/jboss-as-7.2.0.Final/standalone/configuration
    jboss.server.data.dir = /usr/local/jboss-as-7.2.0.Final/standalone/data
    jboss.server.deploy.dir = /usr/local/jboss-as-7.2.0.Final/standalone/data/content
    jboss.server.log.dir = /usr/local/jboss-as-7.2.0.Final/standalone/log
    jboss.server.name = cdev1
    jboss.server.persist.config = true
    jboss.server.temp.dir = /usr/local/jboss-as-7.2.0.Final/standalone/tmp
    line.separator = 

    logging.configuration = file:/usr/local/jboss-as-7.2.0.Final/standalone/configuration/logging.properties
    module.path = /usr/local/jboss-as-7.2.0.Final/modules
    org.jboss.boot.log.file = /usr/local/jboss-as-7.2.0.Final/standalone/log/boot.log
    org.jboss.resolver.warning = true
    org.xml.sax.driver = __redirected.__XMLReaderFactory
    os.arch = x86_64
    os.name = Mac OS X
    os.version = 10.9.4
    path.separator = :
    program.name = JBossTools: JBoss72
    socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
    sun.arch.data.model = 64
    sun.boot.class.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/classes
    sun.boot.library.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib
    sun.cpu.endian = little
    sun.cpu.isalist = 
    sun.io.unicode.encoding = UnicodeBig
    sun.java.command = org.jboss.modules.Main -mp /usr/local/jboss-as-7.2.0.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b 0.0.0.0 --server-config=maars-standalone-full.xml -Djboss.server.base.dir=/usr/local/jboss-as-7.2.0.Final/standalone
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    sun.rmi.dgc.client.gcInterval = 3600000
    sun.rmi.dgc.server.gcInterval = 3600000
    user.country = US
    user.dir = /usr/local/jboss-as-7.2.0.Final/bin
    user.home = /Users/someUser
    user.language = en
    user.name = someUser
    user.timezone = America/New_York
07:38:15,407 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -Dprogram.name=JBossTools: JBoss72 -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/usr/local/jboss-as-7.2.0.Final/standalone/log/boot.log -Dlogging.configuration=file:/usr/local/jboss-as-7.2.0.Final/standalone/configuration/logging.properties -Djboss.home.dir=/usr/local/jboss-as-7.2.0.Final -Djboss.bind.address.management=localhost -Dfile.encoding=UTF-8 

```

Maybe I'm doing something wrong, but I figured it might have to do with ansi-econsole.

Thanks!
The-Alchemist commented 10 years ago

I noticed after I submitted that as I scroll, the behavior gets stranger, and the output colorizes strangely sometimes, with alternating colors and no-colors:

jboss-eclipse-weird

The-Alchemist commented 10 years ago

I just realized this might be related to #3.

mihnita commented 10 years ago

Yes, it is tyhge same as #3.

That is a bug that annoys me a lot, but I can't find any good workaround for that Eclipse limitation...

I keep going back at it once in a while and after another wasted day I give up. At this point I can only think of two options:

The-Alchemist commented 10 years ago

@mihnita: Thanks! Could you push a branch or send me a patch and I can take a crack at it too?

mihnita commented 9 years ago

Closed, same as #3.