Error importing gradle project into Eclipse

issue-acknowledged

(Raffi Khatchadourian) #1

I am trying to import elasticsearch into an Eclipse workspace using the import gradle project feature. However, I am receiving the following error:

Synchronize Gradle builds with workspace failed due to an error configuring Eclipse.
Cannot add nature org.eclipse.jdt.groovy.core.groovyNature to Eclipse project :build-tools.

Problems encountered while setting project description.
org.eclipse.buildship.core.GradlePluginsRuntimeException: Cannot add nature org.eclipse.jdt.groovy.core.groovyNature to Eclipse project :build-tools.
        at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceOperations.addNature(DefaultWorkspaceOperations.java:233)
        at org.eclipse.buildship.core.workspace.internal.ProjectNatureUpdater.addNaturesNewInGradleModel(ProjectNatureUpdater.java:61)
        at org.eclipse.buildship.core.workspace.internal.ProjectNatureUpdater.updateNatures(ProjectNatureUpdater.java:53)
        at org.eclipse.buildship.core.workspace.internal.ProjectNatureUpdater.update(ProjectNatureUpdater.java:91)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.synchronizeOpenWorkspaceProject(SynchronizeGradleBuildOperation.java:209)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.addNewEclipseProjectToWorkspace(SynchronizeGradleBuildOperation.java:265)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.synchronizeNonWorkspaceProject(SynchronizeGradleBuildOperation.java:247)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.synchronizeGradleProjectWithWorkspaceProject(SynchronizeGradleBuildOperation.java:179)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.synchronizeGradleBuildWithWorkspace(SynchronizeGradleBuildOperation.java:142)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.access$000(SynchronizeGradleBuildOperation.java:107)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation$1.run(SynchronizeGradleBuildOperation.java:124)
        at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
        at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5409)
        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5366)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildOperation.run(SynchronizeGradleBuildOperation.java:121)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildsJob.synchronizeBuild(SynchronizeGradleBuildsJob.java:78)
        at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildsJob.runToolingApiJob(SynchronizeGradleBuildsJob.java:69)
        at org.eclipse.buildship.core.util.progress.ToolingApiJob$1.run(ToolingApiJob.java:73)
        at org.eclipse.buildship.core.util.progress.ToolingApiInvoker.invoke(ToolingApiInvoker.java:63)
        at org.eclipse.buildship.core.util.progress.ToolingApiJob.run(ToolingApiJob.java:70)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.runtime.CoreException: Problems encountered while setting project description.
        at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1256)
        at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1281)
        at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceOperations.addNature(DefaultWorkspaceOperations.java:230)
        ... 22 more

Gradle Version: 2.13
Operating System: Ubuntu
Is this a regression? No.


How to run GWT Super Dev Mode code server with Buildship?
(Stefan Oehme) #2

Hi Raffi,

we are aware of this issue and will address it in the next bugfix release of Buildship.

Cheers,
Stefan


(Donát Csikós) #3

Hi Raffi,

The issue has been fixed in the Buildship 1.0.17 release.


(Raffi Khatchadourian) #4

Great, thanks for the update.