IntelliJ Play2和Scala插件不兼容。使IntelliJ 12不再按预期工作 [英] IntelliJ Play2 and Scala plugins are not compatible. Makes IntelliJ 12 no longer work as expected

查看:171
本文介绍了IntelliJ Play2和Scala插件不兼容。使IntelliJ 12不再按预期工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将IntelliJ(12.1.4)升级到新的Play 2.0支持(0.5.54)插件,发生了两件事:

I upgraded my IntelliJ(12.1.4) to the new Play 2.0 Support(0.5.54) plugin and two things happened:


  1. IntelliJ不再重新编译我的.scala类,这意味着如果
    我将例如一个方法的签名从def(s1:
    String)= {}更改为def某事(s1: String,s2:String)= {}我在第一个参数之后得到一个
    错误。我运行应用程序从
    终端播放 debug~run 然后应用程序重新编译
    没有问题。

  1. IntelliJ no longer recompiles my .scala classes, this meaning that if I e.g change the signature of a method from def something(s1: String) = {} to def something(s1: String, s2: String) = {} I get an error that ) is expected after the first param. I run the app from the terminal with play debug ~run and there the app recompiles without a problem.

scala.html未正确评估,我得到了很多语法
错误。颜色编码也是错误的。我尝试将
Scala插件更改为每晚构建(0.10.281),如
中所示评论但它仍然不起作用。

The scala.html are not evaluated properly and I get a lot of syntax errors. The color encoding is also wrong. I tried to change the Scala plugin to the nightly build(0.10.281) as suggested in the comments but it still doesn't work.

这是疯狂的坏因为它使IntelliJ的工作变得痛苦和适得其反。
报告了一个错误: http://youtrack.jetbrains.com/issue/SCL -5749 但我应该在此期间做多少
?有人解决了这个问题吗?

This is crazy bad since it makes working with the IntelliJ painful and counterproductive. There is a bug reported: http://youtrack.jetbrains.com/issue/SCL-5749 but what should I do in the meantime? Anybody solved this issue?

推荐答案

对于我来说,使用scala版本0.10.279的play2.0版本0.2.49可以解决问题。
使用其他版本我以太获取错误,或者我的IDE无法正常工作。

For me play2.0 version 0.2.49 with scala version 0.10.279 does the trick. With the other versions I ether get bugs, or my IDE just doesn't work correct.

链接播放插件:http://plugins.jetbrains.com/plugin/download?pr=&updateId=13272

链接到scala插件: http:// plugins。 jetbrains.com/plugin/download?pr=&updateId=13504

link to scala plugin: http://plugins.jetbrains.com/plugin/download?pr=&updateId=13504

说明:

1下载.zip(不提取)

1 download the .zip (do not extract)

2确保IDE文件夹中没有播放或scala插件(C:\Program Files(x86) \ JetBrains\IntelliJ IDEA 12.1.2 \plugins)

2 make sure there are no play or scala plugins in your IDE folder (C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.2\plugins)

3操作IDE并打开插件菜单。 (文件 - >设置... - >插件

3 op the IDE and open the plugin menu. (file -> settings... -> plugins

4单击从磁盘安装按钮,然后选择播放zip文件和scala zip文件。(你不要不需要在插件列表中禁用播放和scala插件,它们会在IDE重启后被交换

4 click the button "install from disk" and select the play zip file and the scala zip file. (you don't need to disable the play and scala plugin in the plugin list, they get swapped after the IDE restart

5重新启动IDE

6(可选)如果有效则报告此处

6(optional) report back here if it worked or not

这篇关于IntelliJ Play2和Scala插件不兼容。使IntelliJ 12不再按预期工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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