facebook

Every file save starts workspace rebuild…? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #226673 Reply

    martind
    Member

    Hi,

    A strange problem has just appeared: whenever I save a file the entire workspace is rebuilt. So even if I’m just making a small change to a JSP page, for example, all .java source files are cleaned and recompiled. This is clearly very frustrating, as every tiny change causes Eclipse to lock up for several minutes. The previous version of the application did’nt do this – I’ve compared settings and can’t see any difference… Do you have any idea what could be causing this?

    I’m using Weblogic 6, Eclipse 3.0.1 & MyEclipse 3.8.4 on Windows XP.

    Thanks for your help.

    Martin.

    #226677 Reply

    Riyad Kalla
    Member

    Try shutting down MyEclipse and using the -clean command as outlined here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-30.html#343

    Clearly this shouldn’t be happening, very annoying indeed…

    #226691 Reply

    martind
    Member

    Thanks Riyad,

    I tried this a couple of times, but it didn’t help – still cleaning output folders when any file is saved.

    Do you have any other ideas?

    M.

    #226692 Reply

    Riyad Kalla
    Member

    Double check your log file, i wonder if an exception of sorts is taking place that is causing Eclipse to think it should build…

    <workspace dir>\.metadata\.log (look near the bottom).

    Also do you have automatic build on? (Project > Build automatically) You should if you don’t.

    #226700 Reply

    martind
    Member

    Automatic build is on.

    Could the exception below be relevant? Looks like it might be, but doesn’t make much sense to me.

    —————————————————————————————————————
    —————————————————————————————————————
    !ENTRY org.eclipse.core.runtime 4 2 Mar 15, 2005 14:16:03.71
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.getHotSwapTargets(JavaHotCodeReplaceManager.java:327)
    at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.notifyTargets(JavaHotCodeReplaceManager.java:281)
    at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.resourceChanged(JavaHotCodeReplaceManager.java:218)
    at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:283)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
    at org.eclipse.core.runtime.Platform.run(Platform.java:747)
    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:277)
    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:151)
    at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:172)
    at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:900)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:163)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:212)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    !SESSION Mar 15, 2005 14:20:47.561 ———————————————
    eclipse.buildId=M200409161125
    java.version=1.4.2_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
    Command-line arguments: rvmeclipse

    —————————————————————————————————————
    —————————————————————————————————————

    #226708 Reply

    Riyad Kalla
    Member

    What builders do you have listed under your project properties > Builders panel?

    #226746 Reply

    martind
    Member

    I have an EAR Project with the following builders:
    – J2EEProjectValidator
    – DeploymentDescriptorValidator
    – Validation
    – Structured Document and Model Builder
    – DeploymentBuilder

    Then there are a couple of web apps with:
    – WebClasspathBuilder
    – Java Builder
    – J2EEProjectValidator
    – DeploymentDescriptorValidator
    – Validation
    – Structured Document and Model Builder
    – DeploymentBuilder

    Finally there are several EJB Projects with these:
    – Java Builder
    – DeploymentDescriptorValidator
    – Validation
    – Structured Document and Model Builder
    – DeploymentBuilder

    I compared these to the previous version of the project (which builds correctly) and there is no difference.

    M.

    #226764 Reply

    Riyad Kalla
    Member

    Admitedly this one is stumping me, so I asked another for some help and this is what he had to say:

    He said his workspace is cleaned and rebuild on *any* file save, then used a
    JSP file as an example. Is it also true on any Java file save? Can he
    create a new project and see if the same thing occurs in it? Does he have
    any other external plugins installed? Is his file system local? Is it a
    clearcase VOB, by any chance? Could something be modifying the files
    externally on disk?

    Can you answer those questions?

    #226941 Reply

    martind
    Member

    Lads,

    I managed to ‘fix’ this problem by making new projects in a clean workspace and copying the source files across from the previous project which had worked fine. Now, I thought that was exactly was I did the first time round, so I still have no idea what caused the problem. The filesystem is on a network and I can only imagine that the files where pointed to / being modified from somewhere else.

    I’m none the wise, but it works, so who cares…!

    Thanks for your help.

    M.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Every file save starts workspace rebuild…? [Closed]

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