Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IDEA 14 report "Cannot load facet "Scala": Unknown type of facet "scala""?

I'm trying to run play framework application in Intellij IDEA 14.

I installed the Scala plugin and have all jar files required.

However inside the Project-Structure -> Facet, I cannot find the Scala facet in the adding list. And also it errors with:

Cannot load facet "Scala": Unknown type of facet "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.

Is there anything wrong with the Scala plugin? Or I didn't get configuration for IntelliJ IDEA 14 right?

like image 743
NZHOU Avatar asked Dec 04 '14 15:12

NZHOU


People also ask

What happened to the Scala facet in IntelliJ?

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: For more updates follow as per IntellJ's blog. Thanks for contributing an answer to Stack Overflow!

Why can’t I compile my Scala project?

Why am I unable to compile my Scala project? In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press Ctrl+Alt+S to open Settings/Preferences dialog. From the options on the left, select Build, Execution, Deployment | Compiler | Scala | Scala Compiler Server.

Why my project JDK is not compatible with Scala or SBT?

In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press Ctrl+Alt+S to open Settings/Preferences dialog.

How do I fix out of memory in Scala?

To fix Out Of Memory issues with the Scala compiler, increase the heap size in the JVM maximum heap size field of the Scala compiler server settings located in File | Settings/Preferences | Languages & Frameworks. How do I migrate an IDEA-based Scala project to the sbt project?


1 Answers

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:

enter image description here

For more updates follow as per IntellJ's blog.

like image 86
Anton Dozortsev Avatar answered Oct 08 '22 15:10

Anton Dozortsev