Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mihnita opened this issue Oct 12, 2022 · 1 comment
Assignees
Labels

Comments

@mihnita
Copy link
Owner

mihnita commented Oct 12, 2022

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
Copy link
Owner Author

mihnita commented Oct 12, 2022

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?

@mihnita mihnita self-assigned this Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant