It seems that installing ScalaIDE somehow disable (or redirect somewhere I can't find) prints in the Eclipse Application console (i.e., console of the development platform when I run my eclipse plug-ins).
If I have a Java plug-in which throw an exception or print to the sysout in my runtime workbench, without ScalaIDE, everything works fine and I get messages in the Eclipse Application console of my developement Eclipse. However, when I install ScalaIDE from the update site, I can't see my messages anymore (either in Debug or Run mode). This makes debug even of my non-scala plugins pretty hard, since I can't even get my exceptions stack traces.
Here is the process I followed to "isolate" the problem:
-Install a fresh new standard Eclipse (https://www.eclipse.org/downloads/packages/eclipse-standard-432/keplersr2)
-Create a plug-in project using the hello world template.
-Place a sysout or throw an exception in the SampleAction.run
-Run the plug-in project as an Eclipse Application, you should have a Sample Menu in the menu bar with a Sample Acion button, click it.
-Back in the development Eclipse, you should have your message or exception in the console.
-Install ScalaIDE via the update site (http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site)
-Run the plug-in project and click Sample Action
-Back in the development Eclipse, I have no more message in my "Eclipse Application" console, and I can't find any console conatining them.
Did I missed something (ScalaIDE configuration somewhere, "hidden" console)? Anyone already encoutered this behavior?
If I have a Java plug-in which throw an exception or print to the sysout in my runtime workbench, without ScalaIDE, everything works fine and I get messages in the Eclipse Application console of my developement Eclipse. However, when I install ScalaIDE from the update site, I can't see my messages anymore (either in Debug or Run mode). This makes debug even of my non-scala plugins pretty hard, since I can't even get my exceptions stack traces.
Here is the process I followed to "isolate" the problem:
-Install a fresh new standard Eclipse (https://www.eclipse.org/downloads/packages/eclipse-standard-432/keplersr2)
-Create a plug-in project using the hello world template.
-Place a sysout or throw an exception in the SampleAction.run
-Run the plug-in project as an Eclipse Application, you should have a Sample Menu in the menu bar with a Sample Acion button, click it.
-Back in the development Eclipse, you should have your message or exception in the console.
-Install ScalaIDE via the update site (http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site)
-Run the plug-in project and click Sample Action
-Back in the development Eclipse, I have no more message in my "Eclipse Application" console, and I can't find any console conatining them.
Did I missed something (ScalaIDE configuration somewhere, "hidden" console)? Anyone already encoutered this behavior?
Leave a comment
Yes, Scala IDE has its own logging, to a different file. And by default, it grabs the standard out/err data.
It can be configured in the
We may want to review this default, try to make sbt and the compiler less chatty in non-development mode.
It can be configured in the
preferences > Scala > Logging
. Uncheck Redirect standard out/err to log file
.We may want to review this default, try to make sbt and the compiler less chatty in non-development mode.
on 2014-03-12 10:40 *
By clementgguy
Thanks for your quick answer ;)
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|