Bug 85835 - Configuration confused after switching products and changing plugin selection
Summary: Configuration confused after switching products and changing plugin selection
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 10:59 EST by Nick Edgar CLA
Modified: 2009-05-13 13:00 EDT (History)
2 users (show)

See Also:


Attachments
1108753987071.log (43.34 KB, text/plain)
2005-02-18 14:44 EST, Konrad Kolosowski CLA
no flags Details
config.ini (1.14 KB, text/plain)
2005-02-18 14:45 EST, Konrad Kolosowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2005-02-18 10:59:38 EST
build I20050217-1602

- create a new RCP app launch config
- make sure the config location is not used by any existing launch config
- specify @none as the workspace location (this may be irrelevant, but it's what
I was testing at the time)
- select the IDE product
- launch
- exit
- change the product to the browser product (in org.eclipse.ui.examples.rcp.browser)
- in the plugins tab, choose only org.eclipse.ui.examples.rcp.browser and its
prerequisites
- launch
- it gets lots of errors, trying to process the IDE plugins (I have lots of
plugin projects loaded in my workspace)
- it should not be seeing these plugins

The workaround is to check "Clear the configuration area before launching"
Comment 1 Wassim Melhem CLA 2005-02-18 14:25:59 EST
just verified that the config.ini generated by PDE is correct every time and 
updated with the correct product.
It's a runtime problem.
Comment 2 Thomas Watson CLA 2005-02-18 14:38:10 EST
Can you attach a log file?
Comment 3 Konrad Kolosowski CLA 2005-02-18 14:44:39 EST
Created attachment 18111 [details]
1108753987071.log

Here one from mine reproducing the problem.
Comment 4 Konrad Kolosowski CLA 2005-02-18 14:45:31 EST
Created attachment 18112 [details]
config.ini

And the corresponding config.ini that was used
Comment 5 Thomas Watson CLA 2005-02-18 15:27:52 EST
I am able to reproduce.  The problem is caused by switching to a configuration 
that does not use update.configurator to install bundles.  When you switch to 
an RCP application all of the bundles of the application are put onto the 
osgi.bundles list.  EclipseStarter tries to make the set of installed bundles 
match the list in osgi.bundles.  The problem is we do not process any bundles 
not installed by EclipseStarter (i.e. bundles with locations starting with 
initial@).  

As a result we uninstall update.configurator because it is no longer in the 
osgi.bundles list and we try to install the rest of the bundles on the list.  
But the bundles are already installed under "update@" locations so we fail to 
install these bundles.  The rest of the errors in the log are unresolve errors 
that resulted from update.configurator being uninstalled.

EclipseStarter would have to become a lot smarter to prevent such errors from 
occurring.  The basic problem here is switching from an environment controlled 
by update.configurator to an environment only controled by the list of bundles 
in the osgi.bundles.  Should we attempt to solve this? or just state that it 
is not supported without clearing your configuration area?
Comment 6 Pascal Rapicault CLA 2005-03-16 11:00:26 EST
Given the time line, this should be a readme.
Comment 7 DJ Houghton CLA 2005-06-20 14:28:32 EDT
README entry from Tom. McQ, please add to the README file. Thanks.

We'll leave this bug open as there is still work to do for 3.2.

--------------------

Configuration can become invalid when removing org.eclipse.update.configurator

When launching an Eclipse Application from within the Eclipse IDE it is possible
to select the set of plug-ins that are included in the Eclipse Application. 
Removing the org.eclipse.update.configurator plug-in from the set of plug-ins to
an existing configuration can cause the configuration to become invalid.  This
can result in extra plug-ins installed in the target application that are not
resolved.  To work around this, after the org.eclipse.update.configurator
plug-in has been removed, the target configuration area should be cleared before
launching. (bug 85835)
Comment 8 DJ Houghton CLA 2005-06-23 10:10:10 EDT
Created bug 101446 to address adding this to the README.
Clearing the target milestone of this bug because there is real work to do.
Comment 9 Oleg Besedin CLA 2007-05-30 11:13:37 EDT
Removed "[doc]" tag from the summary - corresponding doc bug was fixed.

Should this bug be closed as "won't fix"? The last update is two years ago.
Comment 10 John Arthorne CLA 2009-05-13 13:00:32 EDT
This is no longer relevant now that update.configurator is obsolete.