scala - Scaladoc (2.11.6) fails on throws tag with "unable to find any member to link" -
when attempting publish jars project via sbt "++2.11.6 publishlocal"
or sbt +publishlocal
, encounter scaladoc issues when publishing scala 2.11.6. appears have invalid links caused @throws
tag. not sure why have invalid links nor why error occurs scala 2.11.6 while not scala 2.10.5 during cross-publishing. can't find indication @throws
tag not supported on scala 2.11; so, i'm assuming issue scaladoc, don't know missing @ point. can give me insight issue?
/** * attempts load jdi, asserting can , loaded. * * @throws assertionerror if failed load jdi */ @throws(classof[assertionerror]) protected def assertjdiloaded(): unit = assert(jdiloader.tryloadjdi(), """ |unable load java debugger interface! part of tools.jar |provided openjdk/oracle jdk , core of debugger! please |make sure java_home has been set , tools.jar available |on classpath! """.stripmargin.replace("\n", " "))
the snippet above (one of reported problems) part of file project here: https://github.com/rcsenkbeil/scala-debugger/blob/master/scala-debugger-api/src/main/scala/org/senkbeil/debugger/debugger.scala#l22
the actual series of scaladoc compilation errors follows:
[info] loading project definition /home/senkwich/projects/scala-debugger/project [info] set current project scala-debugger (in build file:/home/senkwich/projects/scala-debugger/) [info] setting version 2.11.6 [info] reapplying settings... [info] set current project scala-debugger (in build file:/home/senkwich/projects/scala-debugger/) [info] wrote /home/senkwich/projects/scala-debugger/scala-debugger-api/target/scala-2.11/scala-debugger-api_2.11-1.0.0.pom [info] :: delivering :: org.senkbeil#scala-debugger-api_2.11;1.0.0 :: 1.0.0 :: release :: sat jul 18 00:59:01 cdt 2015 [info] delivering ivy file /home/senkwich/projects/scala-debugger/scala-debugger-api/target/scala-2.11/ivy-1.0.0.xml [info] main scala api documentation /home/senkwich/projects/scala-debugger/scala-debugger-api/target/scala-2.11/api... model contains 35 documentable templates [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:170: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:192: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:158: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:138: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:126: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:106: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:94: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/virtualmachinewrapper.scala:73: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/valuewrapper.scala:112: not find member link "illegalargumentexception". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/valuewrapper.scala:87: not find member link "illegalargumentexception". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/valuewrapper.scala:54: not find member link "illegalargumentexception". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/wrappers/valuewrapper.scala:33: not find member link "throwable". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/jdi/jdiloader.scala:206: not find member link "classnotfoundexception". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/breakpoints/breakpointbundle.scala:138: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/breakpoints/breakpointbundle.scala:156: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/breakpoints/breakpointbundle.scala:110: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/breakpoints/breakpointbundle.scala:92: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/breakpoints/breakpointbundle.scala:72: not find member link "assertionerror". [error] /** [error] ^ [error] /home/senkwich/projects/scala-debugger/scala-debugger-api/src/main/scala/org/senkbeil/debugger/debugger.scala:19: not find member link "assertionerror". [error] /** [error] ^ [error] 19 errors found [error] (scaladebuggerapi/compile:doc) scaladoc generation failed [error] total time: 17 s, completed jul 18, 2015 12:59:17
based on discussion here, have decided suppress errors adding scaladoc option -no-link-warnings
.
scalacoptions in (compile, doc) ++= seq( "-no-link-warnings" // suppresses problems scaladoc @throws links )
Comments
Post a Comment