Eclipse hangs on copy/cut for JavaScript files

白昼怎懂夜的黑 提交于 2019-11-30 02:54:52

found the solution:

go to Window>Preferences>JavaScript>Editor>Mark Occurrences and unselect the checkboxes. That should do it.

Reason for this problem:

When u press ctrl for copy/paste, it assumes that is a "ctrl+mouseOver" operation, that we do before clicking on a method/variable name to reach its declaration point, or access its documentation. Hence, it tries to find all the occurrences of the text currently under the mouse cursor, along with its declaration point and documentation.

Hope this helps :)

Saheed

Navigate to Window -> Preferences -> JavaScript -> Editor -> Typing -> When pasting

then uncheck Update imports.

Performance improved tremendously in my case. Hat tip to the comment left by @Alexander Taylor.

This is first Nodeclipse performance related issue I hear.

I think memory usage limits are to insure that bad routines don't eat memory without stop (and affecting all operating system performance). Usually eclipse takes 200-400MB. If your eclipse average is above 500MB I guess you installed too many plugins into 1 Eclipse instance.

Raise an issue for Nodeclipse developers https://github.com/Nodeclipse/nodeclipse-1/ and give exact OS, Java, Eclipse, Nodeclipse versions. Also because it is performance issue you should give your PC configuration CPU, RAM size. Without that exact information it is impossible to investigate. You can also try yourself on other PC, other Eclipse version, other Java version etc and compare, find best combination. Please raise an issue even if you discovered solution yourself.

Read http://www.nodeclipse.org/ carefully. (You should have read before using for at least to learn some tips, and how to get help.) I am not sure it is Nodeclipse issue, but if it is reproduce-able, then it is to be solved quick or Eclipse bugzilla bug to be raise if it is some Eclipse project related.

For information (as of Nodeclipse 0.10)
1) Nodeclipse has 2 Editors: JSDT-based and TextEditor-based. Both have code completion. Trying TextEditor-based can tell if the issue is JSDT related.
2) For validation JSHint validation is used. JSHint is run on Rhino engine that is not so quick, and potentially can take time on large projects. However JSHint Integration is quite mature project and there are options to stop validation after certain number of warnings.

Paul Verest

Also if your .js file is huge, like 10000+ lines that maybe the cause. See old Eclipse is hanged on copy/paste in JavaScript files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!