-coverage-out
generates wrong source paths on java 1.8 runtime
#15233
Labels
-coverage-out
generates wrong source paths on java 1.8 runtime
#15233
Compiler version
3.2.0-RC1-bin-20220517-e5abec0-NIGHTLY
8bae490
Minimized code
Let's create a file GoodCoverage.scala:
then let's try to compile it using java 1.8 runtime (I've used jenv for that) and set the coverage flag:
Output
The generated coverage file contains wrong paths to sources:
The
..
part is wrong because this file is present in the cwd.Expectation
The path should be the same as when using java 11+ runtime:
This issue is blocking addition of support for Scala 3 in sbt-scoverage: scoverage/sbt-scoverage#429
The text was updated successfully, but these errors were encountered: