mihnita / ansi-econsole Goto Github PK
View Code? Open in Web Editor NEWEclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
Home Page: http://www.mihai-nita.net/java/
License: Other
Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
Home Page: http://www.mihai-nita.net/java/
License: Other
hi.
i found the same problem Coloring doesn't work in 2020-03
in:
Ansi Console 1.4.2.202002090224 net.mihai-nita.ansicon.feature.group Mihai Nita
but print code work normal.color normal:
System.out.println("Hello \u001b[31m red world!"); System.out.println("Hello \u001b[31m red world!");
test env and test method:
mvn clean install -X
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /Users/yuzhen/develop_software/maven/apache-maven-3.6.3 Java version: 1.8.0_241, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac"
my system:
mac os 10.15.6 (19G73)
myeclipse version:
Eclipse IDE for Java Developers (includes Incubating components) Version: 2020-06 (4.16.0) Build id: 20200615-1200
1、new eclipse workspace. no help
2、reinstall plugin. no help
3、check enable/disable.check Preferences. no help
Please help me.Thanks.
currently the update-site only contains the compiled sources, it would be nice if source bundles are also provided to make development easier.
Currently one needs to decide from the icon if the action is enabled/disabled.
It would be much better if the button uses a toggle button.
A while ago you've made this nice change to have the gcc compiler output colored. It works, but only for a single project, the one that was compiled first. If I have several projects opened in CDT, then switching to another one shows just bare escape codes in the console when compiling.
I don't use this plugin, but I work with some other developers who apparently had it installed, but very likely because of some other set of plugins they installed (spring ide, for instance).
We work on a Spring Boot application that normally doesn't take command-line arguments. I added some alternative diagnostic code that is run when any command-line arguments are found, and then it exits. This all worked fine on my desktop and on the test servers.
Some developers reported that when they were trying to run the service in Eclipse, they were getting into this code that only runs when command-line arguments are sent, but they weren't sending any command-line arguments. I checked their run configuration, and they had no command-line arguments.
I then set a breakpoint and ran in debug to see what was happening. When it got to the point of checking for command-line arguments, I found the following value:
[--spring.output.ansi.enabled=always]
I saw some configuration settings for the plugin, and I turned them all off. No change. I then uninstalled this plugin. That fixed the problem. I've recommended to the developers that they uninstall this plugin for now.
The attached file contains a trivial Makefile project that when I build it doesn't show any coloring. It should show the word 'Green' in green color. It does this when I run 'make' in a Windows CMD window or a Git Bash, but not in the Eclipse Console (of course with this plugin installed).
If I create a new project in Eclipse (File -> New -> Makefile project with existing code), and then build it, I see the text ‘Green’, but it’s not colored at all… I hope you can reproduce this, and then maybe help with making it work 😉
Thanks,
TheChilly
GCC accurately issues the color escape sequences, I can see colors in the terminal, but Ansi Console ignores the escapes. I attached buildlog.txt with the contents of the Eclipse console and two screenshots how it looks like in Eclipse and in a terminal.
I have installed the latest version of Spring Tool Suite, and when using the Dark Theme, it give me a serious performance issue when ANSI Console is also enable (freezing, tacking a lot of time to scroll on the console, etc.)... Yet, I don't have any issue with the default theme.
I am suspecting some kind of conflict between them.
When using this plugin it creates massive delays on all inputs. After printing something like this:
It will take me about 7 seconds for any input to register, which can sometimes trigger a "not responding" message.
Running the same program in the windows 10 command prompt (with the registry enabled to display the colors) doesn't cause any delays.
The cause may be related to excessive use of colors. The image above is equivalent to the version here, without ansi colors enabled:
I am trying to install from behind a corporate firewall and i get a 302 http error when trying to install via the marketplace and manually via the update site URL: http://www.mihai-nita.net/eclipse
I am using eclipse 2018-09, and I can install other plugins just fine. This is the only one that is giving me trouble.
This is possibly related to #33.
Issue:
Expected behavior:
Confirmation:
Testcase:
System.out.println("\033[93m\t\t<");
Ansi Console Version: 1.3.5.201612301822
Eclipse:
Please make entry on Eclipse marketplace
I am running windows 10 with the Corttello 11 JVM. (I am finding the same behavior with OpenJDK 9-12, but 8 does not seem to experience this behavior)
Eclipse Version: 2019-09 R (4.13.0)
I have Spring Tools 4, Buildship Gradle Integration 3.0, and ANSI Escape in Console. I uninstalled all other plugins.
While ANSI Escape in Console is enabled, there is strange and unpredictable JVM faults when trying to start up a spring boot application from the "Boot Dashboard."
I have crafted a minimal project that exhibits this behavior. The JVM fault behavior changes based on library dependencies and parameters passed in. More often than not a "EXCEPTION_ACCESS_VIOLATION" occurs (or it will just not log anything and terminate immediately without printing anything)
test-microservice-2.zip
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffef06b4b39, pid=25688, tid=29644
#
# JRE version: OpenJDK Runtime Environment (11.0.5+10) (build 11.0.5+10-LTS)
# Java VM: OpenJDK 64-Bit Server VM (11.0.5+10-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V [jvm.dll+0x664b39]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\default\eclipse-workspaces\test\test-microservice-2\hs_err_pid25688.log
While the gradle boot project will not start, it should at least print out the "Spring" banner.
For the VM arguments in starting up the application use the following. The -Dj*=* variables don't actually do anything but does cause the fault to occur. When dummy arguments are removed on my system, the fault does not occur. If any of the dependent libraries are removed, the JVM fault also does not occur. The behavior seems pretty reliable on my system that it will fail, however, with other applications the behavior was less predictable.
-ea -Dendpoint.underDevelopment.allow=true -Dnope.routing.host=http://localhost:8080 -Dspring.cloud.config.uri=http://localhost:8888 -Dspring.cloud.config.failFast=true -Dspring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect -Dlogging.level.org.hibernate.SQL=debug -Dlogging.level.org.hibernate.type.descriptor.sql=trace -Dspring.profiles.active=aaa,bbb,ccc,ddd -Dnope.publishing.host=www.google.com -Dnope.search.host=www.google.com -Dspring.rabbitmq.addresses=localhost:5672 -Dspring.rabbitmq.username=XXXXX -Dspring.rabbitmq.password=***** -Dendpoints.shutdown.enabled=true -Deureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/ -Dj17=17 -Dj18=18 -Dj19=19 -Dj20=20 -Dj21=21 -Dj22=22 -Dj23=23 -Dj24=24 -Dj25=25 -Dj26=26 -Dj27=27 -Dj28=28 -Dj29=29 -Dj30=30 -Dj31=31 -Dj32=32 -Dj33=33 -Dj34=34 -Dj35=35 -Dj36=36 -Dj37=37 -Dj38=38 -Dj39=39 -Dj40=40 -Dj41=41 -Dj42=42 -Dj43=43 -Dj44=44 -Dj45=45 -Dj46=46 -Dj47=47 -Dj48=48 -Dj49=49 -Dj50=50 -Dj51=51 -Dj52=52 -Dj53=53 -Dj54=54 -Dj55=55 -Dj56=56 -Dj57=57 -Dj58=58 -Dj59=59 -Dj60=60 -Dj61=61 -Dj62=62 -Dj63=63 -Dj64=64 -Dj65=65 -Dj66=66 -Dj67=67 -Dj68=68 -Dj69=69 -Dj70=70 -Dj71=71 -Dj72=72 -Dj73=73 -Dj74=74 -Dj75=75 -Dj76=76 -Dj77=77 -Dj78=78 -Dj79=79 -Dj80=80 -Dj81=81 -Dj82=82 -Dj83=83 -Dj84=84 -Dj85=85 -Dj86=86 -Dj87=87 -Dj88=88 -Dj89=89 -Dj90=90 -Dj91=91 -Dj92=92 -Dj93=93 -Dj94=94 -Dj95=95 -Dj96=96 -Dj97=97 -Dj98=98 -Dj99=99
When ANSI Escape in Console is disabled, the JVM fault does not occur.
Eclipse 2019-12. Ansi Console is installed from marketplace.eclipse.org. https://www.mihai-nita.net/eclipse is enabled in "Available Software Sites". Latest updates checked and installed. "Enabled" is checked in Ansi Console preferences page.
Yet instead of colors I see codes like �[0;1;32m in the console.
What am I missing?
Hi,
first of all, thank you for providing the ANSI econsole plugin, it works really well :)
I'd like to integrate the ANSI econsole plugin into an RCP, but it should be disabled by default.
I can set the default like this:
IPreferenceStore store = AnsiConsoleActivator.getDefault().getPreferenceStore();
store.setDefault(AnsiConsolePreferenceConstants.PREF_ANSI_CONSOLE_ENABLED, false);
However the current implementation of EnableDisableHandler uses the inital state defined in the plugin.xml:
<state
class="org.eclipse.ui.handlers.RegistryToggleState:true"
id="org.eclipse.ui.commands.toggleState">
</state>
Hence, the toggle button in the tool bar is still enabled.
I solved this by explicitly setting the value of the toggle state to the value of the preference in the preference store:
ICommandService service = PlatformUI.getWorkbench().getService(ICommandService.class);
Command command = service.getCommand(EnableDisableHandler.COMMAND_ID);
State state = command.getState(RegistryToggleState.STATE_ID);
state.setValue(store.getBoolean(AnsiConsolePreferenceConstants.PREF_ANSI_CONSOLE_ENABLED));
However this is a little cumbersome.
The current implementation explicitly executes the enable_disable
command using a dummy event when calling performOK()
in the preference page.
Therefore the EnableDisableHandler
has to implement IElementUpdater
and distinguish between normal and dummy events.
If I am not missing something, this can be removed. To synchronize the toggle state with the preference, a PropertyChangeListener can be used.
I will provide a pull request for this issue soon.
When the ANSI Escape in Console is enabled, the stack trace output blue coloring and underline that denotes a hyperlink quits working. You can still click on the hyperlink but it appears as standard black text and new users do not realize it is clickable.
How can we still display the underlined blue hyperlinks for the stack trace with ANSI Escape in Console enabled?
If ansi console is enabled, the CDT build console errors and warnings are not displayed with correct background colors. The whole lines should be red/yellow not just line end (see image). Also if I change the console bg color in eclipse preferences, only the area with text is affected.
I had an older version of the plugin installed previously (1.0.something) that worked fine. I updated via the eclipse updater to 1.2.0.201306022211 and now it's not working correctly anymore.
It might be that the ansi console was not used at all by the build console previously. I'm not sure as I can't find the old version anywhere so I could test it (I only need ansi in the "run" console anyway).
Hi!
I have been using this plugin with no problem, compiling with gcc's -fdiagnostics-color=always
and getting nice colors in the console. Since updating my Eclipse to 2020-09, colors don't show up, I see the escape sequences in the console. Here's a screenshot of the test C++ program (from the wiki):
And idea where to start digging to find out why it doesn't work?
Would be nice to be able to open Preferences and go to Ansi Console page directly from the icons in the toolbar. Or change some of the preferences from a small drop-down?
Your plugin has worked wonderfully till recently when it stopped coloring the logs for Spring Tool Suite 4
Check on this.
http://tinypic.com/r/jztn6g/9
After uninstalling it showed as expected.
(Reinstalling plugin through marketplace did not solve this)
I have installed this from the market place on my Eclipse install Eclipse IDE for JavaDevelopers):
Version: 2020-12 (4.18.0)
Build id: 20201210-1552
I see no colored output and no ANSI button on the console indicating that it may not even be running. Any help with debugging or getting this going would be greatly appreciated.
The plugin ignores any existing formatting info, assumes it all comes as a "clean slate"
But there are cases when the output already has formatting info.
For instance when there is an exception there are links that are formatted.
Just doing this as the only instruction is enough to show the problem:
int foo = 4 / 0;
With the plugin disabled the exception message has two links (to java.lang.ArithmeticException and to the line in code where the exception occurred), but with the plugin disabled the links are not visible (they are active, you can click and they work, but the formatting is gone)
Reported to STS but it seems to belong here:
users of STS report that this doesn't work on the just released macOS High Sierra. The output shows up as blank, although the characters are there.
See also:
spring-attic/spring-ide#196
This can be reproduced using the latests STS (4.4.2) and doing the following steps:
At first everything appears to work fine. But after I was using the IDE for a bit more and (amongst other things) looked around in the Eclipse preferences a bit... the IDE became slow, then unresponsive and eventually crashed.
I then disabled the Ansi console from its preferences page. Tried the same experiment again and everything worked fine.
It is a bit strange, but this problem seems very specific to a setup that is running on Windows and is using the Dark theme. There seems to be no problem on Linux or Mac (even with Dark theme). Also working fine on Windows with the light theme.
This issue was reported to us some time ago see:
I am using jline and the Apache karaf console a lot. When I start karaf from a linux terminal I have all the features like history, inline editing, completion. These work by using the tab and cursor keys.
I think these are ansi key sequences but I am not sure.
The big problem in eclipse is that in the console all these special keys do not seem to get forwarded to my application. So all the nice features of jline and the karaf shell are lost.
Would it be possible in a similar way as to display the ansi sequences also be possible to forward the keys? If this is the wrong place to add this then I would be very happy about any pointers to where to ask this.
Christian
With the new Eclipse the Console isn't any longer colored. Perhaps there is an option gone?
I tried with Eclipse Version: 2020-09 (4.17.0), Build id: 20200910-1200 the plugin. After installation I ran the testing application AnsiConTest. The console output doesn't yield any colors. I got <<<>>>. If I copy and paste the content of the debug/run console the characters are:
<<<�[;H�[;f�[;0H�[;0f�[;1H�[;1f�[;4H�[;4f�[;42H�[;42f�[0;H�[0;f�[0;0H�[0;0f�[0;1H�[0;1f�[0;4H�[0;4f�[0;42H�[0;42f�[1;H�[1;f�[1;0H�[1;0f�[1;1H�[1;1f�[1;4H�[1;4f�[1;42H�[1;42f�[4;H�[4;f�[4;0H�[4;0f�[4;1H�[4;1f�[4;4H�[4;4f�[4;42H�[4;42f�[42;H�[42;f�[42;0H�[42;0f�[42;1H�[42;1f�[42;4H�[42;4f�[42;42H�[42;42f>>>
Have you already try/think to contribute your code in this form or in a more adapted way to the eclipse platform project ?
If yes, I suppose that was a failure as we still not have an ANSI support by default in eclipse, could you tell what happened ?
If no, is there any reasons about that ?
It seems there are community needs about that for a long time and the associated bug is marked as "help-wanted".
Being able to directly modify code in the platform could even make this bug #3 fix easier ?
Would be great if copy/paste form the console view (with ANSI coloring) would skip the escape sequences, so that people could safely copy text from the console and paste it somewhere without getting all the escapes.
Maybe a preference for this would be good, in case someone needs the escape sequences. But the default setting should be "without escapes".
Hi, just discovered this. Installed in Eclipse Neon... reboot... in the Windows --> Prefs menu there is now an entry "Ansi Console"... which is "Enabled".
But this test program just printed out in black & white:
import org.fusesource.jansi.AnsiConsole;
import static org.fusesource.jansi.Ansi.*;
import static org.fusesource.jansi.Ansi.Color.*;
public class JansiExp {
public static void main(String[] args) {
AnsiConsole.systemInstall();
// System.out.println( ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" World").reset() );
System.out.println( ansi().eraseScreen().render("@|red Hello|@ @|green World|@") );
}
}
What am I doing wrong?
PS I also ran this in a console outside Eclipse (Cygwin)... the colours then worked fine.
I tried couple of times to upgrade it but I always got this error: "An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,net.mihai-nita.ansicon.plugin,1.3.1.201508091828
No repository found containing: org.eclipse.update.feature,net.mihai-nita.ansicon,1.3.1.201508091828"
I have: Eclipse Java EE IDE for Web Developers.
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
I also tried uninstalling the previous version and installing the current one in the repo, but still I get this error. Now I dont have AnsiCon in my Eclipse :(
I looekd at my log and here's a more detailed entry:
!ENTRY org.eclipse.equinox.p2.engine 4 4 2015-09-30 20:28:02.180
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2015-09-30 20:28:02.181
!MESSAGE session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2015-09-30 20:28:02.181
!MESSAGE No repository found containing: org.eclipse.update.feature,net.mihai-nita.ansicon,1.3.1.201508091828
!SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 0 2015-09-30 20:28:02.181
!MESSAGE No repository found containing: osgi.bundle,net.mihai-nita.ansicon.plugin,1.3.1.201508091828
eclipse.buildId=4.7.2.M20171130-0510
java.version=1.8.0_152
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
org.eclipse.equinox.p2.transport.ecf
Error
Tue May 22 14:37:35 CEST 2018
HTTP Server Unknown HTTP Response Code (302):http://www.mihai-nita.net/eclipse/content.xml
org.eclipse.ecf.filetransfer.BrowseFileTransferException: General connection error with response code=302 and header(0)=HTTP/1.1 302 Found
at org.eclipse.ecf.provider.filetransfer.browse.URLFileSystemBrowser.runRequest(URLFileSystemBrowser.java:134)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
In Eclipse Luna Release (4.4.0) Build id: 20140612-0600 on Windows 7
I can only produce black on white output in the ANSI Console.
I am very curious how I could solve this problem.
Eclpse setup: Windows -> Preferences -> Ansi Console -> Enabled, Use Windows color mapping, Color palette: Windows XP command prompt.
package testprog;
import static org.fusesource.jansi.Ansi.ansi;
import static org.fusesource.jansi.Ansi.Color.GREEN;
import static org.fusesource.jansi.Ansi.Color.RED;
import org.fusesource.jansi.AnsiConsole;
public class AnsiKonsoleTestJansi {
public static void main(String[] args) {
// Test with Jansi
AnsiConsole.systemInstall();
System.out.println(ansi().isEnabled());
System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" World")
.reset());
System.out.println(ansi().eraseScreen().render("@|red Hello|@ @|green World|@"));
// Direct Test
System.out.println("Hello \u001b[1;31mred\u001b[0m world!");
}
}
Gradle Dependency for this
org.fusesource.jansi:jansi:1.11
Output black on white:
true
Hello World
Hello World
Hello red world!
I've tried using this to display colored output from GCC, but ran into two bugs:
[K
sequence (erase end of line) is not supported and remains visible.Eclipse 4.5.0, Linux.
Getting this error after installing plugin to eclipse-based IDE (S32K design studio for arm).
But anyway thank you for your plugin.
An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: binary,com.nxp.s32ds.arm.ide.collaterals,2.0.0.202001161658
No repository found containing: binary,com.nxp.s32ds.arm.ide.configuration,2.0.0.202001161658
No repository found containing: binary,com.nxp.s32ds.arm.sdk.pex.win32.win32.x86,1.0.0.202001161613
No repository found containing: binary,com.nxp.s32ds.arm.sdk.s32k1xx_3.0.0.win32.win32.x86,1.0.0.202001161613
No repository found containing: binary,com.nxp.s32ds.brc.arm.earmv7.gcc49_2015q3.win32.win32.x86,4.9.0.201912260953
No repository found containing: binary,com.nxp.s32ds.brc.arm.earmv7.win32.win32.x86,6.3.0.201912101307
No repository found containing: binary,com.nxp.s32ds.brc.arm.ewl2.gcc49,15.1.0.201912260953
No repository found containing: binary,com.nxp.s32ds.brc.arm.ewl2.gcc63,15.1.0.201912101307
No repository found containing: binary,com.nxp.s32ds.brc.cll.win32.win32.x86,1.0.0.201911141135
No repository found containing: binary,com.nxp.s32ds.brc.gnu.msys2.win32.win32.x86,2.6.0.202001141631
No repository found containing: binary,com.nxp.s32ds.brc.mqx.core.win32.win32.x86,4.2.0.201911111718
No repository found containing: binary,com.nxp.s32ds.brc.pne.drivers.win32.win32.x86,12.7.0.201909031802
No repository found containing: binary,com.nxp.s32ds.brc.segger.drivers.win32.win32.x86,1.0.0.201910151134
No repository found containing: binary,com.nxp.s32ds.doc.arm.resources,2.0.0.202001161621
No repository found containing: binary,com.nxp.s32ds.arm.ide.product.executable.win32.win32.x86,2.0.0.202001161704
The ANSI console seems to use black from its pallette whenever the escape code regular expression does not match. This means that the default color for outputs is always black. I use a dark theme in Eclipse and this behaviour makes text pretty much unreadable.
Suggestion: Do not use black as default color when there are no ANSI codes in effect (either per default or as a configuration option) but rather use the default text foreground color.
When I try to install via marketplace or using the update site, I get this error. This worked on some other computers I have, so not sure what's wrong. Is it possible to make the update site available as a download?
javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:259)
at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Hi there,
Would you be able to export the package mnita.ansiconsole.participants in your plugin definition. This would allow me to reuse your stylelistener for other purposes.
If you're curious, this is about making the REPL of the Clojure plugin be able to display ansi codes:
I've pushed the changes I've made to CCW there:
https://github.com/fmjrey/ccw/commits/ansi-console
The CCW plugin script that reuse your listener is there:
https://gist.github.com/fmjrey/9889500
It's still a bit experimental though...
Cheers,
François
The project could not be analyzed because of build errors. Please review the error messages here. Another build will be scheduled when a change to a manifest file* occurs. If the build is successful this issue will be closed, otherwise the error message will be updated.
This is an automated GitHub Issue created by Sonatype DepShield. GitHub Apps, including DepShield, can be managed from the Developer settings of the repository administrators.
* Supported manifest files are: pom.xml, package.json, package-lock.json, npm-shrinkwrap.json, Cargo.lock, Cargo.toml, main.rs, lib.rs, build.gradle, build.gradle.kts, settings.gradle, settings.gradle.kts, gradle.properties, gradle-wrapper.properties, go.mod, go.sum
Is there any way to do this?
If you run jboss from the terminal on Mac OS X, the entire DEBUG output is green:
However, if I run it from Eclipse, only the first two lines of DEBUG output are colorized:
With ANSI codes, I think it looks like this:
��[0m07:38:15,213 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
�[0m�[0m07:38:15,343 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
�[0m�[0m07:38:15,395 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS 7.2.0.Final "Janus" starting
�[0m�[32m07: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
�[0m�[32m07: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!
Is it feasible to support cursor movement? see de-jcup/egradle#107 (comment)
The eclipse installation URL https://www.mihai-nita.net/eclipse
reports a database error:
Error establishing a database connection
So currently it cannot be installed via Eclipse Marketplace or the add new software link.
I tried variations of https://www.mihai-nita.net/eclipse
to no avail. What is the current update site?
When you start Eclipse the icon in the title-bar of the console is enabled (colored).
If you go to Preferences --> Ansi Console the "Enabled" checkbox is checked.
But if you run something that outputs something with escapes, you can see the escape codes, and there are no colors.
If you click the icon to disable-enable, then run your app, it all work ok.
But the next time you start Eclipse this is (again) lost.
It would be nice if ANSI console has a option to setup a environment var TERM with something.
I have my colour appender for log4j that uses TERM to detect if the console output accepts ANSI escape sequences, and would be nice if I don't need to setup it manually for every project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.