I am running into issues using the coverall maven plugin, together with jacoco reports on Kotlin files.
My understanding of what happens is quite limited and based on guess work. From what I understand the class files produced by Kotlin seem to be “not strict enough” in their debug data for jacoco… whatever that means.
Basically jacoco is reporting a source file line number that is greater than the source file, which results in an exception text like this:
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.1.0:report (default-cli) on project BinaryDataParser: Build error: Line number 91 is greater than the source file bdp-processor/src/main/java/org/ak80/bdp/MappedClass.kt size -> [Help 1]
It seems similiar (same?) problems have been experienced with jacoco+coverall+scala, see for example: https://github.com/trautonen/coveralls-maven-plugin/issues/98
I really would like to get code coverage reports… Is there anything I can do to get this working? Is there maybe an issue I can help with?
I really love to work with Kotlin, and this is the first and only mishap I had so far. Would be great to get it sorted out.
Thanks and with regards