Groovy:安装后编译器不匹配 [英] Groovy: compiler mismatch after installation

查看:163
本文介绍了Groovy:安装后编译器不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 grails 2.3.4 eclipse grails插件(GGTS)。但是,安装后我创建了一个项目,并得到:

 描述资源路径位置类型
Groovy:编译器不匹配项目级别是:2.1工作空间级别是1.8
项目期望的Groovy编译器级别与工作空间编译器级别不匹配。
转到项目属性 - > Groovy编译器为此项目设置Groovy编译器级别测试测试Groovy编译器不匹配问题

我试图更改编译器首选项,但没有改变...





我非常感谢您的回答!

解决方案

您也可以从Spring Dashboard中添加一个扩展,并继续使用相同工作区。



在Dashboard的侧栏上单击IDE EXTENSIONS。<
选择您需要的groovy编译器并单击install。


然后,您可以自定义每个项目以便使用您选择的版本进行编译。
$ b 点击一个项目,然后点击Project> Properties> Groovy Compiler,然后从下拉菜单中选择版本。



例如最新版本的Grails(2.4.0)是GGTS(3.5.1)中的buggyunt如果您安装Groovy 2.3编译器扩展并相应地更改您的Projects属性。




Grails 3.0 docs whatsNew



Grails 3.0的更新



对于Grails 3.0.x,您应该安装并使用Groovy 2.4 Compiler

Grails 3.0 doc whatsNew


I am using grails 2.3.4 with the eclipse grails plugin(GGTS). However, after installation I created a project and got:

  Description   Resource    Path    Location    Type
    Groovy: compiler mismatch Project level is: 2.1 Workspace level is 1.8
    Groovy compiler level expected by the project does not match workspace compiler level. 
    Go to Project properties -> Groovy compiler to set the Groovy compiler level for this project   test        test    Groovy compiler mismatch problem

I tried to change the compiler preferences but nothing changes...

I really appreciate your answer!

解决方案

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

这篇关于Groovy:安装后编译器不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆