-
Notifications
You must be signed in to change notification settings - Fork 77
Bug 442049 - Eclipse 4.4 (JSDT) Attempting to copy from .js files in project, using ctrl+c or right-click menu, hangs/crashes JSDT in a big project #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for reporting. I remember a year ago I ran into similar or saw similar on Stackoverflow. This is JSDT issue. When you edit .js file Eclipse standard javaScript Editor from WetTools is used. As you are using older Eclipse stack, trying to update to the latest 4.4.0 (released in June) on installing on fresh Eclipse Luna is first step to check. Then if it is still their raise an issue on https://bugs.eclipse.org/bugs/ against JSDT I can't download zip, could you please email me at *************** |
Also check in Project properties if JS sematic validation is turned off (JSHint should be used instead) .project
.settings\org.eclipse.wst.jsdt.core.prefs
|
Update: I managed to download zip. It is 170MB compressed into 62MB Most of them are under node_modules (150MB) in 60 folders, including things like forever that should be installed globally. Seems to be too much stuff. Better to check if it is about mean.io but creating new project with mean.io only. |
I did install Eclipse and Nodeclipse freshly after I encountered the bug. I also used a clean installation of Mean.IO, the bug still occurred. Also, it shouldn't matter if I have alot of node_modules, Eclipse should be able to handle large projects. JetBrains WebStorm handles the same project just fine. After you downloaded the zip and loaded the project, were you able to replicate the bug (did Eclipse hang when you tried copying from the source of a JavaScript file in the project)? |
after Eclipse restart, it freezes again during initial build... after closing the problematic project Eclipse is still using 75% or 3 of 4 core of CPU |
I submitted bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=442049 "Bug 442049 - Eclipse 4.4 (JSDT 1.6.0) freezes when expending project node under JavaScript Resource and/or making copy/paste operations" please vote for it and follow |
Work-around is to remove
Hint: on Windows you can use https://github.com/culmat/eExplorer to edit files inside closed Eclipse project There is also Terminals that comes with Enide Studio |
Looks like link to the zipped test project isn't working anymore. Could anybody share that project again and put a link to it here or in https://bugs.eclipse.org/bugs/show_bug.cgi?id=442049? Thanks in advance. |
@neatcode Viktor (lead of Eclipse JSDT) needs sources to check |
I don't have the original file from August, but reviewing my comment on August 17th -- you should be able to replicate the problem with a clean installation of mean.IO. Probably be sure to run npm install on mean.io too. |
It was on a windows box... from http://mean.io to install mean:
then import the created yourNewApp into nodeclipse and try to copy some code out of it with ctrl+c |
you might need to go into yourNewApp and run |
OK i just did all the steps and replicated the issue. Do the following from a Windows PC:
Then go into the yourNewApp directory and run
then create a
then import the project into Enide Studio by following the directions produced by the Your Enide Studio instance should hang with high CPU usage, every time you try this. |
@neatcode thanks for the instructions. And one more question: could you share your memory settings here? |
The memory settings are whatever is default for Enide Studio. |
In the past I tried increasing all of them, however, and the problem persisted. |
After drinking a bit I felt like admitting maybe I was being an ass with my previous answers. Here is my eclipse.ini (which I was ever so lazy to lookup before):
|
Thank to @neatcode @vrubezhny, I hope that it is enough to replicate Note that
(as mentioned on http://www.nodeclipse.org/updates/) |
Yes, it looks like I've got enough to replicate. Thanks! |
Eclipse-based Nodeclipse "Enide Studio" has support for MEAN though we have open issue Nodeclipse/nodeclipse#159
I followed the steps and got the same issue 75% (3 of 4 CPU cores) that finishes with GC overhead Sources (without (actually it uses full mean git repo https://github.com/linnovate/mean) |
Again, I overcomed by removing @vrubezhny Currently configuration only handles
JSDT Validation is disabled (JSHint-Eclipse is used instead) |
I have the same issue. Eclipse hangs when copy pasting from a client-side .js file in a node project while using Enide Studio. The file is about 700 lines long and has no external dependencies, it consists of an angular module. I tried removing jsNature in my project and it didn't help. I also tried adding the above to .jsdtscope and it didn't help. Any other ideas? I am not using mean.io. Edit: I was able to resolve this by removing a project from my workspace. It was a rather big one, the library https://github.com/deployd/deployd . |
@andreialecu Thanks for sharing. Did you managed finally to get project working? If Yes, then this is JSDT issue, and should be reported to |
Removing jsNature didn't help in my case. I also uninstalled the js hint Only thing that helped was to remove the other big project from my There are other reports of this problem here: I tried most of those solutions but none of them worked. |
By the way I only removed jsNature from the project I was editing at the I had this workspace configuration for several days with no issues. This started happening suddenly after a big refactor in one of the projects I also tried cleaning the workspace cache with no effect. |
Alright, as a test, I just readded the deployd project to the workspace and the problem started happening again immediately. I then removed the jsNature line from the deployd project and that fixed it! I can copy and paste inside my other project, and I can keep deployd in my workspace. Hope this helps |
@andreialecu, could you attach /.metadata/.log file (or/and .log backup files if it's empty) somehow? |
@vrubezhny log file is here: https://www.dropbox.com/s/rgae95brqjfuz0t/log.txt?dl=0 |
@andreialecu, thanks for your logs! The main problem I see is the lack of memory (and the many of OOM Exceptions in JSDT Parser). Increasing the available memory settings could help, but the chance is very small here... The parser/Compiler is most problematic field at the moment... You can try to update JSDT to the latest WTP 3.6.2/3.7 (JSDT Core plug-in should be of v.1.3.200) if you didn't update this yet - there was a change in Compiler... But, i'm not sure it's a related issue. And yes, the size of the project (and sideway projects that are live within the same workspace) matters. Thanks. |
I don't know if this helps, found this thread looking for JS Copy freezing my Eclipse 4.3 for Mac. I unchecked everything in the JS Validator + removed the JS Nature without any help, increased the heap to 4gb but still the same issue. In my case, hiding from Eclipse all build/dist/bower/vendor folder/files worked.. (resource filters) Cheers. |
Current summary:
And generally:
Please add more solution not here but at |
@elvisvoer and all I am going to disable JSDT by default because of this and ES6 support #194 |
Eclipse-based Nodeclipse "Enide Studio" has support for MEAN though we have open issue Nodeclipse/nodeclipse#159
I guess this have been fixed in Eclipse long time ago. Closing as old. |
When I attempt to copy some of my source code using ctrl+c or the right-click menu "copy" command in any of the .js files in one of my Node.js projects, Nodeclipse hangs every time. It spins the CPU up to 100% and takes up all available memory.
I have a zip file you can unzip and import the project to replicate the issue here: http://www78.zippyshare.com/v/80482621/file.html (Use the orange "Download Now" button, the others are ads)
Just unzip the file to a directory and import it into your workspace, then try to copy source code out of any of the .js files in the project. For instance, server.js in the root directory exhibits the problem on my PC.
Note that this issue does not exist in some of my other Node.js projects. The project I'm working on here is the standard "mean.io" boilerplate, so many people are likely to encounter the same problem if they try out Nodeclipse as mean.io is quite popular. I HAVE tried regenerating the project file for the project using "nodeclipse -prepare" (after deleting the old project files) and that generated a new project which I reimported, however the issue still exists.
Do you know what's going on here?
Nodeclipse version (From the about box):
Enide Studio 2014 based on preview of Eclipse 4.4 M4 Luna
Version: 0.11
Build id: org.apache.maven.model.Build@7e6abaff
"Eclipse Standard/SDK"
C:\Enide\workspace\testmeanapp1>java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
OS:
C:\Enide\workspace\testmeanapp1>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 8
OS Version: 6.2.9200 N/A Build 9200
(64bit Windows)
The text was updated successfully, but these errors were encountered: