我正在尝试查找有关如何使用2.9.3中定义的scala.tools.nsc.interpreter.ILoop的完整文档。您可以从scala网站下载夜间编译器文档,也可以下载2.9.3 scala api文档,但我没有看到2.9.3编译器文档。我唯一的办法是从2.9.3源代码构建文档吗?如果是这样,我该怎么做呢?
发布于 2013-06-28 14:39:38
只需从Maven Central获取它:
http://search.maven.org/#artifactdetails|org.scala-lang|scala-compiler|2.9.3|jar
(二进制、源代码和javadoc的单独jars )
发布于 2013-06-27 00:38:22
我会说克隆回收站,
$ git checkout v2.9.3
$ ant docscomp
但是我收到了错误(关于缺少类和目录的顺序;但我不能尝试清理)。祝好运!
更新:
apm@mara:~/tmp$ whence bigant
bigant is aliased to `ANT_OPTS="${DEFAULT_ANT_OPTS}" ant'
apm@mara:~/tmp$ echo $DEFAULT_ANT_OPTS
-Xms1536M -Xmx1536M -Xss1M -XX:MaxPermSize=192M -XX:+UseParallelGC
我只使用bigant;但是,由于这是我最近唯一使用ant的方法,我可以简化一下:
apm@mara:~/projects/snytt$ bigant all.clean ; bigant
Buildfile: /home/apm/projects/snytt/build.xml
[echo] Forking with JVM opts: -Xms1536M -Xmx1536M -Xss1M -XX:MaxPermSize=192M -XX:+UseParallelGC
以防我的错误有帮助。当我追求它的时候,我会再次更新。(我从不构建2.9。)这看起来像是jar重构。
/home/apm/projects/snytt/build.xml:354: The following error occurred while executing this line:
jar:file:/home/apm/projects/snytt/lib/scala-compiler.jar!/scala/tools/ant/sabbus/antlib.xml:9: taskdef A class needed by class scala.tools.ant.sabbus.ScalacFork cannot be found: scala/tools/nsc/io/Path
using the classloader AntClassLoader[/home/apm/projects/snytt/lib/scala-library.jar:/home/apm/projects/snytt/lib/scala-compiler.jar:/home/apm/projects/snytt/lib/fjbg.jar:/home/apm/projects/snytt/lib/forkjoin.jar:/home/apm/projects/snytt/lib/msil.jar:/usr/share/ant/lib/ant.jar]
https://stackoverflow.com/questions/17332513
复制相似问题