Bug 29411 - Projects rebuilt after restart of Eclipse.
Summary: Projects rebuilt after restart of Eclipse.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-13 15:20 EST by Frank W. Ball CLA
Modified: 2003-02-10 10:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank W. Ball CLA 2003-01-13 15:20:03 EST
My projects are scrubbed and rebuilt every time I exit Eclipse and go back into
it. This is on RedHat 7.2, GTK 2.0.6. I'm currently running on I20030107 but it
was happening on M4 as well. No stack traces are in the log file.

My workspace is on a SMB share and I tried recreating it when I was running M4
after I noticed the problem but it didn't make a difference.

This problem coupled with the increase of Eclipse lockups (some days it's as
often as 1-2 times / hour) is a real productivity killer.
Comment 1 Kent Johnson CLA 2003-01-13 17:13:19 EST
Do any of your projects have major build errors?

Use the filter on the task list to see only the problems on the selected 
resource.

If a project has classpath problems or other major build errors, then full 
builds fail & any small change causes a rebuild.
Comment 2 Frank W. Ball CLA 2003-01-14 09:16:03 EST
I had several compile errors but I cleaned them up and it still wants to scrub
the output folder and rebuild after starting Eclipse. Once it does the initial
rebuild modify / build cycle is fine as long as Eclipse is running.
Comment 3 Kent Johnson CLA 2003-01-14 14:02:02 EST
How many projects do you have in your workspace? Does it affect all of them?

Are any stack traces written to the .log file on startup or during shutdown?
Comment 4 Kent Johnson CLA 2003-01-20 13:43:51 EST
Frank: Is this still reproducable? Can you provide anymore insight?
Comment 5 Frank W. Ball CLA 2003-01-20 14:01:24 EST
There are no stack traces in the log file. I'm running I20030115 now and it's
still happening although it's slightly more bearable as lockups don't seem to be
as frequent with I20030115.

I have 20 projects and all of them get rebuilt.

Is there any way to tell what caused a project to be rebuilt?
Comment 6 Kent Johnson CLA 2003-01-20 14:31:37 EST
But it only happens when you restart your workspace which saved successfully?

Or does it only happen after a crash (which is expected beahviour)?
Comment 7 Frank W. Ball CLA 2003-01-20 15:25:26 EST
It happens after a successful exit and restart, a crash or the case where I have
to kill it (i.e., Eclipse locks up).
Comment 8 Kent Johnson CLA 2003-01-20 15:56:11 EST
Alright let's turn on the builder tracing & see what is happening.

Can you please create a .options file in the your eclipse root directory with:

# Turn on debug tracing for org.eclipse.jdt.core plugin
org.eclipse.jdt.core/debug=true

# Reports incremental builder activity
org.eclipse.jdt.core/debug/builder=true


This is from the .options file in eclipse\plugins\org.eclipse.jdt.core_2.1.0.

Then run your workspace with a command line like:

d:\R2.0\eclipse\eclipse.exe -debug -consolelog -data d:\R2.0\workspace\plugins -
vm d:\jdk1.3\bin\java.exe -vmargs -Xmx150mb

Please paste the log (or part of it if its repetitive) into this PR.

thanks
Comment 9 Frank W. Ball CLA 2003-01-21 10:24:42 EST
I get this for every project:

Starting build of Project @ Tue Jan 21 10:37:51 EST 2003
About to read state...
Successfully read state for Tomcat
About to read state...
Successfully read state for Project
Binary classpath directory /Tomcat != Binary classpath directory /Project
Clearing last state : State for Project (#0 @ Tue Jan 21 10:34:07 EST 2003)
FULL build

My Tomcat project is referenced directly or indirectly by all of my other
projects. It's also the only one that wasn't using src/bin folders. Changing it
to use src/bin folders seems to have cleared up the problem.
Comment 10 Kent Johnson CLA 2003-01-27 14:49:09 EST
The build state was correctly written out, but we did not correctly read the 
project back in as an output folder.

thanks Frank.
Comment 11 David Audel CLA 2003-02-10 10:31:20 EST
Verified.