scoverage / scalac-scoverage-plugin

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

`getClass not selected from this instance` #585

Closed mdedetrich closed 9 months ago

mdedetrich commented 9 months ago

Describe the bug

Look at the run job at https://github.com/Aiven-Open/guardian-for-apache-kafka/actions/runs/6337433366/job/17212516305?pr=490 and you will see this error message

[error] /home/runner/work/guardian-for-apache-kafka/guardian-for-apache-kafka/cli-restore/src/main/scala/io/aiven/guardian/kafka/restore/Main.scala:35:36: getClass not selected from this instance
[error]         val logClassName: String = getClass.getName
[error]             

When its run in sbt (i.e. sbt-scoverage's coverage command)

Expected behavior

For an error to not happen

What build tool are you using?

sbt

Version of scoverage

v2.0.9

ckipp01 commented 9 months ago

Hey @mdedetrich, thanks for the report. Although when I clone this branch, I see this same error message locally.

Screenshot 2023-10-04 at 10 11 48

I don't believe that this is a coverage related bug.

mdedetrich commented 9 months ago

Hey @mdedetrich, tahnks for the report. Although when I clone this branch, I see this same error message locally.

Screenshot 2023-10-04 at 10 11 48

I don't believe that this is a coverage related bug.

Thanks, I'll look into it because it still appears to be compiling so it looks erroneous somehow.

mdedetrich commented 9 months ago

Closing issue, confirm its a change in new scala version