Community
Participate
Working Groups
Build Identifier: 20100527-0614 (Helios RC3) Eclipse hangs when opening large JavaScript files, such as ext-all.js from the ExtJS library. Reproducible: Always Steps to Reproduce: 1. Download the following: http://www.extjs.com/products/js/download.php?dl=extjs321 2. Put the file ext-all.js into an Eclipse project. 3. Open it in the Text editor, it opens correctly. 4. Open it in the JavaScript editor. Eclipse hangs forever -- I had to force-quit it.
What type of Eclipse project? I put that file in a JavaScript project and it opened in 1-2 seconds.
Created attachment 171571 [details] ExtJS 2.2.1
I just created a new project with no natures or builders. But I have a correction: the bug doesn't happen with the file I mentioned. It happens with the attached file from ExtJS 2.2.1 (I couldn't find a download link). The main difference seems to be that all the code is on one line.
Long lines have been a problem for us in the past, but even then it has meant an opening time closer to a minute than forever. And formatting the file usually gets around the problem.
Nitin, weren't we working on a fix for the long-line problem? Did anything come of that?
Still not able to reproduce this problem with the newly attached file. It took a bit of time, maybe 2 or 3 seconds to open the file. Attempted in a JavaScript project and a plain project. I did the following: 1. Created a new workspace. 2. Created a new project with default settings. 3. Copy and pasted the file into my project. 4. Double clicked to open. I am using a WTP 3.2 RC4 build. Anything different that you are doing?
I just repeated the same steps as you. The editor itself appears in maybe 30 seconds. But after it opens, I get the busy cursor, so I can't do anything (even close the editor). I gave up after about five minutes and forced Eclipse to quit -- not sure if it would have recovered after that. I have PDT and Subclipse installed (although they're not in use for this project). Other than that it's a clean install of 3.6M3, with WST 3.2.0.v20100524.
Also -- this is the Cocoa build: eclipse-jee-helios-RC3-macosx-cocoa-x86_64.tar.gz
We already have a bug open for slow performance on very long lines. Let's track this one there as well. https://bugs.eclipse.org/bugs/show_bug.cgi?id=310741 *** This bug has been marked as a duplicate of bug 310741 ***