Eclipse: Errors occurred during the build of the Groovy / Grail project

I installed the GGTS plugin for eclipse kepler 3.5.1 RELEASE. I created a simple grail project. But during the construction of the project. Error receiving

Errors occurred during the build.
Errors running builder 'Java Builder' on project 'FirstApp'.
org.codehaus.groovy.runtime.StringGroovyMethods.plus (Ljava / lang / String; Ljava / lang / CharSequence;) Ljava / lang / String;

and if we saw in the markers, I found this error

Internal compiler error: java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.StringGroovyMethods.plus (Ljava / lang / String; Ljava / lang / CharSequence;) Ljava / lang / String; at
org.codehaus.groovy.grails.transaction.transform.TransactionalTransform.moveOriginalCodeToNewMethod (TransactionalTransform.groovy: 259)  
Config.groovy / FirstApp / grails-app / conf line 0 Java Problem

I am using feroda 17. Eclipse Kepler.

+4
source share
1 answer

Today we faced the same error, it turned out that the project created by GGTS has a groovy 2.3 compiler level, but the GGTS plugin is supported only up to the groovy compiler level 2.1.

The fix was to install the groovy 2.3 compiler for groovy -eclipse.

The compiler can be found in the "language and support tooling" heading in the extension browser, which is opened by clicking the "IDE Extensions" button on the STS dashboard.

, eclipse, . "preferrences > groovy > compiler", eclipse (, , ).

"groovy 2.3 groovy -eclipse" , IDE eclipse, , .

, .

+4

Source: https://habr.com/ru/post/1544093/


All Articles