Scaladoc图

Thi*_*uce 10 scala sbt scaladoc

是否可以使用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
Run Code Online (Sandbox Code Playgroud)

如何获取有关"破碎图像"的更多日志?

谢谢.

编辑:

该命令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
Run Code Online (Sandbox Code Playgroud)

Eug*_*ota 0

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

由于这是投票率较高的问题之一sbt,我将尝试回答它。我尝试使用 Scala 2.11.8 和 2.12.0-M4,但都不适合我。 Scaladoc 图生成本身存在一些问题,而不是 sbt。请参阅示例SI-7950:在 OS X 10.9 (Mavericks) 上运行带有 -diagram 的 ScalaDoc 失败。我也尝试scaladoc直接运行,但仍然收到类似的错误消息。

我听到的一种理论是 scaladoc 对dot警告消息过于敏感。因此,出现了一种dot用以下内容进行包装的黑客:

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

使用上面的脚本对我来说不起作用。所以目前很可能是不可能的。