kelemen / netbeans-gradle-project

This project is a NetBeans plugin able to open Gradle based Java projects. The implementation is based on Geertjan Wielenga's plugin.
172 stars 57 forks source link

if the project has a unreachable repository the plugin hungs. #354

Open silverax opened 7 years ago

silverax commented 7 years ago

using a unreachable url in the project repository. netbeans keep loading forever and the task can not be canceled.

kelemen commented 7 years ago

What do you mean by "using a unreachable url in the project repository"? Do you have such an url added in your build scripts? If so, then it is most likely a Gradle issue.

silverax commented 7 years ago

repositories {
maven { url "http://ubuntu/public/maven/" } } ubuntu is a local server (down for the moment)

kelemen commented 7 years ago

Then I would think, that Gradle just takes a long time to timeout. The plugin just calls Gradle to resolve the configurations.

kelemen commented 7 years ago

As for cancellation: I have just checked the sources, and the plugin does not set the CancellationToken for Gradle. I can work on that, if it helps.