如何在IDEA中打开项目时停止自动刷新SBT模块? [英] How to stop auto-refreshing of SBT modules upon opening project in IDEA?

查看:304
本文介绍了如何在IDEA中打开项目时停止自动刷新SBT模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几个Play 2应用程序和模块,我无法将IntelliJ IDEA 13集成到我的开发过程中。我有一个基于应用程序的共同父项的空项目,我已使用导入现有SBT项目选项将每个应用程序导入为模块。

We have several Play 2 applications and modules and I'm having trouble integrating IntelliJ IDEA 13 into my development process. I have an empty project based on the common parent of the apps and I have imported each app as a module using the import existing SBT project option.

我的问题是每个我启动项目时,IntelliJ使SBT同时完全重建所有9个模块。由于它们都依赖于一个 sbt.lock 文件可用,通常情况是8个应用程序在任何时间都在等待,并且需要大约15分钟令人耳目一新。由于它为每个模块生成一个sbt进程,我的VM的5GB RAM和5GB的交换空间完全填满,导致进一步减速。

My problem is that every time I launch the project, IntelliJ causes SBT to completely rebuild all 9 modules at the same time. Since they all depend on one sbt.lock file being available, it's usually the case that 8 of the apps are waiting at any one time, and it takes ~15 minutes for the refreshing to finish. As it spawns an sbt process for each module, my VM's 5GB of RAM and 5GB of swap space are entirely filled, causing further slowdown.

这是完全不可接受的。如果我无法解决这个问题,我将回到Eclipse,如果IntelliJ IDEA更适合我的开发,则会发生事件。如何在启动时禁用这些自动重建,或至少序列化它们?

This is completely unacceptable. I'm going back to Eclipse if I can't solve this problem, event if IntelliJ IDEA is better suited to my development otherwise. How can I disable these automatic rebuilds at startup, or at least serialize them?

推荐答案

看来这是一个打开的请求:< a href =https://youtrack.jetbrains.com/issue/SCL-7061\"rel =nofollow> SCL-7061禁用SBT项目刷新您可能想尝试 IDEA 14预览版(以及更新后的Scala插件)​​,以查看问题是否得到解决或更好。我知道在IDEA 14中对Scala和SBT进行了一些改进。如果它适用于你,你可以切换到使用 IDEA 14 EAP 构建,直到今年晚些时候发布。

It appears this is an open request: SCL-7061 Disable SBT project refreshing You may want to try the IDEA 14 Preview release (and the updated Scala Plug-in) to see if the issue is resolved or better there. I know there has been some improvements to Scala and SBT in IDEA 14. If it works for you, you can switch to using the IDEA 14 EAP builds until it is released later this year.

这篇关于如何在IDEA中打开项目时停止自动刷新SBT模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆