Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3787

Can't create groovy project from existing source code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.5.0.RELEASE
    • Fix Version/s: 3.5.1.RELEASE
    • Component/s: GRAILS
    • Labels:
      None
    • Environment:
      Win7 64bit

      Description

      I've installed GGT using archived update site springsource-tool-suite-3.5.0.RELEASE-e4.3.2-updatesite.zip and this version of eclipse eclipse-jee-kepler-SR2-win32-x86_64.zip.
      When I try to create groovy project based on existing project I receve this exception:

      !ENTRY org.eclipse.jdt.ui 4 0 2014-04-10 10:32:05.633
      !MESSAGE Error in JDT Core during AST creation
      !STACK 0
      java.lang.IllegalArgumentException
      	at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2845)
      	at org.eclipse.jdt.core.dom.ASTConverter.setTypeAnnotationsAndSourceRangeOnArray(ASTConverter.java:3488)
      	at org.eclipse.jdt.core.dom.ASTConverter.convertToArray(ASTConverter.java:3234)
      	at org.eclipse.jdt.core.dom.ASTConverter.convertType(ASTConverter.java:3696)
      	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:618)
      	at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:207)
      	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3026)
      	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1442)
      	at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:295)
      	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1209)
      	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809)
      	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:544)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:537)
      	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:480)
      	at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:170)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      

      and several NPEs. See full stack tarce in the attached file.

        Attachments

        1. ComputeLaunchTooltip_error.log
          3 kB
        2. GroovyClass_MainStub_error.log
          4 kB
        3. GroovyClass_VariableArgMethod_error.log
          7 kB
        4. IDE_Config.txt
          750 kB
        5. log.txt
          81 kB
        6. ST3787_Sample.zip
          9 kB

          Activity

            People

            Assignee:
            kdvolder Kris De Volder
            Reporter:
            og1001 Oleg Kedrov
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: