Community
Participate
Working Groups
in the latest stable build (nov 9) I get the following NPE when lanching a simple test.js file. Note that I am running this on top of the latest Eclipse 3.4 platform builds. I;ve never used the DLTK JS support so am not sure if I am using it right but debugging gets me this problem and running does not seem to do anything... Note also that originally I was getting an error looking for the DefaultRhinoRunner class from rhino.dbgp. I looked in that bundle and tweaked it to export the package including that class. this seemed to address the issue but I still do not see any output and cannot debug. This is the test file I'm using. function x() { var i; for( i=0; i<20; i++ ) { println( " " + i ); } return i; } var result = x(); !ENTRY org.eclipse.core.jobs 4 2 2007-11-26 15:33:55.509 !MESSAGE An internal error occurred during: "Launching test.js". !STACK 0 java.lang.NullPointerException at org.eclipse.dltk.launching.DebuggingEngineRunner.addDebugTarget(DebuggingEngineRunner.java:71) at org.eclipse.dltk.launching.DebuggingEngineRunner.initialize(DebuggingEngineRunner.java:96) at org.eclipse.dltk.internal.launching.debug.JavaScriptAndJDTDebuggerRunner.run(JavaScriptAndJDTDebuggerRunner.j ava:34) at org.eclipse.dltk.javascript.launching.JavaScriptLaunchConfigurationDelegate.runRunner(JavaScriptLaunchConfigu rationDelegate.java:25) at org.eclipse.dltk.launching.AbstractScriptLaunchConfigurationDelegate.launch(AbstractScriptLaunchConfiguration Delegate.java:799) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827) at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
cc'ing Darin for personal interest
Launching/debug with Rhino is broken when DLTK plugins delivered as JARs (normally). Current code assumed that plugins are delivered in unpacked form. Bug 211074 will address temporarily solution.
bulk version set: 0.95