Spring Tool Suite
  1. Spring Tool Suite
  2. STS-3495

Eclipse Grade plugin hangs when importing Gradle projects

    Details

    • Type: Bug Bug
    • Status: Reopened Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: GRADLE
    • Labels:
      None
    • Environment:

      Description

      When I attempt to import a Gradle project using the Eclipse plugin version 3.3.0.201307040643-RELEASE on Juno, the plugin hangs with no message at approximately 50% complete when building the model. There's no feed back, and the dialog's cancel button is disabled, so the only way out is to kill Eclipse. Invoking gradlew cleanEclipse eclipse works fine, so that is not related as best I can tell.

      1. gradle-tooling-api-test.log
        12 kB
        Boyd Meier
      2. jstack_hung_process_output.txt
        21 kB
        Boyd Meier
      3. jstackLombok0.12.1Kepler.log
        23 kB
        Ken Yee

        Activity

        Hide
        Roel Spilker added a comment -

        It.s been a while. In the meantime we've taken a look at potential locks in our classloader code and got rid of most, if not all, locks. Since this is relatively brittle code, we didn't yet make a new release, but if someone wants to test this, you can download a test-version at

        http://projectlombok.org/download-edge.html

        Show
        Roel Spilker added a comment - It.s been a while. In the meantime we've taken a look at potential locks in our classloader code and got rid of most, if not all, locks. Since this is relatively brittle code, we didn't yet make a new release, but if someone wants to test this, you can download a test-version at http://projectlombok.org/download-edge.html
        Hide
        Boyd Meier added a comment -

        Roel, I tried edge and did not have any luck with the model build. Sorry. Let me know if there's anything I can do to help out testing...

        Show
        Boyd Meier added a comment - Roel, I tried edge and did not have any luck with the model build. Sorry. Let me know if there's anything I can do to help out testing...
        Hide
        Grégory Bévan added a comment -

        I was stuck with this hanging problem when I used both Eclipse Gradle Plugin and Lombok, so I tried debugging the gradle tooling API.

        I've found that an uncaught exception results in not starting the gradle wrapper at all. The full description of the problem is available in a pull request of the gradle project

        https://github.com/gradle/gradle/pull/238

        The last version of Gradle should correct the problem with Lombok.

        I hope it helps and sorry for not reporting the correction before

        Show
        Grégory Bévan added a comment - I was stuck with this hanging problem when I used both Eclipse Gradle Plugin and Lombok, so I tried debugging the gradle tooling API. I've found that an uncaught exception results in not starting the gradle wrapper at all. The full description of the problem is available in a pull request of the gradle project https://github.com/gradle/gradle/pull/238 The last version of Gradle should correct the problem with Lombok. I hope it helps and sorry for not reporting the correction before
        Hide
        Kris De Volder added a comment -

        If someone can confirm this is working for them...
        I'd be happy to close this.

        Thanks Gregory for the heads up and the fix!

        Show
        Kris De Volder added a comment - If someone can confirm this is working for them... I'd be happy to close this. Thanks Gregory for the heads up and the fix!
        Hide
        Michael Whitis added a comment -

        Kris,

        Not sure if it helps, but I can confirm that Gregory's fix worked for me. I was experiencing the same issue with Gradle and Lombok and updated as recommended in the linked github thread. Everything is working now.

        Thanks,

        Mike

        Show
        Michael Whitis added a comment - Kris, Not sure if it helps, but I can confirm that Gregory's fix worked for me. I was experiencing the same issue with Gradle and Lombok and updated as recommended in the linked github thread. Everything is working now. Thanks, Mike

          People

          • Assignee:
            Kris De Volder
            Reporter:
            Boyd Meier
          • Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated:
              First Response Date: