如何关闭 Scala 快速编译服务器 (FSC) 超时?
我正在使用 Scala 编译服务器。这可能与我的 IDE IntelliJ IDEA 无关,但我只是告诉您,我通过该 IDE 中的特殊运行配置启动 Scala 编译服务器。
经过一段时间没有编译任何内容后,编译服务器终止,没有任何消息。通常,我只会在尝试编译某些内容但编译失败时才会注意到这一点。然后,我需要再次启动编译服务器,当然下一次编译需要很长时间,因为这又是启动编译服务器以来的第一次编译。
我如何关闭该超时?我查看了 scalac 的联机帮助页,似乎没有任何选项。我可以为该运行配置添加虚拟机选项。
I am using a Scala compilation server. This is probably not related to my IDE IntelliJ IDEA, but I will just inform you that I start the Scala compilation server through a special run configuration in that IDE.
After some time that goes by without compiling anything, the compilation server terminates, without any message. Usually, I only notice this when I try to compile something and compilation fails. Then, I need to start the compilation server again, and of course the next compilation takes a long time, because it's once more the first compilation since starting the compilation server.
How do I turn off that timeout? I looked at the manpage for scalac, and there seems to be no option for it. I can add VM options for that run configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
传递
-max-idle 0
作为参数。它将在最近的 nightly 上运行,并且在 Scala 2.9.0 发布时应该可以使用。但是,不能保证在此之前该名称不会更改。Pass
-max-idle 0
as parameter. It will work on a very (very!) recent nightly, and it should be available on Scala 2.9.0 when it comes out. However, there's no guarantee the name won't change until then.我认为你不能。这是来自编译服务器的代码片段:
我认为您应该在 scala-lang.org 中打开功能请求
I don't think you can. Here is a code snippet from the compilation server:
I think you should open a feature request in scala-lang.org