Open
Description
Executing with sbt coverage; helloNative/test; coverageReport; coverageOff
fails at linking. The example code is here: https://github.com/nVotesOrg/scala-js-basic-example
$ sbt "; coverage; helloNative/test; coverageReport; coverageOff"
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading project definition from /home/edulix/proyectos/nvotes/scalajs-basic-tutorial/project
[info] Set current project to scalajs-basic-tutorial (in build file:/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/)
[info] Set current project to scalajs-basic-tutorial (in build file:/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/)
[info] Updating {file:/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/}helloNative...
[info] Resolving jline#jline;2.14.3 ...
[info] Done updating.
[info] Compiling 1 Scala source to /home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/classes...
[info] [info] Cleaning datadir [/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/scoverage-data]
[info] [info] Beginning coverage instrumentation
[info] [info] Instrumentation completed [3 statements]
[info] [info] Wrote instrumentation file [/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/scoverage-data/scoverage.coverage.xml]
[info] [info] Will write measurement data to [/home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/scoverage-data]
[info] Compiling 1 Scala source to /home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/test-classes...
[info] Compiling 1 Scala source to /home/edulix/proyectos/nvotes/scalajs-basic-tutorial/hello/native/target/scala-2.11/test-classes...
[info] Linking (1802 ms)
[error] cannot link: @scoverage.Invoker$
[error] cannot link: @scoverage.Invoker$::invoked_i32_java.lang.String_unit
[error] unable to link
[error] (helloNative/nativetest:nativeLinkNIR) unable to link
[error] Total time: 8 s, completed Jul 29, 2017 1:01:09 PM