Announcement Announcement Module
Collapse
No announcement yet.
Serious error with STS Gradle in External Tools Configuration...I'm so stuck, help!! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serious error with STS Gradle in External Tools Configuration...I'm so stuck, help!!

    I'm running into a very serious issue in trying to run a gradle build from the External Tools Configuration. Whenever I try to create a new Gradle build configuration, a dial pops up at me and says:

    An error has occurred. See error log for more details.
    Illegal Gradle launch configuration, neither project nor project location is defined

    See log at end of this post. When I then select a project, the model get built and I can see and select the tasks, but then I can't do anything from there because the buttons remain disabled. I can't apply, revert, or run.

    I'm absolutely clueless on how this happened (I had it all working great for so many days), and how to get around it. I even tried reinstalling my entire eclipse, creating a new workspace, new project, and so on. What could've possibly been corrupted??

    Here's the exception:

    !SESSION 2012-02-10 14:16:37.220 -----------------------------------------------
    eclipse.buildId=2.8.1.201111221000-RELEASE
    java.version=1.7.0_01
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product com.springsource.sts.ide
    Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide

    !ENTRY org.eclipse.jface 4 2 2012-02-10 14:21:27.429
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    !STACK 0
    java.lang.IllegalArgumentException: Illegal Gradle launch configuration, neither project nor project location is defined
    at org.eclipse.core.runtime.Assert.isLegal(Assert.jav a:63)
    at com.springsource.sts.gradle.core.launch.GradleLaun chConfigurationDelegate.getProject(GradleLaunchCon figurationDelegate.java:78)
    at com.springsource.sts.gradle.ui.launch.GradleLaunch TasksTab.initializeFrom(GradleLaunchTasksTab.java: 343)
    at org.eclipse.debug.ui.AbstractLaunchConfigurationTa bGroup.initializeFrom(AbstractLaunchConfigurationT abGroup.java:86)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupWrapper.initializeFrom (LaunchConfigurationTabGroupWrapper.java:194)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupViewer.displayInstance Tabs(LaunchConfigurationTabGroupViewer.java:751)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupViewer$8.run(LaunchCon figurationTabGroupViewer.java:623)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:70)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupViewer.inputChanged(La unchConfigurationTabGroupViewer.java:640)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupViewer.setInput0(Launc hConfigurationTabGroupViewer.java:602)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationTabGroupViewer.setInput(Launch ConfigurationTabGroupViewer.java:578)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationsDialog.handleLaunchConfigurat ionSelectionChanged(LaunchConfigurationsDialog.jav a:941)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationsDialog$3.selectionChanged(Lau nchConfigurationsDialog.java:560)
    at org.eclipse.jface.viewers.StructuredViewer$3.run(S tructuredViewer.java:888)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil. java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnab le.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.firePos tSelectionChanged(StructuredViewer.java:886)
    at org.eclipse.jface.viewers.StructuredViewer.setSele ction(StructuredViewer.java:1726)
    at org.eclipse.jface.viewers.TreeViewer.setSelection( TreeViewer.java:1139)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationView.handleConfigurationAdded( LaunchConfigurationView.java:283)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationView.access$1(LaunchConfigurat ionView.java:272)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationView$2.run(LaunchConfiguration View.java:261)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:4140)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3757)
    at org.eclipse.jface.window.Window.runEventLoop(Windo w.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:8 01)
    at org.eclipse.debug.internal.ui.launchConfigurations .LaunchConfigurationsDialog.open(LaunchConfigurati onsDialog.java:1132)
    at org.eclipse.debug.ui.DebugUITools$2.run(DebugUIToo ls.java:579)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:70)
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfig urationDialogOnGroup(DebugUITools.java:587)
    at org.eclipse.debug.ui.DebugUITools.openLaunchConfig urationDialogOnGroup(DebugUITools.java:521)
    at org.eclipse.debug.ui.actions.OpenLaunchDialogActio n.run(OpenLaunchDialogAction.java:81)
    at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
    at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:58 4)
    at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:4165)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3754)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2696)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2660)
    at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2494)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench. java:674)
    at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:667)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:123)
    at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:14 10)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1 386)
Working...
X