可以用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发布于 2016-05-12 15:17:35
可以用Scaladoc和SBT生成图表吗?
由于这是一个更高的投票问题标记为sbt,我将尝试回答它。我试过使用Scala2.11.8和2.12.0-M4,但这两种方法都不适合我。Scaladoc图生成本身存在一些问题,而不是sbt。例如,参见SI-7950:在OSX10.9上运行带有ScalaDoc的-diagram失败(小牛)。我还尝试直接运行scaladoc,但仍然得到类似的错误消息。
我听说过的一种理论是,scaladoc对dot警告消息过于敏感。因此,有一个用以下内容包装dot的黑客:
#!/bin/bash
/usr/local/bin/dot "$@" 2> >( grep -v "CoreText performance note:" >&2 )使用上面的脚本对我不起作用。所以这个时候很可能不可能。
https://stackoverflow.com/questions/33258261
复制相似问题