2

When I try to run a test file through sbt-shell, it runs fine(sbt testOnly a.b.MySpec)

But when I try to run the same test file through intellij IDEA(2021.2.2 CE)'s green arrow run button, I gives this error

DriverFs2Grpc is already defined as trait DriverFs2Grpc
trait DriverFs2Grpc[F[_], A] {

My project is a multi module sbt, scala project with the following structure.

enter image description here

enter image description here

DriverFs2Grpc trait mentioned in the error message is an auto generated trait which resides in target/scala-2.12/src_managed/main/fs2-grpc/packageX/DriverFs2Grpc.scala

IntelliJ is trying to create a duplicate of the same file for some reason.

I think this is caused by an invalid source configuration.

My issue is similar to the question asked here, but still I couldn't figure it out.

Appreciate any help to resolve this issue.

tharindu_DG
  • 8,900
  • 6
  • 52
  • 64

0 Answers0