Bug 116681 - Plugin not found during update site build
Summary: Plugin not found during update site build
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.1.2   Edit
Assignee: Andrew Niefer CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 11:18 EST by Samuel Wu CLA Friend
Modified: 2007-02-25 07:52 EST (History)
1 user (show)

See Also:


Attachments
plugin_not_found (106.38 KB, image/jpeg)
2005-11-16 11:20 EST, Samuel Wu CLA Friend
no flags Details
patch (2.09 KB, patch)
2005-11-28 14:21 EST, Andrew Niefer CLA Friend
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Wu CLA Friend 2005-11-16 11:18:02 EST
This is a problem found by our customer when he tried to setup his internal 
update site for his users.
Here is the scenario of the problem
1. Download eclipse 3.1.1, PDE and JDT 3.1.1
2. Start this instance and create an update site project
3. Add JDT, PDE, platform and RCP to the update site project and build the 
whole update site
4. Download eclipse 3.1.0, PDE and JDT 3.1.0
5. Start 3.1.0 instance and update it to 3.1.1 using the update site created in 
step 3 and restart the eclipse
6. Create an update project in the upgraded eclipse and add the four features 
to the update site
7. Build the update site and an error message about org.eclipse.pde.core 3.1.0 
not found is issued

Why does it look for org.eclipse.pde.core_3.1.0 since it's already replaced by 
org.eclipse.pde.core_3.1.1?
The screen capture is attached.
Comment 1 Samuel Wu CLA Friend 2005-11-16 11:20:39 EST
Created attachment 30072 [details]
plugin_not_found
Comment 2 Samuel Wu CLA Friend 2005-11-17 09:22:27 EST
Have you got a chance to look at this defect? Since it's a customer situation, 
we really appreciate if you can give us response soon. Thanks.
Comment 3 Branko Tripkovic CLA Friend 2005-11-17 12:01:11 EST
The error is coming from pde build, please take a look at it.
Comment 4 Samuel Wu CLA Friend 2005-11-18 09:59:35 EST
Hello there, any update?
Comment 5 Andrew Niefer CLA Friend 2005-11-28 14:21:20 EST
Created attachment 30723 [details]
patch

After the update both the 3.1.0 and the 3.1.1 features exist in the install.  When building the update site a container feature is generated that references the feature you are building.  However, it seems that the feature build script generator when processing the container is looking up the included features by name without a version and is finding the 3.1.0 feature first.  The 3.1.0 feature references the 3.1.0 plugin which isn't in the state because the 3.1.1 plugin was resolved instead.

As a work around you could delete the old 3.1.0 features from the install/feature directory.

Attached is a patch to use the version in addition to the feature id.
Comment 6 Pascal Rapicault CLA Friend 2005-11-28 15:07:03 EST
Proposing for 3.1.2.
The fix has been released for the 3.2 stream (bug #118283).
Comment 7 Pascal Rapicault CLA Friend 2006-01-06 15:07:54 EST
Fix released.
Comment 8 Omry Yadan CLA Friend 2007-02-25 07:52:02 EST
This problem reappeared for me using 3.2.1.
initial build works, after I change the feature and plugin versions to a newer one, I get an error stating that the plugin with the older version was not found.
the eclipse error log contains nothing about it.