- This topic has 21 replies, 5 voices, and was last updated 19 years, 2 months ago by Robert Gacki.
-
AuthorPosts
-
mstrong4867Member– System Setup ——————————-
Operating System and version: Windows XP
Eclipse version: 3.1
Eclipse build id: I20050627-1435
Fresh Eclipse install (y/n): define “fresh” :O) I installed a fresh Eclipse 3.1 for the MyEclipse 4.0 milestone 2.
If not, was it upgraded to its current version using the update manager? Yes – Eclipse, itself has been maintained by the update manager.
Other installed external plugins: QuickReX, Commons4E, JSP Formatter (never had problems w/these w/MyEclipse before, but, of course, it’s possible one or more is no longer compatible w/the latest MyEclipse)
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 4
MyEclipse version: 4.0.0 GA
Eclipse JDK version: 1.4.2.09
Application Server JDK version: 1.4.2.09
Are there any exceptions in the Eclipse log file? no– Message Body ——————————-
Hi, guys.
After upgrading to MyEclipse 4.0 (both with the preliminary milestone versions and also with the latest GA release), I began having these problems. I did not have these issues with Eclipse 3.0.2 / MyEclipse 3.2.8.
I am having two killer problems. At a glance, since I see no other postings, I suspect I have either configured things poorly, or that I have some other issue that’s my fault. :O)
Problem One – Builds
* JSP pre-compiling is interminably, unbearably slow.
* Project Cleans / Builds always include the JSPs even though I unchecked JSP validation. I can’t turn them off.
* If I terminate the JSP phase of the build, even though some additional build steps sometimes follow, the project’s “build state” does not seem to be healthy. One strange behavior is that java.lang.util classes are not resolvable and are marked as such in any java file I open.Problem Two – Editing
* Long, painful, pregnant pauses (approx 8 to 10 seconds and sometimes much longer) after cutting and pasting small snippets of JSP code from one place to another. It can also happen at times even after a simple, direct edit. It is as though MyEclipse is comprehensively recompiling the whole JSP and bogging down in some analysis of all referenced items or trying something similarly ambitious. :O)
* The Java completion within <%= … %> stanzas is nice, but things sieze up for a similarly long, pregnant pauses.Any suggestions?
Thanks!
Mike
mstrong4867MemberForgot to mention another major plugin, AspectJ; however, I am almost certain that the problems were happening before I added the AspectJ plugin.
Scott AndersonParticipantMike,
This looks like an installation problem caused by upgrading from a milestone build. This has been known to cause issues, as documented in the original announcement here: http://myeclipseide.com/PNphpBB2+file-viewtopic-t-8782.html
I’d highly recommend a fresh Eclipse 3.1 / 4.0GA installation as specified, in parallel to your current configuration, to resolve the issues.
Riyad KallaMember* JSP pre-compiling is interminably, unbearably slow.
Define unbearably slow. JSP compilation is a VERY slow process and can take anywhere from 1-3seconds per file. This is on par with other JSP compilations (IntelliJ, JBuilder) as well. Are you seeing longer than this?
* Project Cleans / Builds always include the JSPs even though I unchecked JSP validation. I can’t turn them off.
If you turned off JSP validation it shouldn’t build them, I just verified this locally with a rather large Web Project. I cleaned it and all the JSPs rebuilt, then I turned off JSP validation at the project level and cleaned it again, this time only the classes rebuilt. You can set validation at the global workbench level or at the project level, are you sure you set it at the appropriate level and then didn’t override it with project-specific settings?
* If I terminate the JSP phase of the build, even though some additional build steps sometimes follow, the project’s “build state” does not seem to be healthy. One strange behavior is that java.lang.util classes are not resolvable and are marked as such in any java file I open.
I’ve never seen this behavior occur, sounds odd.
* Long, painful, pregnant pauses (approx 8 to 10 seconds and sometimes much longer) after cutting and pasting small snippets of JSP code from one place to another. It can also happen at times even after a simple, direct edit. It is as though MyEclipse is comprehensively recompiling the whole JSP and bogging down in some analysis of all referenced items or trying something similarly ambitious. :O)
* The Java completion within <%= … %> stanzas is nice, but things sieze up for a similarly long, pregnant pauses.“pregnant pauses” is a great description of the issue. This is almost always caused by not giving MyEclipse enough memory on launch, what command line arguments are you using when you start MyEclipse? We always suggest atleast 256m.
To try and clear up some of the “weirdness” above, try and use the -clean command line option as outlined here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343
Then change your command line args (assuming you don’t have a bunch) to look something like this:
-vmargs -Xms128m -Xmx256m
Robert GackiMemberI´m suffering from the same problem as mike does. I removed the M2 build and deleted the eclipse folder before I installed everything again (same locations, which is mandatory in my system). It is working a bit better after the clean installation, but not enough. Waiting upto 5 seconds on cut-copy-paste actions and code inspections infuriates me.
Summary:
+ Deinstallation of MyEclipseIDE M2, Deletion of eclipse folder
+ Installation of both on same locations
+ -vmargs -Xms512m -Xmx512m
+ No deployment when saving
+ System is fast enough
+ Infuriated user, harried coworkersWhats about the JSP editor views (Design, Preview,…)? Is there a way of disabling those views, which are not necessary to me?
Scott AndersonParticipantA couple of things come to mind that will speed things up.
You can turn off real-time analysis (while you type) of the files by deselecting Window > Preferences > MyEclipse > Editors > Common Editor Preferences > Analyze annotations while typing. You should also turn off “Show quick fixables” in the same location.Whats about the JSP editor views (Design, Preview,…)? Is there a way of disabling those views, which are not necessary to me?
Adding the additional tabs won’t affect source editing speed, provided that you don’t flip to them. However, you can open an editor without the design aspects by right-clicking and selecting “Open With…” > MyEclipse “Classic” JSP Editor.
mstrong4867MemberI think I got rid of the compilation problem by disarming JSP validation in my preferences. It’s not happening to me now. I also did a clean install of Eclipse 3.1 and MyEclipse 4.0.
<b>On another note…</b> :O)
Also, when editing JSP’s, doing a CTL-C to cut a region of text, makes the IDE sieze up for about 30 to 45 seconds.
I know this is different from the JSP compilation issue, but it’s yet another JSP-related productivity killer / nerve-racker :O) that cropped up in 4.0 GA.
I have <b>not</b> found an answer to this one yet.
Good luck!
Mike
mstrong4867Member<b>D’oh</b> 😳 sorry
I didn’t re-read the whole thread closely enough (been awhile since I posted it :O) – the ctl-c problem <b>is</b> the same issue in that this was a multi-issue posting. Duh.
Yeah, I’ve never solved the killer cut problem. <b>My workaround</b> is to copy with the <b>MOUSE</b>. Selecting the region to copy with the mouse, then using the right-mouse menu’s copy and paste entries seems to work w/o provoking the sieze up.
Just fyi.
Mike
Robert GackiMemberThank you for the advice Scott. It´s better now. I declared the classic editor as default and turned off the analyze-while-typing-crap.
Hope Mike isn´t using a Mac :).
Riyad KallaMemberMike thank you for the details about your workaround, I have filed a bug for us to investigate what is going on here.
Riyad KallaMemberMike: Did you mean using the mouse’s context menu in the designer view OR in the source editor view? (We are trying to narrow down the differences in code paths)
Robert GackiMemberI think he uses the mouse’s context menu in the source editor view (I never used the designer view). Copy-cut-paste-actions are still a problem on my eclipse, too. Sometimes the clipboard object is not written or lost (not copied, cut).
Riyad KallaMemberrtgacki,
Does using the right-click mouse context menus fix the problem on your setup when only using the source editor? (Again, we are trying to establish the different code paths and why one has an issue and the other doesn’t)
mstrong4867MemberPardon me for responding to multiple previous posts at once, rather than just your last post, rtgacki.
It’s the source editor. I poked into the design editor a few times, but have not been able to make much use of it. Since we are using Tiles, the JSPs are essentially JSP fragments, but don’t have JSPF extensions. So, the design stuff hasn’t been tremendously beneficial in our case.
The cut/copy-n-paste sieze up is only in the JSP editor, and only when I use hot keys to copy (e.g., CTL-C). If I use the right mouse context menu, and select copy, move to the target location, right mouse and select paste, then it works fine, with no delay.
No, I’m not using a Mac ;o), although, I’ve had a yearning desire to since they put UNIX underneath it and have always lusted for the video (and general multimedia) editing prowess of those guys… but I digress. :O) System details were in my initial posting.
Let me know if you need forced dumps, logs, or anything else, my friends.
Mike
Riyad KallaMemberMike thank you for the additional info, we are looking into this.
-
AuthorPosts