"No Scala SDK in module"
We have a set of maven-based projects, multi-modules, some of modules are java, some scala, some are mixed.
Pretty much every time I open first scala file in a module I get notification "No Scala SDK in module Setup Scala SDK".
It is quite annoying. Feels like it can be configured somehow...
Please sign in to leave a comment.
I get this but I'm not sure which version I see it most in. Usually I can fix it by either re-importing the project from the pom.xml file, or sometimes Intellij "forgets" it's a maven project, so I use "Add As Maven Project" from the project context menu.
I get this every now and again too. It seems to happen more often when I open older projects that used to work fine. I guess there is something going on during an upgrade of IDEA that breaks it. Deleting the .idea folder and reimporting seems to be the best workaround to get it to actually go away. Clicking the "Setup Scala SDK" link only works temporarily.
Hello, i have the same issue.
Ubuntu: 18.04
Intellij: 2018.1.3
I import a scala sbt project. It doesn't import the dependencies so it can't find the scala version.
Workaround:
- Delete .idea folder
- Update sbt file and save
- It imported the modules and not it works
- The same issue i had in a java project where it doesn't sync the sbt dependencies on init.
I experience this several times a week. IntelliJ just drops the scala config. Eveything else is working. Fully indexed.
I'm using gradle with
IntelliJ IDEA 2018.3 (Ultimate Edition)
Build #IU-183.4284.148, built on November 20, 2018
Licensed to Tom Howland
Subscription is active until January 26, 2019
JRE: 1.8.0_152-release-1343-b15 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
Warning:scala: skipping Scala files without a Scala SDK in module(s) HelloWorld