Eager redirect of other plugins output
I am doing Eclipse plugin development in java and also use Scala for some components. After installing Scala Ide for eclise plugin, any Java plugin that I develop cannot write to the standard output.
For example, any System.out.println("Hello World"); will not show in the console; also, any exception stack trace will not show in the console. My impression is that any standard output simply does not show in the eclipse console.
I want to calrify that this beahviour manifests even with very simple plugin pojects, using no scala code, just java.(e.g. the default project generated using new plugin project in eclipse)
Alex
For example, any System.out.println("Hello World"); will not show in the console; also, any exception stack trace will not show in the console. My impression is that any standard output simply does not show in the eclipse console.
I want to calrify that this beahviour manifests even with very simple plugin pojects, using no scala code, just java.(e.g. the default project generated using new plugin project in eclipse)
Alex
Leave a comment
I can easily reproduce the problem by creating a new
Scala IDE provide it's own logging mechanism, and it is possible that the default configuration is a bit too aggressive: out-of-the-box, it redirect the output/error stream in its log file.
This can be configured in Preferences>Scala>Logging in your target Eclipse, by deselecting Redirect standard out/err to log file.
One more general solution, if you don't plan to develop plug-ins extending Scala IDE, is to disable Scala IDE in your target platform. This can be done in Preferences > Plug-in Development > Target Platform. Edit your platform, and in the Content tab, disable all the org.scala-ide plug-ins.
We need to check if we can/want improve our defaults.
Plug-in Project
with the Hello, World
template.Scala IDE provide it's own logging mechanism, and it is possible that the default configuration is a bit too aggressive: out-of-the-box, it redirect the output/error stream in its log file.
This can be configured in Preferences>Scala>Logging in your target Eclipse, by deselecting Redirect standard out/err to log file.
One more general solution, if you don't plan to develop plug-ins extending Scala IDE, is to disable Scala IDE in your target platform. This can be done in Preferences > Plug-in Development > Target Platform. Edit your platform, and in the Content tab, disable all the org.scala-ide plug-ins.
We need to check if we can/want improve our defaults.
on 2013-01-14 18:55 *
By alexandru.gyori
Thank you. Indeed, I do not need Scala in my target platform yet, so the second solution works for me.