Comments (8)
Hmm... that worked just fine for me...
Check if the Gradle eclipse integration plugins in your Plug-in Registry view are these:
org.springsource.ide.eclipse.gradle.core (3.6.2.201410090835-RELEASE)
org.springsource.ide.eclipse.gradle.toolingapi (3.6.2.201410090835-RELEASE)
org.springsource.ide.eclipse.gradle.ui (3.6.2.201410090835-RELEASE)
org.springsource.ide.eclipse.gradle.ui.taskview (3.6.2.201410090835-RELEASE)
and also check if these are the ones that become active when you attempt to import your model.
Did you upgrade to Gradle 3.6.2 or installed STS 3.6.2 and then added Gradle to fresh installation of STS?
from eclipse-integration-gradle.
I have version 3.6.2.201410090835-RELEASE of the plug-ins. Looking at the installation history, I started with regular eclipse Java EE 4.4 and installed Gradle IDE 3.5.1.201404300713-RELEASE. I got eclipse updated, and Gradle IDE 3.6.0.201407080553-RELEASE, and finally 3.6.2.201410090835-RELEASE.
from eclipse-integration-gradle.
When you import the Gradle project into Eclipse, I assume you follow the import wizard, select Gradle Project and then find the folder on your file system where the Collections projects hierarchy is located. Once that is done you click on the "Build Model" button and then the exception occurs?
Is issue occurring all the time and blocking you completely? Looking at the code it's not yet clear why that issue is occurring... at least 100% of time.. perhaps there is a race condition, but it shouldn't be happening all the time it seems.
from eclipse-integration-gradle.
Yes, import gradle project, when I press build model I got an error saying to look at the log. The exception was copy-pasted from the .log file. (Edit: Yes, it happens 100% of the time)
Since it worked for you, I just started with a clean install Eclipse Luna SR1, installed gradle plugin 3.62, new workspace with new git clone... And now it works. Maybe some problem in the upgrade process?
from eclipse-integration-gradle.
We do get some issues on Gradle that occurred after upgrading Eclipse and Gradle eclipse plugin, but couldn’t pinpoint what exactly is going wrong… Every time it’s something different and very weird that has been tested before the release…
On Nov 10, 2014, at 15:55, i23098 [email protected] wrote:
Yes, import gradle project, when I press build model I got an error saying to look at the log. The exception was copy-pasted from the .log file.
Since it worked for you, I just started with a clean install Eclipse Luna SR1, installed gradle plugin 3.62, new workspace with new git clone... And now it works. Maybe some problem in the upgrade process?
—
Reply to this email directly or view it on GitHub #59 (comment).
from eclipse-integration-gradle.
Got it again... For some reason Gradle -> Refresh All was not working. So, I decided to remove the projects from the workspace and import them again, to see if it helps. Now, it won't import it again...
!ENTRY org.springsource.ide.eclipse.gradle.core 4 0 2014-11-15 12:25:07.941 !MESSAGE Gradle project hierarchy is inconsistent for '/home/ralmeida/workspace-collections/Collections' !STACK 0 java.lang.reflect.InvocationTargetException at org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:113) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Caused by: org.springsource.ide.eclipse.gradle.core.InconsistenProjectHierarchyException: Gradle project hierarchy is inconsistent for '/home/ralmeida/workspace-collections/Collections' at org.springsource.ide.eclipse.gradle.core.util.ExceptionUtil.inconsistentProjectHierachy(ExceptionUtil.java:82) at org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.getCachedModel(GradleModelProvider.java:339) at org.springsource.ide.eclipse.gradle.core.GradleProject.getGradleModel(GradleProject.java:634) at org.springsource.ide.eclipse.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:653) at org.springsource.ide.eclipse.gradle.ui.wizards.GradleImportWizardPageOne$11.doit(GradleImportWizardPageOne.java:516) at org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:105) ... 1 more Root exception: org.springsource.ide.eclipse.gradle.core.InconsistenProjectHierarchyException: Gradle project hierarchy is inconsistent for '/home/ralmeida/workspace-collections/Collections' at org.springsource.ide.eclipse.gradle.core.util.ExceptionUtil.inconsistentProjectHierachy(ExceptionUtil.java:82) at org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.getCachedModel(GradleModelProvider.java:339) at org.springsource.ide.eclipse.gradle.core.GradleProject.getGradleModel(GradleProject.java:634) at org.springsource.ide.eclipse.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:653) at org.springsource.ide.eclipse.gradle.ui.wizards.GradleImportWizardPageOne$11.doit(GradleImportWizardPageOne.java:516) at org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:105) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
from eclipse-integration-gradle.
The error means that gradle tooling is having problem creating a tooling api model for a project via its root project. This happens when some stored information in the project preference area links a given project to a root project, but when building a model for the root project then it can not find the project as a descendant of the root project.
Maybe the project hierarchy changed? Or maybe there is some problem in your settings.gradle defining sub-projects for your root project.
Before importing the project try maybe deleting the settings files in the .settings/gradle folder (this is where the information is stored). I suggest you try to delete all these .settings/gradle files in all your projects and then try importing them again.
from eclipse-integration-gradle.
This problem comes when the local version and project which has version.is different.
Basically every project has on task in build.gradle file called wrapper. This wraaper defines which version of gradle had been used in this project which is in gradle.properties.
When you have local version diifenernce and the version defined bye gradle wrapper is different then problms come.
Advice better to use same version by looking into gradle.properites file or use the project provided gradlew command which is going to download a gradle version required by project.
from eclipse-integration-gradle.
Related Issues (20)
- Could not find tools.jar HOT 1
- “refresh all” update the eclipse .project file by force
- Classpath sorting removes test folder HOT 1
- Gradle-STS-to-Buildship message HOT 2
- Fail to initialize EclipseModelBuilder in gradle 2.14.1 if "Use Custom Tooling Model" is checked. HOT 4
- Alternative Update Sites Link To AccessDenied XML HOT 1
- import Gradle project HOT 1
- Trying to import project HOT 1
- Tooling API version older than 3.0 in sts 3.9.1.201710100515-RELEASE HOT 2
- Mark Gradle's build directories as derived resources HOT 3
- http proxy Ineffective HOT 5
- ":..:DependentProject" not supported in settings.gradle HOT 1
- I don't have an extension tab HOT 2
- Gradle IDE upgrade from 3.6.4 to 3.7.0 fails for missing dependencies HOT 4
- What is the roadmap for this plugin with the presence of the BuildShip plugin? HOT 2
- Remap Jars to Gradle Projects ignores version HOT 5
- Offline installation requires HOT 4
- Gradle plugin trying to download gradle.zip from internet even though Gradle Home pointed to local folder HOT 6
- "Updating Gradle Classpath" happens during/after "Building workspace" HOT 1
- NPE during Eclipse Gradle project refresh HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse-integration-gradle.