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

installed it, enabled it, restarted eclipse multiple times and cannot get it to work #85

Open mihnita opened 2 years ago

mihnita commented 2 years ago

This issue is created from the comments on the website, at https://mihai-nita.net/2013/06/03/eclipse-plugin-ansi-in-console/


alex says:
2022/10/08 at 04:51

Hi Mihai,

I have installed it, enabled it, restarted eclipse multiple times and cannot get it to work colors in my console. Though if I run your hellocolor class, it does show the ‘Hello red world!’ with text red actually in bold red color, so it should work, but it does not. Any suggestions please? I am using Eclipse Version: 2022-03 (4.23.0) Build id: 20220310-1457


alex says:
2022/10/08 at 04:53

Earlier I had 2022-09 installed where the plugin comes default and does not need explicit installation – In 2022-09 also it was not working. And thats the reason I had degraded to 2022-03 version but that did not color the logs either. :(

mihnita commented 2 years ago

Yes, if the hellocolor works it means the plugin is installed properly, is enabled, and works.

The most likely explanation is that your program uses something that checks if the console is a real console (the Eclipse one is not), and disables outputing ansi escapes.

For example you use something like jansi. Or it is a logging system (which often use jansi)

If that is the case "all we have to do" is figure out what component does that, and force it to output ansi escapes.

What kind of an application do you have? C / C++ / Java / something else? Plain Java, Maven? Normal run, or JUnit?

And what is the behavior when it's not working? The console shows clean plain text? Or you see the escape codes?