-
Notifications
You must be signed in to change notification settings - Fork 45
ScoverageHtmlWriter fails with NoSuchMethodError #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, Yes, it seems this is the case. I can see a related change in the 3.0 update, but I need to look closer as a simple revert is not fixing my simple test case. Stu. |
Thanks for looking into it. |
I was unable to reproduce it in an automated test case, but I've published 3.1.4 with the change reverted. Please could you see if it addresses this issue? Thanks |
Hi, I've tried with the 3.1.4, but it fails with or without plugins {
id "org.scoverage" version "3.1.4"
}
subprojects {
...
dependencies {
scoverage 'org.scoverage:scalac-scoverage-plugin_2.11:1.3.1', 'org.scoverage:scalac-scoverage-runtime_2.11:1.3.1'
}
scoverage {
scoverageScalaVersion = "2.11"
coverageOutputHTML = false
}
} If I issue
I tried the 3.1.3, but it is failing with the above error.
And scala 2.11.8 is used in the project. With 3.0.0 it works okay (except the failure of the writer). Maybe there's some regression around the Scala version? Just guessing. Kind regards, |
Hi guys I have one question. Why are you using different Scala versions for plugin-specific code. My Maven plugin uses Scala 2.12 (see https://github.com/scoverage/scoverage-maven-plugin/blob/master/pom.xml#L99) like SBT 1.x. The code for reports generation (https://github.com/scoverage/scoverage-maven-plugin/blob/master/pom.xml#L99) uses Of course, proper version of |
It is a good question. Historically it was easier to just use the libraries that are already present, rather than defining a new set of dependencies. It looks like the changes in scoverage 1.4.0 / scala 2.13 will prevent this. It would be easier if the scoverage plugin used Array instead of Seq. |
Hi
The HTML output cannot be generated, because the plugin fails with an error.
Gradle: 5.3.1, Scala 2.11.x, plugin version 3.0.0
The HTML output has to be switched off.
Otherwise, the
gradle reportScoverage
fails with the following error:The text was updated successfully, but these errors were encountered: