Bug 18212 - Java Build Paths no updated correctly when checking out multiple projects
Summary: Java Build Paths no updated correctly when checking out multiple projects
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 17485 24450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-29 13:39 EDT by Tod Creasey CLA
Modified: 2002-10-29 10:48 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-05-29 13:39:20 EDT
Build 20020521

If you load projects into the workbench more than one at a time if there is
already a version of the project in the workbench with the same java build path
it wil not get updated properly.

STEPS
1) Import all of Eclipse are binary projects using the PDE import
2) Open a CVS repository connection to dev.eclipse.org
3) Select org.eclipse.core.resources, org.eclipse.core.resources.linux, and
org.eclipse.core.runtime
4) select Check out a project. You will have errors because
org.eclipse.core.resources will still have a reference to its (now deleted) jar
file.
5) load org.eclipse.core.resources by itself. The problem will go away
Comment 1 Kevin McGuire CLA 2002-05-30 16:06:18 EDT
Mike, please investigate.
Comment 2 Kevin McGuire CLA 2002-05-30 16:21:31 EDT
Tod, does step (5) follow immediately after the other steps, or did you 
reimport everything and try just importing the one?

I am trying to understand if it works differently if you do just one, or do 
many.

PDE now un-PDE's a project when its loaded from source.  So I think this bug 
may have gone away. If I do step (5) on its own in today's build it works ok.

Comment 3 Tod Creasey CLA 2002-05-30 16:36:51 EDT
Step 5 is just a step to verify that loading one of them by itself works. It is 
discrete from the others and should work if you do it by itself.
Comment 4 Michael Valenta CLA 2002-06-01 10:45:00 EDT
This still occurs in F2 when you check out multiple projects. It appears that 
the .classpath file of the first loaded project does not get overridden but the 
others do. That is why loading one project does not have this problem. Someone 
is overwriting the .classpath that is loaded from the repository with what they 
have in memory. Perhaps the scenario is something like "get the delta for the 
first .classpath and the write out all .classpaths before the delta for the 
others are processed". I'm not sure if it's a PDE problem or a JDT problem so 
I'm forwarding it to PDE.
Comment 5 Michael Valenta CLA 2002-06-01 10:47:32 EDT
Actually, I think JDT is a better palce for this.
Comment 6 Michael Valenta CLA 2002-06-01 10:48:17 EDT
*** Bug 17485 has been marked as a duplicate of this bug. ***
Comment 7 Philipe Mulet CLA 2002-06-04 10:02:32 EDT
The .classpath file can only be overriden if:

1. discarded by mistake (marker is now being added if this scenario occurs)
2. someone changed the classpath using IJavaProject#setRawClasspath

Moving to PDE for investigation
Comment 8 Wassim Melhem CLA 2002-10-08 14:04:41 EDT
It is definitely a JDT issue, not a PDE issue.
PDE overwrites the classpath only when the user explicitly runs the 'Update 
Classpath' action.
Another place when PDE sets the classpath is during the 'import external 
plugins and fragments' operation.
In both instances where PDE acts on the classpath, the classpath is updated 
correctly.
The whole check-out procedure and subsequent problems described above have 
nothing to do with PDE.

Moving to JDT...

cc: Andrew because he opened a related defect - bug 24450
Comment 9 Wassim Melhem CLA 2002-10-08 14:09:38 EDT
*** Bug 24450 has been marked as a duplicate of this bug. ***
Comment 10 Philipe Mulet CLA 2002-10-22 10:17:39 EDT
Is it still an issue ? 
Comment 11 Debbie Wilson CLA 2002-10-22 11:13:16 EDT
Just verified with M2 that this is still an issue.
Comment 12 Jerome Lanneluc CLA 2002-10-22 12:10:56 EDT
I cannot reproduce with build 20021018 (M2) following Tod's steps or Debbie's 
steps. In both cases, the .classpath files are in sync with the repository, and 
everything builds fine.

Do either of you have more info?
Comment 13 Jerome Lanneluc CLA 2002-10-23 09:41:31 EDT
I got the problem with M20021018 but not with I20021018. Debbie, by any chance 
did you use M20021018 to test it?
Comment 14 Debbie Wilson CLA 2002-10-28 11:11:04 EST
I got this with the build currently labelled as M2 on the eclipse.org 
downloads page.  The label for the zip file is eclipse-SDK-I20021018-win32.zip 
which I believe is the 2.1 stream and not the 2.0.2 stream which is where you 
are seeing the problem.  
Comment 15 Jerome Lanneluc CLA 2002-10-29 05:13:25 EST
I tried again with build M2, and could not reproduce. Something must be missing 
from the steps...
Comment 16 Tod Creasey CLA 2002-10-29 08:43:49 EST
I cannot replicate in 20021023 either.
Comment 17 Debbie Wilson CLA 2002-10-29 10:08:01 EST
Unable to reproduce with M2 today - gotta stay away from that cough syrup.  
Sorry for making you try it again.
Comment 18 Jerome Lanneluc CLA 2002-10-29 10:10:33 EST
So is it ok to close?
Comment 19 Tod Creasey CLA 2002-10-29 10:18:34 EST
OK by me.

BTW I think the problem Deb was seeing was the PDE bug that wipes out your 
ECLIPSE_HOME.
Comment 20 Debbie Wilson CLA 2002-10-29 10:29:51 EST
OK by me too
Comment 21 Jerome Lanneluc CLA 2002-10-29 10:48:29 EST
Closing