Thursday, 15 January 2015

scala - Why does Play 2.3.4 and jacoco4sbt > 2.1.4 fail with NoSuchMethodError? -



scala - Why does Play 2.3.4 and jacoco4sbt > 2.1.4 fail with NoSuchMethodError? -

i'm trying utilize jacoco4sbt in play 2.3.4 (scala 2.10.4) app 2.1.4 seems work. when utilize .5 or .6, next error:

[error] (main/jacoco:fullclasspath) java.lang.nosuchmethoderror: org.objectweb.asm.methodvisitor.visitmethodinsn(iljava/lang/string;ljava/lang/string;ljava/lang/string;z)v

i tried add together asm-all (versions 4.1 , 5.0.3) dependencies not help @ all.

so problem? need add together dependency?

they have indeed changed asm version 5.0.1, , couldn't reproduce issue.

project/build.properties

sbt.version=0.13.7-m3

project/plugins.sbt

addsbtplugin("com.typesafe.play" % "sbt-plugin" % "2.3.4")

plugins/jacoco4sbt.sbt

addsbtplugin("de.johoop" % "jacoco4sbt" % "2.1.6")

build.sbt

name := """play-jacoco""" version := "1.0-snapshot" enableplugins(playscala) scalaversion := "2.11.2" librarydependencies ++= seq( jdbc, anorm, cache, ws ) pipelinestages := seq(rjs, digest, gzip) jacoco.settings

when ran jacoco:cover worked fine.

[play-uglify] $ jacoco:cover [info] compiling 2 scala sources /users/jacek/sandbox/play-uglify/target/scala-2.11/test-classes... slf4j: next set of substitute loggers may have been accessed slf4j: during initialization phase. logging calls during slf4j: phase not honored. however, subsequent logging calls these slf4j: loggers work expected. slf4j: see http://www.slf4j.org/codes.html#substitutelogger slf4j: org.apache.http.impl.client.defaulthttpclient slf4j: com.gargoylesoftware.htmlunit.incorrectnesslistenerimpl slf4j: com.gargoylesoftware.htmlunit.javascript.stricterrorreporter slf4j: com.gargoylesoftware.htmlunit.defaultcsserrorhandler slf4j: com.gargoylesoftware.htmlunit.javascript.configuration.javascriptconfiguration slf4j: com.gargoylesoftware.htmlunit.webclient slf4j: com.gargoylesoftware.htmlunit.javascript.javascriptengine slf4j: com.gargoylesoftware.htmlunit.webresponse [info] integrationspec [info] [info] application should [info] + work within browser [info] [info] total specification integrationspec [info] finished in 29 ms [info] 1 example, 0 failure, 0 error [info] applicationspec [info] [info] application should [info] + send 404 on bad request [info] + render index page [info] [info] total specification applicationspec [info] finished in 29 ms [info] 2 examples, 0 failure, 0 error [info] passed: total 3, failed 0, errors 0, passed 3 [info] [info] ------- jacoco coverage study -------- [info] [info] lines: 57.5% (>= required 0.0%) covered, 34 of 80 missed, ok [info] instructions: 72.12% (>= required 0.0%) covered, 522 of 1872 missed, ok [info] branches: 27.78% (>= required 0.0%) covered, 26 of 36 missed, ok [info] methods: 81.94% (>= required 0.0%) covered, 41 of 227 missed, ok [info] complexity: 76.73% (>= required 0.0%) covered, 57 of 245 missed, ok [info] class: 57.14% (>= required 0.0%) covered, 12 of 28 missed, ok [info] check /users/jacek/sandbox/play-uglify/target/scala-2.11/jacoco detail study [info] [success] total time: 6 s, completed oct 9, 2014 7:42:31

where differ?

scala sbt jacoco playframework-2.3

No comments:

Post a Comment