简体   繁体   English

每次击键后,Eclipse都会不断重建准确的宇宙模型

[英]Eclipse keeps rebuilding an accurate model of the universe after every keystroke

I've tried so much I'm almost breaking my laptop on my forehead. 我已经做了很多尝试,差点把额头的笔记本电脑弄坏了。 But it was an expensive piece of equipment and I need it for my job, so I will try StackOverflow first. 但这是一件昂贵的设备,我需要我的工作,因此我将首先尝试StackOverflow。

I've got this huge Node.JS project in Eclipse . 我在Eclipse中有这个庞大的Node.JS项目。 Eclipse has always been sluggish, but now it's gotten to the point where after every few keystrokes, Eclipse will freeze for minutes with the processor at 100%, often ending with some random useless error message like garbage collection ran out of memory or whatever. Eclipse一直很呆滞,但是现在已经到了这样的地步:每按几次按键,Eclipse就会冻结几分钟 ,处理器达到100%,通常以一些随机的无用错误消息结尾,例如垃圾回收用光了内存或其他东西。

Whatever it is, I don't need it to happen after every few keystrokes! 不管它是什么,我都不需要在每次击键后都发生! Sometimes, this error message appears, with the advise to disable Template Proposals. 有时,会出现此错误消息,并建议您禁用模板建议。 I've had the same dialog advising me to disable pretty much everything else that is useful, to the point that Eclipse is starting to become quite similar to your next enhanced Notepad application. 我有一个相同的对话框,建议我禁用几乎所有有用的其他功能,以至于Eclipse开始与您的下一个增强的记事本应用程序变得非常相似。

在此处输入图片说明

  • Is it really so impossible to have IDE-trickery such as code assist and completion (AKA the whole reason to use an IDE in the first place) with Eclipse, even working with projects bigger than two lines of code? 使用Eclipse进行代码辅助和完成(首先是使用IDE的全部原因)之类的IDE琐事真的不可能吗,即使是处理大于两行代码的项目也是如此吗?
  • Why would Ctrl+Space take a minute of 100% CPU when the only assist I have enabled is a handful of templates and the others are disabled? 当我启用的唯一辅助功能是少数模板而其他模板被禁用时,为什么Ctrl + Space会占用100%的CPU时间? 在此处输入图片说明

Please share the secret option with me that makes Eclipse usable. 请与我分享使Eclipse可用的秘密选项。


$ cat /etc/eclipse.ini | grep Xm
-Xms40m
-Xmx384m
 $ cat /opt/eclipse/eclipse.ini | grep Xm
-Xms40m
-Xmx512m
$ cat /usr/lib/eclipse/eclipse.ini | grep Xm
-Xms40m
-Xmx384m
  1. Preferences --> Editors --> Content Assist : disable auto activation. Preferences -> Editors -> Content Assist :禁用自动激活。 You can still use it with Ctrl + <Space> . 您仍然可以通过Ctrl + <Space>来使用它。

  2. Disable build on save for the workspace. 禁用工作区的保存时构建。

  3. As a last resort disable Preferences --> Validation 作为最后的选择,禁用Preferences -> Validation

  4. You can Increase the memory available to eclipse by providing the -Xms and -Xmx parameters at startup for eg : eclipse -vmargs -Xms256M -Xmx1024M . 您可以通过在启动时提供-Xms-Xmx参数来增加可用于Eclipse的内存,例如: eclipse -vmargs -Xms256M -Xmx1024M More info at the eclipse wiki . eclipse Wiki上了解更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM