Buildship 1.0.11 Refresh and Import Problem


(Steven Dick) #1

Since upgrading to Buildship 1.0.11 yesterday we can no longer successfully refresh dependencies in Eclipse. Deleting the Eclipse projects and re-importing the multi-project also reports the same error.

Environment:

Eclipse 4.5.2 on Windows 10 64-bit
Gradle 2.11 (same problem if I use 2.12)
Buildship 1.0.11
Java 1.8.0_77

The exception is:

java.lang.IllegalArgumentException: Path must include project and resource name: /HSMtApi
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2069)
	at org.eclipse.core.internal.resources.Container.getFolder(Container.java:201)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations$4.apply(DefaultWorkspaceGradleOperations.java:230)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations$4.apply(DefaultWorkspaceGradleOperations.java:225)
	at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:271)
	at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:226)
	at com.google.common.collect.FluentIterable.toList(FluentIterable.java:334)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.getSubProjectFolders(DefaultWorkspaceGradleOperations.java:225)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.markDerivedFolders(DefaultWorkspaceGradleOperations.java:249)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.synchronizeOpenWorkspaceProject(DefaultWorkspaceGradleOperations.java:158)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.synchronizeWorkspaceProject(DefaultWorkspaceGradleOperations.java:130)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.synchronizeGradleProjectWithWorkspaceProject(DefaultWorkspaceGradleOperations.java:120)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.atomicallySynchronizeGradleBuildWithWorkspace(DefaultWorkspaceGradleOperations.java:86)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations.access$000(DefaultWorkspaceGradleOperations.java:59)
	at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceGradleOperations$1.run(DefaultWorkspaceGradleOperations.java:67)
	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.DefaultWorkspaceGradleOperations.synchronizeGradleBuildWithWorkspace(DefaultWorkspaceGradleOperations.java:64)
	at org.eclipse.buildship.core.workspace.SynchronizeGradleProjectJob.runToolingApiJobInWorkspace(SynchronizeGradleProjectJob.java:77)
	at org.eclipse.buildship.core.util.progress.ToolingApiWorkspaceJob$1.run(ToolingApiWorkspaceJob.java:79)
	at org.eclipse.buildship.core.util.progress.ToolingApiInvoker.invoke(ToolingApiInvoker.java:55)
	at org.eclipse.buildship.core.util.progress.ToolingApiWorkspaceJob.runInWorkspace(ToolingApiWorkspaceJob.java:76)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

(Stefan Oehme) #2

Thank you for the report. We are aware of this issue and will publish a fixed version today.


(Stefan Oehme) #3

Buildship 1.0.12 has been released. You should be able to import your projects again after the update.