IntelliJ Bug: Scala 145, Error:scalac: Scala compiler JARs not found

Please goto File > Settings (Ctrl+Alt+S, Windows)/Preferences (Mac) > Plugin Search for "scala". Uninstall Scala plugin.. Restart IDE. Reinstall it. Restart IDE and install the plugin. Everything works OK


SOLVED as Follow:

In project settings, you need to manually add:

  1. JDK Folder
  2. Module and dependencies to JDK AND Scala JAR

  3. In library, Add MANUALLY the JAR of Scala (IntelliJ does not add those JAR. it creates compile issues).

  4. in Global library, check the JAR of scala are same.

There is an option to see the DEBUG in verbose mode:

https://intellij-support.jetbrains.com/hc/articles/207241085

This is very useful.


If your project is Gradle-based, one possibility is that the project is looking for Scala libraries in the .m2 cache that don't exist. To confirm, open "Project Structure...", go to "Libraries", and examine the list for "Gradle: org.scala-lang:..." that contain errors related to missing files.

If this is the issue, simply re-import the project from scratch.