scoverage / scalac-scoverage-plugin

Scoverage Scala Code Coverage Core Libs
https://github.com/scoverage
Apache License 2.0
423 stars 126 forks source link

Problems with cross-compilation and coverage #496

Closed JD557 closed 1 year ago

JD557 commented 1 year ago

Describe the bug

While trying scoverage on a JVM/JS/Native project I got multiple problems with scoverage. Not that running sbt test works without problems.

This was tested on https://github.com/JD557/minart/tree/608500b7563ff5e34f6bb067ecbad2e74c59970f after adding addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.2"). The subproject tested wereimageNativeandimageJS`. In case you wan to try to reproduce the problems in this project, note that you'll need libSDL.

  1. Running sbt clean coverage test fails with:

    [warn] Found a call to not defined static method Member(Top(java.util.concurrent.atomic.AtomicReferenceFieldUpdater),D10newUpdaterL15java.lang.ClassL15java.lang.ClassL16java.lang.StringL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:707:43
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D7updaterL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:33:47
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:907:26
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D7RESTARTL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:819:26
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:265:32
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D7RESTARTL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:274:22
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:278:20
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:292:58
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D7RESTARTL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:285:11
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:288:16
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D7updaterL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:35:63
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:960:22
    [warn] Found a call to not defined static method Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:900:26
    [warn] Found a call to not defined static method Member(Top(java.util.concurrent.atomic.AtomicReferenceFieldUpdater),D10newUpdaterL15java.lang.ClassL15java.lang.ClassL16java.lang.StringL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo). Static methods are generated since Scala Native 0.4.3, report this bug in the Scala Native issues. Call defined at file:/home/wmazur/projects/scalacenter/scala-native/scala-native/scalalib/target/scalaSources/2.13.8/scala/collection/concurrent/TrieMap.scala:1049:122
    [error] Found 21 missing definitions while linking
    [error] Not found Top(java.security.SecureRandom)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\javalib\src\main\scala\java\util\UUID.scala:140
    [error] Not found Member(Top(java.security.SecureRandom),RE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\javalib\src\main\scala\java\util\UUID.scala:138
    [error] Not found Top(java.util.concurrent.atomic.AtomicReferenceFieldUpdater)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:705
    [error] Not found Member(Top(java.util.concurrent.atomic.AtomicReferenceFieldUpdater),D10newUpdaterL15java.lang.ClassL15java.lang.ClassL16java.lang.StringL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:705
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:707
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:1049
    [error] Not found Top(scala.collection.concurrent.BasicNode)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:429
    [error] Not found Member(Top(scala.collection.concurrent.BasicNode),RE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:456
    [error] Not found Top(scala.collection.concurrent.CNodeBase)
    [error] Not found Member(Top(scala.collection.concurrent.CNodeBase),RE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:519
    [error] Not found Member(Top(scala.collection.concurrent.FailedNode),D10WRITE_PREVL36scala.collection.concurrent.MainNodeuEO)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:438
    [error] Not found Top(scala.collection.concurrent.Gen)
    [error] Not found Member(Top(scala.collection.concurrent.Gen),RE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:429
    [error] Not found Top(scala.collection.concurrent.INodeBase)
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),D24NO_SUCH_ELEMENT_SENTINELL16java.lang.ObjectEo)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:265
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:278
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:288
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:292
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:900
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:904
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:907
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:960
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),D7RESTARTL16java.lang.ObjectEo)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:274
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:285
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:816
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:819
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),D7updaterL55java.util.concurrent.atomic.AtomicReferenceFieldUpdaterEo)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:33
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:35
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),F3genO)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:644
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),F8mainnodeO)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:46
    [error] Not found Member(Top(scala.collection.concurrent.INodeBase),RL31scala.collection.concurrent.GenE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:26
    [error] Not found Top(scala.collection.concurrent.MainNode)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:429
    [error] Not found Member(Top(scala.collection.concurrent.MainNode),F4prevO)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:78
    [error] Not found Member(Top(scala.collection.concurrent.MainNode),RE)
    [error]         at \home\wmazur\projects\scalacenter\scala-native\scala-native\scalalib\target\scalaSources\2.13.8\scala\collection\concurrent\TrieMap.scala:437
  2. Running sbt projectNative coverage test fails with the following error on all external references:

    methods in extern objects must have extern body  - Block(List(Apply(Ident(invoked),List(Literal(Constant(2024)), Literal(Constant(D:\Projects\minart\backend\native\target\scala-3.2.0/scoverage-data))))),Block(List(Apply(Ident(invoked),List(Literal(Constant(2023)), Literal(Constant(D:\Projects\minart\backend\native\target\scala-3.2.0/scoverage-data))))),Apply(Ident(extern),List())))
  3. Running sbt projectJS coverage test fails with the following error:

    [error] ## Exception when compiling 7 sources to D:\Projects\minart\backend\js\target\scala-3.2.0\classes
    [error] org.scalajs.ir.InvalidIRException: Cannot hash a transient IR node (its value is of class class dotty.tools.backend.sjs.JSCodeGen$UndefinedParam$)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTree(Hashers.scala:521)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTrees$$anonfun$1(Hashers.scala:529)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
    [error] scala.collection.immutable.List.foreach(List.scala:333)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTrees(Hashers.scala:529)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTree(Hashers.scala:147)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTrees$$anonfun$1(Hashers.scala:529)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
    [error] scala.collection.immutable.List.foreach(List.scala:333)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTrees(Hashers.scala:529)
    [error] org.scalajs.ir.Hashers$TreeHasher.mixTree(Hashers.scala:147)
    [error] org.scalajs.ir.Hashers$.hashMethodDef$$anonfun$1(Hashers.scala:38)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
    [error] scala.Option.foreach(Option.scala:437)
    [error] org.scalajs.ir.Hashers$.hashMethodDef(Hashers.scala:38)
    [error] org.scalajs.ir.Hashers$.hashMemberDefs$$anonfun$1(Hashers.scala:71)
    [error] scala.collection.immutable.List.map(List.scala:250)
    [error] org.scalajs.ir.Hashers$.hashMemberDefs(Hashers.scala:74)
    [error] dotty.tools.backend.sjs.JSCodeGen.genScalaClass(JSCodeGen.scala:446)
    [error] dotty.tools.backend.sjs.JSCodeGen.genCompilationUnit$$anonfun$3$$anonfun$1(JSCodeGen.scala:238)
    [error] dotty.tools.backend.sjs.ScopedVar$.withScopedVars(ScopedVar.scala:33)
    [error] dotty.tools.backend.sjs.JSCodeGen.genCompilationUnit$$anonfun$3(JSCodeGen.scala:242)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
    [error] scala.collection.immutable.List.foreach(List.scala:333)
    [error] dotty.tools.backend.sjs.JSCodeGen.genCompilationUnit(JSCodeGen.scala:244)
    [error] dotty.tools.backend.sjs.JSCodeGen.run(JSCodeGen.scala:156)
    [error] dotty.tools.backend.sjs.GenSJSIR.run(GenSJSIR.scala:18)
    [error] dotty.tools.dotc.core.Phases$Phase.runOn$$anonfun$1(Phases.scala:311)
    [error] scala.collection.immutable.List.map(List.scala:246)
    [error] dotty.tools.dotc.core.Phases$Phase.runOn(Phases.scala:312)
    [error] dotty.tools.dotc.Run.runPhases$1$$anonfun$1(Run.scala:234)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
    [error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
    [error] scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1328)
    [error] dotty.tools.dotc.Run.runPhases$1(Run.scala:245)
    [error] dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:253)
    [error] dotty.tools.dotc.Run.compileUnits$$anonfun$adapted$1(Run.scala:262)
    [error] dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:68)
    [error] dotty.tools.dotc.Run.compileUnits(Run.scala:262)
    [error] dotty.tools.dotc.Run.compileSources(Run.scala:186)
    [error] dotty.tools.dotc.Run.compile(Run.scala:170)
    [error] dotty.tools.dotc.Driver.doCompile(Driver.scala:35)
    [error] dotty.tools.xsbt.CompilerBridgeDriver.run(CompilerBridgeDriver.java:88)
    [error] dotty.tools.xsbt.CompilerBridge.run(CompilerBridge.java:22)
    [error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:91)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$7(MixedAnalyzingCompiler.scala:193)
    [error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:248)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4(MixedAnalyzingCompiler.scala:183)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4$adapted(MixedAnalyzingCompiler.scala:163)
    [error] sbt.internal.inc.JarUtils$.withPreviousJar(JarUtils.scala:239)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:163)
    [error] sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:211)
    [error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1(IncrementalCompilerImpl.scala:534)
    [error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1$adapted(IncrementalCompilerImpl.scala:534)
    [error] sbt.internal.inc.Incremental$.$anonfun$apply$5(Incremental.scala:179)
    [error] sbt.internal.inc.Incremental$.$anonfun$apply$5$adapted(Incremental.scala:177)
    [error] sbt.internal.inc.Incremental$$anon$2.run(Incremental.scala:463)
    [error] sbt.internal.inc.IncrementalCommon$CycleState.next(IncrementalCommon.scala:116)
    [error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:56)
    [error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:52)
    [error] sbt.internal.inc.IncrementalCommon.cycle(IncrementalCommon.scala:263)
    [error] sbt.internal.inc.Incremental$.$anonfun$incrementalCompile$8(Incremental.scala:418)
    [error] sbt.internal.inc.Incremental$.withClassfileManager(Incremental.scala:506)
    [error] sbt.internal.inc.Incremental$.incrementalCompile(Incremental.scala:405)
    [error] sbt.internal.inc.Incremental$.apply(Incremental.scala:171)
    [error] sbt.internal.inc.IncrementalCompilerImpl.compileInternal(IncrementalCompilerImpl.scala:534)
    [error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileIncrementally$1(IncrementalCompilerImpl.scala:488)
    [error] sbt.internal.inc.IncrementalCompilerImpl.handleCompilationError(IncrementalCompilerImpl.scala:332)
    [error] sbt.internal.inc.IncrementalCompilerImpl.compileIncrementally(IncrementalCompilerImpl.scala:425)
    [error] sbt.internal.inc.IncrementalCompilerImpl.compile(IncrementalCompilerImpl.scala:137)
    [error] sbt.Defaults$.compileIncrementalTaskImpl(Defaults.scala:2364)
    [error] sbt.Defaults$.$anonfun$compileIncrementalTask$2(Defaults.scala:2314)
    [error] sbt.internal.server.BspCompileTask$.$anonfun$compute$1(BspCompileTask.scala:30)
    [error] sbt.internal.io.Retry$.apply(Retry.scala:46)
    [error] sbt.internal.io.Retry$.apply(Retry.scala:28)
    [error] sbt.internal.io.Retry$.apply(Retry.scala:23)
    [error] sbt.internal.server.BspCompileTask$.compute(BspCompileTask.scala:30)
    [error] sbt.Defaults$.$anonfun$compileIncrementalTask$1(Defaults.scala:2312)
    [error] scala.Function1.$anonfun$compose$1(Function1.scala:49)
    [error] sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
    [error] sbt.std.Transform$$anon$4.work(Transform.scala:68)
    [error] sbt.Execute.$anonfun$submit$2(Execute.scala:282)
    [error] sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
    [error] sbt.Execute.work(Execute.scala:291)
    [error] sbt.Execute.$anonfun$submit$1(Execute.scala:282)
    [error] sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
    [error] sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
    [error] java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [error] java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    [error] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [error] java.lang.Thread.run(Thread.java:748)

Expected behavior

I would expect that at least the tests would still run (even if no coverage report was generated)

What build tool are you using?

sbt

Version of scoverage

v2.0.2

JD557 commented 1 year ago

Ignore this, I just noticed that the problms were in Scala 3, not Scala 2.

Closing this.

armanbilge commented 1 year ago

For reference:

carlosedp commented 1 year ago

Also another ref: https://github.com/lampepfl/dotty/issues/16124