0

I have had problems with openning project generated from build.sbt file. I prefer the command line approach because it seems more standard. But I got an error when compiling the project in IDE:

Error:scalac: Output path xxx is shared between: Module 'domainRegistrar-build' tests, Module 'domain_registrar-build' tests
......
1
  • That usually happens when idea finds two projects sharing some folder, to me it happened because I refactored the project and the IDE didn't pick up the changes, you can check in file -> project structure -> modules and then on the right under the sources label you should see the project structure, I can't tell you more because it's hard to reproduce this issue.
    – Ende Neu
    Jul 29, 2014 at 11:38

2 Answers 2

0

The problem of this issues is two modules domainRegistrar-build and domain_registrar-build share same output path.

file -> project structure -> modules -> path

Change Output path to different one. (Normally it should add module name to distinguish the path)

Also, the two module names are similar, maybe you rename or manually create it, so refresh sbt project and rebuild project may be needed.

-1

update the scala-idea plugin in the plugins.sbt file. just like below:

resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.