Bug 101277 - Workspace (project) rebuilds if you open projects
Summary: Workspace (project) rebuilds if you open projects
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 RC4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-06-22 11:44 EDT by Rajiv Kanaujia CLA
Modified: 2009-08-30 02:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Kanaujia CLA 2005-06-22 11:44:16 EDT
This clears the output directory, rebuild everything. Is unacceptable loss of 
time if you work on large projects, which I do. I observed this behavior in 
eclipse-SDK-3.1RC3. This was not a problem in 3.1 M5a.
Comment 1 Rajiv Kanaujia CLA 2005-06-22 11:46:47 EDT
This happens once the machine date changes. So if you closed the project and 
opened it the next day, it rebuilds.
Comment 2 Philipe Mulet CLA 2005-06-22 15:45:50 EDT
Kent - pls investigate. 

Isn't this simply a consequence of build state (with timestamp addition) to have
been changed ? If so, then this should only occur once ever.
Comment 3 Rajiv Kanaujia CLA 2005-06-22 16:10:54 EDT
Additional usecase:
Build Automatically is enabled.
You have more than one project open in workspace. In the property of the 
project, at Java Build Path, exclude some packages on one project. Save the 
project. Observe that the whole workspace is rebuild, even project that have 
no dependencies to the one that was changed.
Comment 4 Kent Johnson CLA 2005-06-22 16:15:06 EDT
Please provide a reproduceable testcase for your last comment.

As for rebuilding a project when it is opened -> we have to since it has not 
seen any changes since it was closed.

If this did not happen in a previous milestone, then it was a bug which has 
been fixed.
Comment 5 Rajiv Kanaujia CLA 2005-06-22 16:20:09 EDT
Consider working on five projects, each with 5000+ Java files. The delay to 
start working is immense.
I think this is a bug – the project/workspace should refresh and build, only 
if resources have changed. Not because “system time” has changed. This was the 
behavior in the earlier release.
Comment 6 Kent Johnson CLA 2005-06-22 16:24:27 EDT
Why are you closing projects frequently?


Or do you mean starting up your workspace?

If so, then we need a reproduceable testcase since it does not happen to us.
Comment 7 Rajiv Kanaujia CLA 2005-06-22 16:36:25 EDT
Opening and closing project multiple times during a day is a common IDE use 
case. Starting the workspace the next day, if your projects were open also 
results in the similar "rebuild". I have already mentioned additional two use-
cases to ease the process.
Comment 8 Kent Johnson CLA 2005-06-23 10:17:58 EDT
"Opening and closing project multiple times during a day is a common IDE use 
case."

No its not. Every time you close a project, its the same as if you deleted it 
from your workspace. When you reopen it, its the same as importing a new 
project.

We need reproduceable testcases that show the other problems you are 
describing.

Please reopen this PR when you attach the testcases.
Comment 9 Rajiv Kanaujia CLA 2005-06-24 10:04:45 EDT
“Every time you close a project, its the same as if you deleted it from your 
workspace.”

This is wrong approach. Unless you close (and optionally export for backup) 
and delete the project, it is not termed or treated as deleted. Note that 
there is a separate action for deleting a project. If you have around two 
project of 5000 files each, closing one of the project reduces the 
warnings/errors on the Problem view window and JVM memory usage as well. That 
is the reason you "must" be allowed to close the project multiple time – which 
is in sync with Eclipse3.1M5a.  

Additional observation:
Do not close the project and shutdown the Eclipse IDE. Next day start the 
Eclipse IDE and try to launch an Application (running it) via IDE. The process 
immediately cleanups the output directory and workspace is rebuild.
Therefore, something in the code is triggering the output directory cleanup, 
when it should not.
Comment 10 Kent Johnson CLA 2005-06-28 13:15:45 EDT
Please attach repeatable testcases to demonstrate full builds on startup.


As for how close & open projects behave, its been the same for years. If a 
milestone had a bug that did not rebuild the project, that's irrelevant. It 
was a bug that has since been fixed.
Comment 11 Rajiv Kanaujia CLA 2005-06-28 13:31:16 EDT
This bug is (somehow) fixed in 3.1RC4
Comment 12 Kent Johnson CLA 2005-06-28 14:22:22 EDT
Closing...
Comment 13 Denis Roy CLA 2009-08-30 02:06:29 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.