Open varju opened 10 years ago
I was hit by this bug too and have a potential fix here https://github.com/teigen/sbt-idea/tree/sbt-0.13-source-generators
There are two obvious ways to solve this by either using sourceManaged as sources or use managedSources as sources. Having both leads nesting of source directories which causes this error.
My fix uses managedSources and ignores any sourceManaged directories which are subfolders of managedSources.
Using either 1.6.0 or 1.7.0-SNAPSHOT, the presence of source generators causes extra sourceFolder entries to be added to the module. A simple example that demonstrates this issue:
This leads to a module file containing extra
src_managed/main/one
andsrc_managed/main/two
source folders:In the real world, this is causing problems with Play 2.3.1, leading to errors like this when compiling from IntelliJ: