10

是否可以使用 Scaladoc 和 SBT 生成图表?

我试图在我的build.sbt scalacOptions in (Compile,doc) := Seq("-diagrams", "-diagrams-debug")

但我收到:图表生成运行时间细分:

diagrams model filtering
========================
count:        242 items
total time:   0 ms
average time: 0 ms
maximum time: 0 ms

diagrams model generation
=========================
count:        242 items
total time:   45 ms
average time: 0 ms
maximum time: 11 ms

dot diagram generation
======================
count:        89 items
total time:   24 ms
average time: 0 ms
maximum time: 3 ms

dot process runnning
====================
count:        89 items
total time:   590 ms
average time: 6 ms
maximum time: 512 ms

svg processing
==============
count:        89 items
total time:   269 ms
average time: 3 ms
maximum time: 88 ms

Broken images: 238
Fixed images: 0

如何获取有关“损坏的图像”的更多日志?

谢谢。

编辑:

该命令last向我显示:

[debug] Calling Scaladoc with arguments:
[debug]         -diagrams
[debug]         -diagrams-debug
[debug]         -d
[debug]         /.../target/scala-2.10/api
[debug]         -bootclasspath
[debug]         /usr/lib/jvm/java-7-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk/jre/lib/jfr.jar:/usr/lib/jvm/java-7-openjdk/jre/classes:/home/thibaud/.sbt/boot/scala-2.10.4/lib/scala-library.jar
[debug]         -classpath
... my classpath and my classes
[info] Main Scala API documentation successful.
[success] Total time: 18 s, completed 23 oct. 2015 15:10:32
4

1 回答 1

0

是否可以使用 Scaladoc 和 SBT 生成图表?

由于这是标记为 的投票率较高的问题之一sbt,因此我将尝试回答。我尝试使用 Scala 2.11.8 和 2.12.0-M4,但都不适合我。Scaladoc 图生成本身存在一些问题,而不是 sbt。参见例如SI-7950: Ru​​nning ScalaDoc with -diagram failed on OS X 10.9 (Mavericks)。我也试过scaladoc直接运行,我仍然得到类似的错误信息。

我听说过的一种理论是 scaladoc 对dot警告消息过于敏感。所以有一个dot用以下内容包装的黑客:

#!/bin/bash
/usr/local/bin/dot "$@" 2> >( grep -v  "CoreText performance note:" >&2 )

使用上面的脚本对我不起作用。所以很可能在这个时候是不可能的。

于 2016-05-12T15:17:35.670 回答