EclEmma fails with Scala IDE later than 2.0.0
With Scala plugin version: 2.0.0.v-2_08-201112200107-82421c5 and earlier, the code coverage plugin EclEmma works fine.
With later scala plugins, e.g. 2.1.0.nightly-2_09-201207070324-d8de93d, (don't know exactly which one is the first that does not work), all EclEmma code coverage sessions terminate with the message
For Eclipse, EclEmma used to be the best code coverage tool for scala. It would be great to have it back again!
EclEmma home page: http://www.eclemma.org
EclEmma update site: http://update.eclemma.org/
To reproduce:
Then, repeat the same steps with a more recent Scala IDE, e.g. 2.1.0-nightly-29. The coverage run terminates without coverage results but with an error message.
With later scala plugins, e.g. 2.1.0.nightly-2_09-201207070324-d8de93d, (don't know exactly which one is the first that does not work), all EclEmma code coverage sessions terminate with the message
An internal error occurred during: "Analyzing coverage session Main (2) (24.07.2012 08:26:46)".
scala.tools.eclipse.javaelements.ScalaFunctionElement cannot be cast to org.eclipse.jdt.core.IType
For Eclipse, EclEmma used to be the best code coverage tool for scala. It would be great to have it back again!
EclEmma home page: http://www.eclemma.org
EclEmma update site: http://update.eclemma.org/
To reproduce:
- Install Scala-IDE 2.0.0 final 28
- Install EclEmma
- Run the application below as scala application
- Coverage the run with the run button provided by the EclEmma plugin
- Everything is fine
Then, repeat the same steps with a more recent Scala IDE, e.g. 2.1.0-nightly-29. The coverage run terminates without coverage results but with an error message.
object Main extends Application {
println("coverage")
}
Leave a comment
Closing since it is outdated and probably no longer valid.