为什么IDEA 14报告“无法加载方面”Scala“:未知类型的方面”scala“”? [英] Why does IDEA 14 report "Cannot load facet "Scala": Unknown type of facet "scala""?
问题描述
我正在尝试在Intellij IDEA 14中运行play框架应用程序。
I'm trying to run play framework application in Intellij IDEA 14.
我安装了Scala插件并且需要所有jar文件。
I installed the Scala plugin and have all jar files required.
然而在项目结构 - >内Facet
,我在添加列表中找不到Scala方面。并且错误:
However inside the Project-Structure -> Facet
, I cannot find the Scala facet in the adding list. And also it errors with:
无法加载方面Scala:未知类型的方面scala
Cannot load facet "Scala": Unknown type of facet "scala"
我试图用SBT创建一个新项目,但我仍然无法在添加列表中找到Scala方面。虽然我可以编译Scala源文件。
I tried to create a new project with SBT, still I cannot find the Scala facet in the adding list. Although I could compile Scala source files.
Scala插件有什么问题吗?或者我没有得到IntelliJ IDEA 14的配置吗?
Is there anything wrong with the Scala plugin? Or I didn't get configuration for IntelliJ IDEA 14 right?
推荐答案
Scala SDK库
在新的IntelliJ 14.1+中,Scala facet已替换为 Scala SDK 库,除了标准的Scala库之外,还有一个Scala编译器的类路径:
Scala SDK library
In new IntelliJ 14.1+ the Scala facet have replaced as Scala SDK library that, in addition to the standard Scala libraries, has a classpath to Scala compiler:
如需更多更新,请按照 IntellJ的博客 。
For more updates follow as per IntellJ's blog.
这篇关于为什么IDEA 14报告“无法加载方面”Scala“:未知类型的方面”scala“”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!