使用IntelliJ IDEA中的fsc编译服务器永远不会完成构建

时间:2011-04-28 18:22:52

标签: scala intellij-idea fsc

我一直在尝试使用FSC构建IntelliJ,如下所述:

http://grahamhackingscala.blogspot.com/2010/10/turn-fsc-fast-scala-compiling-on-in.html

我完全按照所有说明设置了运行配置。当我运行时,发出此命令。

/usr/bin/java -verbose -Denv.classpath="%CLASSPATH%" -Denv.emacs="%EMACS%" -Dfile.encoding=UTF-8 -classpath /opt/local/share/scala-2.8/lib/scala-compiler.jar:/opt/local/share/scala-2.8/lib/scala-library.jar scala.tools.nsc.CompileServer

我传递了-verbose参数,然后我看到了正在加载的内容。以下是最后10行输出:

[Loaded java.net.Socket from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded com.apple.java.Usage$3 from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded com.apple.java.Application from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded com.apple.java.Application$1 from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.lang.ProcessEnvironment from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.lang.ProcessEnvironment$ExternalData from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.lang.ProcessEnvironment$Variable from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.lang.ProcessEnvironment$Value from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.lang.ProcessEnvironment$StringEnvironment from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]
[Loaded java.util.Collections$UnmodifiableMap from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar]

即使一小时后,它也永远不会超越这一点。我是Scala的新手,我对Java几乎一无所知,所以我在这里没有任何线索。我很乐意提供更多信息,如果这会有所帮助,但就目前而言,这是我能提供的所有信息。

1 个答案:

答案 0 :(得分:0)

也许你正在遇到一个已知的错误http://youtrack.jetbrains.net/issue/SCL-2271

解决方法是手动启动fsc

您有可能还会趟过http://youtrack.jetbrains.net/issue/SCL-2409

对于这个你最好设置一个脚本,每小时重新启动一次fsc