Intellij compile failures: “is already defined as”

后端 未结 10 1731
北海茫月
北海茫月 2021-02-03 17:14

I\'ve got a scala project that compiles, runs and tests fine when using SBT from the command line. However, when building the project in intellij, it seems every class in the pr

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-03 17:21

    In my case problem solved by change ScalaTest template configuration in Idea. I select use sbt, disable print info, remove build before launch.

    I like to use SBT for clean/package/test on specific module. I also use mixed Java/Scala classes in test (but I replace compile order to Java than Scala).

    At least now I can test from IDE withot this error.

    PS: Now I disable use sbt. My tests work fine (but I'm not sure, that they will work). PPS: New tests not runs before compilation. It is disadvantage of removing build (and, maybe, of disabling use sbt). But this extra build cause problem with dublication, as I think

提交回复
热议问题