maven - "scala: unreachable code" but no line number or hints? -
running maven , intellij idea both give me similar terse error. here interesting part of maven output:
[info] compiling 138 source files ... [error] error: unreachable code [error] 1 error found [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------
not getting line number, method names or class names out of error, , i'm not sure in code has been introduced.
apart going on previous source code commits, or iteratively commenting out large sections of code, how work out problem is? maybe there compiler flag more verbose error?
update
i did work out error was--a match/case 1 of case
options unreachable. found via trial , error, revealed more specific error after commenting parts of code.
unfortunately, following did not help:
i tried adding -verbose
option scala-maven-plugin
:
<groupid>net.alchim31.maven</groupid> <artifactid>scala-maven-plugin</artifactid> <version>3.1.3</version> <configuration> <args> <arg>-verbose</arg> </args> </configuration>
also tried -x
argument suggested edward.
maven verbose output can achieved -x
switch, like:
$ mvn -x compile
i don't know if can here, see if works you.
Comments
Post a Comment