Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ keep asking for "Setup Scala SDK" after every synch with the repository

As the title says, IntelliJ keep asking to set the Scala SDK of my sbt projects (they are inside a multi-project) at every merge with the repository. It's like some settings file is being overwritten for a specific project but I can't seem to find what's the problem. Any insight on where to look?

like image 792
Chobeat Avatar asked Dec 17 '15 09:12

Chobeat


People also ask

How do I enable Scala in IntelliJ?

To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA. Now you can successfully check out from VCS, create, or import Scala projects.

How do I add Scala to global library in IntelliJ?

On the Project pane on the left, right-click src and select New => Scala class. If you don't see Scala class, right-click on HelloWorld and click on Add Framework Support…, select Scala and proceed. If you see Error: library is not specified, you can either click download button, or select the library path manually.


1 Answers

If in the "Project Settings" (⌘-;) you have the scala-jdk set in the "Global Libraries":

enter image description here

and the problem persists, then I would suggest to try to:

  • close the project and exit IntelliJ
  • delete the .idea folder and
  • create a new IntelliJ project importing the directory with the sbt-multiproject folders
like image 159
Filippo Vitale Avatar answered Oct 13 '22 07:10

Filippo Vitale