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

Run configuration in Eclipse misbehaves #856

Open
sleyzerzon opened this issue Oct 4, 2015 · 0 comments
Open

Run configuration in Eclipse misbehaves #856

sleyzerzon opened this issue Oct 4, 2015 · 0 comments

Comments

@sleyzerzon
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant