scoverage / scalac-scoverage-plugin

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

Macro libraries breaks coverage report for Scala 3 with sources not found #474

Closed arixmkii closed 2 years ago

arixmkii commented 2 years ago

Plugin Version: 2.0.0-RC2 Scala Version: 3.2.0-RC1

It seems Scala 3 generates coverage information for third party libraries with macro features and then report can't be generated because sources are not available for them.

Example project to reproduce the issue https://github.com/arixmkii/macro_cov_3.2.0-RC1

I will report it as well in dotty github to ask if this behavior is really desired.

ckipp01 commented 2 years ago

Since for Scala 3 the coverage instrumentation is actual in the compiler (and I see you created an issue there already) I'm going to go ahead and close this.