我一直在尝试使用 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几乎一无所知,所以我在这里没有任何线索。如果有帮助的话,我很乐意提供更多信息,但目前,这就是我能提供的全部信息。
I've been trying to get IntelliJ building with FSC, as described here:
http://grahamhackingscala.blogspot.com/2010/10/turn-fsc-fast-scala-compiling-on-in.html
I've followed all the instructions exactly to set up the Run configuration. When I do Run, this command is issued.
/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
I passed the -verbose argument, then I get to see what's being loaded. Here are the last 10 lines of output:
[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]
It never progresses beyond this point, even after an hour. I'm completely new to Scala, and I know almost nothing about Java, so I don't have any clues here. I'll be happy to supply more information if that will help, but for now, this is really all I can offer.
发布评论
评论(1)
也许您遇到了已知错误 http://youtrack.jetbrains.net/issue/SCL-2271
解决方法是手动启动 fsc,
您也有可能会被 http://youtrack.jetbrains.net/issue/SCL-2409
对于这个,你最好设置一个脚本,每半小时重新启动一次 fsc
perhaps you're hitting a known bug http://youtrack.jetbrains.net/issue/SCL-2271
the workaround is to start fsc manually
there is a chance that you'll also trip over http://youtrack.jetbrains.net/issue/SCL-2409
for this one you'd better setup a script which restarts fsc every hal an hour