IntelliJ IDEA Scala 插件问题
我对新的 Intellij IDEA 10 和 Scala 插件有疑问。当我在 Scala 源文件中输入任何内容时,编辑器会永久冻结。在其他文件(java 和其他)编辑器中效果很好。
结构视图、scala 检查和显示成员功能已关闭。堆大小增加到 1Gb(IDE 实际上只使用了一半)。
有什么建议吗?
I have a issue with new Intellij IDEA 10 and Scala plugin. The editor is permanently freezes when I'm typing anything in the Scala source files. In the other files (java and other) editor works good.
Structure view, scala inspection and show members features are switched off. Heap size increased to 1Gb(the IDE actually used just a half of it).
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
IntelliJ 只是一个 Java 应用程序,因此请利用 JVM 的诊断工具。
使用
jstack
在编辑器锁定期间捕获线程转储,如 中所述在这里。您还可以使用jconsole
或jvisualvm
。IntelliJ is just a Java application, so take advantage of the diagnostic tools for the JVM.
Capture a thread dump during one of the editor lock ups using
jstack
, as described here. You could also usejconsole
orjvisualvm
.日志目录中应该有一系列线程转储(MacOS X 上的 ~/Library/Logs/IntelliJIdea10、Linux 上的 ~/.IntelliJIdea10/system/log、Windows 上的 %USERHOME%/.IntelliJIdea10/system/log)。请在 http://youtrack.jetbrains.net/ 提交 YouTrack 问题,并将线程转储文件附加到其中。
There should be a series of thread dumps in the logs directory (~/Library/Logs/IntelliJIdea10 on MacOS X, ~/.IntelliJIdea10/system/log on Linux, %USERHOME%/.IntelliJIdea10/system/log on Windows). Please file a YouTrack issue at http://youtrack.jetbrains.net/ and attach the thread dump files to it.
我在 IDEA 9 中遇到了类似的问题。经过大量搜索,我发现了一个奇怪的解决方案:停用工具栏和/或导航栏。 (菜单:视图 -> 工具栏、导航栏)
这实际上为我解决了这个问题。解释是 IDEA 在重建这些栏中的图标时遇到了问题,有时会卡住。我不知道IDEA 10的问题是否仍然存在,也不知道它是否能解决你的问题。但也许您想尝试一下。停用这两个栏,重新启动 IDEA,看看这些中断是否再次出现。
I had a similar problem with IDEA 9. After lots of searching, I found a strange solution: Deactivate the toolbar and/or navigation bar. (Menu: View -> Toolbar, Navigation Bar)
This actually solved it for me. The explanation was that IDEA had a problem rebuilding the icons in those bars somehow and would sometimes get stuck. I don't know if the problem persists with IDEA 10, and I don't know if it will fix your problem. But maybe you want to give it a try. Deactivate those two bars, restart IDEA and see if those interruptions come again.