facebook

JSP Copy/Paste and Build Problems

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #236201 Reply

    mstrong4867
    Member

    – 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

    #236212 Reply

    mstrong4867
    Member

    Forgot to mention another major plugin, AspectJ; however, I am almost certain that the problems were happening before I added the AspectJ plugin.

    #236226 Reply

    Scott Anderson
    Participant

    Mike,

    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.

    #236231 Reply

    Riyad Kalla
    Member

    * 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

    #237379 Reply

    Robert Gacki
    Member

    I´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 coworkers

    Whats about the JSP editor views (Design, Preview,…)? Is there a way of disabling those views, which are not necessary to me?

    #237386 Reply

    Scott Anderson
    Participant

    A 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.

    #237389 Reply

    mstrong4867
    Member

    I 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

    #237393 Reply

    mstrong4867
    Member

    <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

    #237433 Reply

    Robert Gacki
    Member

    Thank 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 :).

    #237437 Reply

    Riyad Kalla
    Member

    Mike thank you for the details about your workaround, I have filed a bug for us to investigate what is going on here.

    #237449 Reply

    Riyad Kalla
    Member

    Mike: 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)

    #237465 Reply

    Robert Gacki
    Member

    I 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).

    #237466 Reply

    Riyad Kalla
    Member

    rtgacki,
    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)

    #237469 Reply

    mstrong4867
    Member

    Pardon 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

    #237477 Reply

    Riyad Kalla
    Member

    Mike thank you for the additional info, we are looking into this.

Viewing 15 posts - 1 through 15 (of 22 total)
Reply To: JSP Copy/Paste and Build Problems

You must be logged in to post in the forum log in