ccw-ide / ccw

Counterclockwise is an Eclipse plugin helping developers write Clojure code
https://github.com/laurentpetit/ccw/wiki/GoogleCodeHome
Eclipse Public License 1.0
218 stars 49 forks source link

Run configuration in Eclipse misbehaves #856

Open sleyzerzon opened 8 years ago

sleyzerzon commented 8 years ago

When running a clojure file via an Eclipse Run configurations dropdown on the top toolbar the following error appears:

1

java.lang.ArrayIndexOutOfBoundsException: -1 at ccw.launching.LaunchUtils.getProgramArguments(LaunchUtils.java:78) at ccw.launching.LaunchUtils.getProgramArguments(LaunchUtils.java:156) at ccw.launching.LaunchUtils.getFilesToLaunchAsCommandLineList(LaunchUtils.java:172) at ccw.launching.ClojureLaunchDelegate.getProgramArguments(ClojureLaunchDelegate.java:330) at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:64) at ccw.launching.ClojureLaunchDelegate.launch(ClojureLaunchDelegate.java:231) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739) at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

eclipse.buildId=3.7.0.201506290652-RELEASE-e45 java.version=1.8.0_60 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product org.springsource.sts.ide -showlocation -vmC:\Java\jdk1.8.0_60 Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide -data E:\source\WebDevWithClojure -clean -showlocation -vmC:\Java\jdk1.8.0_60

Looks like the error is associated with an unchecked Run with REPL (see tooltip for detail) option under Repl settings group in the Run Configuration menu.

When the same clojure file is run via Run As | Clojure Application (preload file) via a right mouth click no exception happens and the program runs as expected.