sbt modules, doesn't detect source folders

I created an sbt project and then added an other sbt module. For the sbt module, src/main/scala folder didn't exist, so I created it manually. Even so, intellij didn't detect it as a
source folder. After I manually marked it as a source folder, in the "New" menu there were no options to create a scala class.

sbt compiles files under src/main/scala correctly.

Any ideas what might be wrong?

Comment actions Permalink

Currently you need to import project again after you added this folder. We will try to improve such experience with SBT support. Thank you for the report.

Best regards,
Alexander Podkhalyuzin.

Comment actions Permalink

+1 for re-importing the project solution

Just a note, seems like this issue is still present, at least when using:

  • Intellij IDEA Ultimate 2017.3.4, Build #IU-173.4548.28
  • Ubuntu 16.04.1, kernel version 4.13.0-32-generic
  • Scala plugin version 2017.3.11.1



Please sign in to leave a comment.