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 As > Groovy Script fails when script is not part of project classpath #1163

Closed
eric-milles opened this issue Sep 18, 2020 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

When a groovy script is located outside of a source folder, Run As > Groovy Script fails when checking if test classpath entries should be included.

Java Model Exception: Java Model Status [<project root> [in Bugs] is not on its project's build path]
	at org.eclipse.jdt.internal.core.PackageFragmentRoot.getResolvedClasspathEntry(PackageFragmentRoot.java:630)
	at org.codehaus.groovy.eclipse.launchers.AbstractGroovyLaunchShortcut.hasTestAttribute(AbstractGroovyLaunchShortcut.java:423)
	at org.codehaus.groovy.eclipse.launchers.AbstractGroovyLaunchShortcut.launchGroovy(AbstractGroovyLaunchShortcut.java:209)
	at org.codehaus.groovy.eclipse.launchers.AbstractGroovyLaunchShortcut.launchGroovy(AbstractGroovyLaunchShortcut.java:201)
	at org.codehaus.groovy.eclipse.launchers.AbstractGroovyLaunchShortcut.launch(AbstractGroovyLaunchShortcut.java:126)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:419)
	at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runInternal(LaunchShortcutAction.java:83)
	at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAction.java:135)

Original source: https://stackoverflow.com/questions/63747262/run-as-groovy-script

@eric-milles eric-milles added this to the v3.9.0 milestone Sep 18, 2020
@eric-milles eric-milles self-assigned this Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant