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

发布于 2024-11-04 14:03:04 字数 2009 浏览 0 评论 0 原文

我一直在尝试使用 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋叶绚丽 2024-11-11 14:03:04

也许您遇到了已知错误 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文