sbt / sbt-jacoco

an sbt plugin for JaCoCo Code Coverage
https://scala-sbt.org/sbt-jacoco/
Eclipse Public License 1.0
123 stars 67 forks source link

IncompatibleClassChangeError #7

Open philipmjohnson opened 10 years ago

philipmjohnson commented 10 years ago

Greetings,

I had jacoco4sbt working fine with Play 2.1, but now with Play 2.2.0 and Scala 2.10.2, I am getting the following error:

[play-example-quality-assurance] $ jacoco:cover [trace] Stack trace suppressed: run last jacoco:fullClasspath for the full output. error java.lang.IncompatibleClassChangeError: class org.jacoco.core.internal.flow.ClassProbesVisitor has interface org.objectweb.asm.ClassVisitor as super class [error] Total time: 9 s, completed Dec 4, 2013 1:42:45 PM

I saw a previous posting about this that suggested downgrading to 1.2.4, but when I try that there is a compatibility problem with Scala which prevents this from succeeding.

The project exhibiting this problem is at:

https://github.com/ics-software-engineering/play-example-quality-assurance

The relevant files are (probably): https://github.com/ics-software-engineering/play-example-quality-assurance/blob/master/project/build.properties

https://github.com/ics-software-engineering/play-example-quality-assurance/blob/master/project/plugins.sbt

https://github.com/ics-software-engineering/play-example-quality-assurance/blob/master/qa.sbt

Thanks for any help you can provide.

Philip

jmhofer commented 10 years ago

Please try out jacoco4sbt 2.1.4 with Play 2.2.x. I think this should be fixed now.

philipmjohnson commented 10 years ago

Hi,

You're right, it did fix it, but I am now finding a conflict between Jacoco and PMD. If I install just your Jacoco plugin, it works fine with Play 2.2, but if I install the PMD plugin as well, then I return to getting the IncompatibleClassChange error.

I am wondering if you have any insight into how to get both of these plugins to work. I have updated my project and its documentation so you can understand and reproduce the problem:

https://github.com/ics-software-engineering/play-example-quality-assurance

Thanks for any help you can provide.