Groovy: compiler mismatch after installation

时光总嘲笑我的痴心妄想 提交于 2019-12-05 08:12:04

You can also add an extension from the Spring Dashboard and keep using the "same" workspace.

On the sidebar of Dashboard click on "IDE EXTENSIONS".
Choose the groovy compiler that you need and click install.

After that you can customize each project to compile with a version of your choice.

Click on a project and then Project>Properties>Groovy Compiler and choose the version from the dropdown menu.

For example the latest version of Grails(2.4.0) is "buggy" under GGTS(3.5.1) until you install Groovy 2.3 Compiler extension and change your Projects properties accordingly.

Grails 2.4 doc whatsNew

UPDATE for Grails 3.0

For Grails 3.0.x you should install and use Groovy 2.4 Compiler

Grails 3.0 doc whatsNew

I got same error but following option resolved it for me Right Click on Project , Go to Groovy -> Fix Compiler Mismatch Problems. Click on it , it asks for selecting the correct version of compiler select it , clean-build your application and restart it , it should work fine.

Lari Hotari

I'm also seeing this bug. I had to remove other compiler versions from the Eclipse configuration in order to get it working.

It's possible to pass a command line parameter for choosing the compiler version, but that didn't work for me. I hit this bug after doing that: http://jira.codehaus.org/browse/GRECLIPSE-1642

Basicly I have disabled the other Groovy compiler version by removing the lines from this file: (GGTS home directory)/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info

I'm using separate Eclipse config directories for different workspaces: https://stackoverflow.com/a/7202782/166062 This way I can work on Groovy 2.2 and Groovy 2.1 projects without having 2 complete installations of GGTS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!