We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ea234e + 97d2f23 commit 0d5d1d5Copy full SHA for 0d5d1d5
project/settings.sc
@@ -721,6 +721,8 @@ trait ScalaCliCompile extends ScalaModule {
721
722
val proc = os.proc(
723
Seq("scala-cli", "compile", "--classpath"),
724
+ if (scalaVersion().startsWith("3")) Nil
725
+ else Seq("-O", s"-P:semanticdb:sourceroot:${os.pwd}"),
726
Seq("-S", scalaVersion()),
727
asOpt(scalacOptions(), "-O"),
728
asOpt(compileClasspath().map(_.path), "--jar"),
@@ -731,6 +733,7 @@ trait ScalaCliCompile extends ScalaModule {
731
733
732
734
val compile = proc.call()
735
val out = compile.out.trim
736
+
737
os.Path(out.split(File.pathSeparator).head)
738
}
739
0 commit comments