Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351905 - Update of dependent feature not found when installing a new feature
Summary: Update of dependent feature not found when installing a new feature
Status: CLOSED DUPLICATE of bug 348124
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 17:26 EDT by Rajeev Dayal CLA
Modified: 2011-08-22 14:54 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajeev Dayal CLA 2011-07-12 17:26:45 EDT
Build Identifier:  20110615-0604

From what I can gather, if:

a) feature A depends on feature B, and 
b) an older version of feature B is already installed, and
c) we attempt to install feature A, then
d) the install will fail, because p2 will not attempt to update to the newer version of feature B as part of the installation process

In this particular situation, feature A is the Google Plugin for Eclipse, and feature B is WindowBuilder XML Core. The older version of feature B exists on the Indigo discovery site, and the newer version exists on GPE's update site (though it is not categorized). The Google Plugin for Eclipse requires the newer version of WindowBuilder in order to install correctly.

I'm not sure if the problem has to do with the lack of categorization, or the fact that the install process does not necessarily cause updates to existing features if they are already installed, even if the update would bring Eclipse into a consistent state.

Reproducible: Always

Steps to Reproduce:
1. Download and install Eclipse Indigo Java Edition
2. From the Indigo discovery site, install the WindowBuilder XML Core Feature
3. Install GPE from http://dl.google.com/eclipse/plugin/3.7 (the Google Plugin for Eclipse 3.7; you can skip the install of the SDKs)

Step #3 will fail with the following error:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Google Plugin for Eclipse 3.7 2.3.2.r37v201106211634 (com.google.gdt.eclipse.suite.e37.feature.feature.group 2.3.2.r37v201106211634)
  Software currently installed: WindowBuilder XML Core 1.0.0.r37x201106081533 (org.eclipse.wb.core.xml.feature.feature.group 1.0.0.r37x201106081533)
  Only one of the following can be installed at once: 
    WindowBuilder Databinding XML Core 1.0.0.r37x201106161417 (org.eclipse.wb.core.databinding.xml 1.0.0.r37x201106161417)
    WindowBuilder Databinding XML Core 1.0.0.r37x201106081533 (org.eclipse.wb.core.databinding.xml 1.0.0.r37x201106081533)
  Cannot satisfy dependency:
    From: GWT Designer Editor 2.3.2.r37x201106201351 (com.google.gdt.eclipse.designer.editor.feature.feature.group 2.3.2.r37x201106201351)
    To: org.eclipse.wb.core.xml.feature.feature.group 1.0.0.r37x201106161417
  Cannot satisfy dependency:
    From: Google Plugin for Eclipse 3.7 2.3.2.r37v201106211634 (com.google.gdt.eclipse.suite.e37.feature.feature.group 2.3.2.r37v201106211634)
    To: com.google.gdt.eclipse.designer.editor.feature.feature.group 2.2.0
  Cannot satisfy dependency:
    From: WindowBuilder XML Core 1.0.0.r37x201106081533 (org.eclipse.wb.core.xml.feature.feature.group 1.0.0.r37x201106081533)
    To: org.eclipse.wb.core.databinding.xml [1.0.0.r37x201106081533]
  Cannot satisfy dependency:
    From: WindowBuilder XML Core 1.0.0.r37x201106161417 (org.eclipse.wb.core.xml.feature.feature.group 1.0.0.r37x201106161417)
    To: org.eclipse.wb.core.databinding.xml [1.0.0.r37x201106161417]

However, following THESE steps will lead to a successful install:

1. Download and install Eclipse Indigo Java Edition
2. From the Indigo discovery site, install the WindowBuilder XML Core Feature
3. Add http://dl.google.com/eclipse/plugin/3.7 to the update site list, and choose to work with this update site
4. Uncheck the "Group Items by Category" option. 
5. Choose the "Google Plugin for Eclipse 3.7" and "WindowBuilder XML Core" features
6. Install will work, and will cause the existing version of WindowBuilder XML Core to be updated
Comment 1 DJ Houghton CLA 2011-08-22 14:54:20 EDT
I believe this is the same scenario as bug 348124 where we need to update nested features when updating the parent.

*** This bug has been marked as a duplicate of bug 348124 ***