-
Notifications
You must be signed in to change notification settings - Fork 14
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
Dependencies not loading #12
Comments
Is there anything in the log on the right side? Also, what versions of Java and Gradle are you using for your project? |
There's a blank panel on the right hand side of the Gradle View box, with nothing in it (screenshot) - is this where the log should be ? I'm using Java 1.7 for the project. Installed on this machine are 1.7.0_55 and 1.6.0_65, I've tried forcing IDEA to run under 1.6 and 1.7 but with no change in the Gradle View problem. The project gradle settings are "Use default gradle wrapper". I'm not sure if this means use the project's gradle wrapper or IDEA's built-in gradle, but I suspect the latter (which I think is 2.2). This particular Web project was initially a Maven project, converted using Gradle 2.4 using "gradle init". I've also tried initialising a new IDEA project using a "default gradle wrapper" and also a "local gradle distribution" (2.4) both to no avail - same problem with Gradle View in both cases. |
same here on WIndows, but: log tells me:
using wrapper, not using JDK in JAVA_HOME . Perhaps this helps to find some causes Update another project fails with
while JRE path seems to be wrong. It's installed in |
I'm having the same problem with the gradle view plugin with this java home mismatch as reported above. I've used this plugin successfully on other projects so I'm not sure if this is something related to a recent IDEA version (im on 2016.1.3)
|
So looking at DependencyUtil I see that it just uses the java home that is in the environment variable. When I cat proc//environ for IDEA I actually don't see JAVA_HOME set...which I don't know why that is... In any case a workaround that worked was modifying my idea64.vmoptions to add: The SDK selected for this project is the same one /usr/lib/jvm/java-8-oracle. Surely there is an easy way to get the java home path from IDEA and use that instead of just relying on JAVA_HOME ? If I get some time I'll dig around and submit a pull request. |
having the same problem with JAVA_HOME not being set on OS X. This plugin is the only one that needs this var being set. |
Is this issue resolved? |
Installed on IDEA 14.1.3 on OS X 10.9. Seemed to install OK, and Gradle View window opens OK, but list of project dependencies does not complete - it just says "Loading..." and doesn't go any further.
The text was updated successfully, but these errors were encountered: