Bug 47469 - Cannot back out of UpdateMgr then use Distribution Zips
Summary: Cannot back out of UpdateMgr then use Distribution Zips
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Dorian Birsan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-25 17:02 EST by Brent Nicolle CLA
Modified: 2004-04-12 23:42 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 Brent Nicolle CLA 2003-11-25 17:02:31 EST
With 3.0M5

1. Start Eclipse
2. Help > Software Updates > Find and Install...  
> Search for new features to install
3. Add Update Site:
Name: CDT2.0
URL: http://update.eclipse.org/tools/cdt/updates/builds/2.0
4. Expand the new update site, but do not download any builds.
5. Determine that the build you want is not there.
6. Cancel out of the Update Mgr and close Eclipse.
7. As announced on the CDT downloads page, download:
http://download.eclipse.org/tools/cdt/downloads/2.0/M5RC1/cdt-2.0M5RC1-win32.zip
8. Extract the zip file into Eclipse's install directory.
9. Restart Eclipse.
10. Window > Open Perspective > Other...
Note that C/C++ Perspective is not there.
EXPECTED: C/C++ Perspective should be listed

Similarly, org.eclipse.cdt is not listed
in Help > About > Feature Details and > Plugin Details.

Okay, maybe I should have removed that Update Manager stuff.
Repeat the above, inserting the following steps: 
5.1 Help > Software Updates > Find and Install...  
> Search for new features to install
5.2 Select CDT2.0 and Remove

Unfortunately, that doesn't help either.
Blowing away my ECLIPSE_HOME/workspace directory didn't fix the problem.
Blowing away my ECLIPSE_HOME/.config directory finally provided a work-around.

I should be able to back out of Update Manager
then use old-school Distribution Zip files.

For example, after I had removed evidence of CDT2.0 from the Update Manager,
I found "cdt" mentioned in ECLIPSE_HOME/.config/platform.cfg.metadata:

site.0.url=platform:/base/
site.0.stamp=1071062324669
site.0.stamp.features=1070747247098
site.0.stamp.plugins=-1511552349
site.0.updateable=true
site.0.policy=USER-EXCLUDE
site.0.list.0=plugins/org.eclipse.cdt.managedbuilder.core_2.0.0/plugin.xml,plugi
ns/org.eclipse.cdt.launch_2.0.0/plugin.xml,plugins/org.eclipse.cdt_2.0.0/plugin.
xml,plugins/org.eclipse.cdt.debug.mi.ui_2.0.0/plugin.xml,plugins/org.eclipse.cdt
.core_2.0.0/plugin.xml,plugins/org.eclipse.cdt.ui_2.0.0/plugin.xml,plugins/org.e
clipse.cdt.win32_2.0.0/plugin.xml,plugins/org.eclipse.cdt.debug.ui_2.0.0/plugin.
xml,plugins/org.eclipse.cdt.debug.core_2.0.0/plugin.xml,plugins/org.eclipse.cdt.
make.core_2.0.0/plugin.xml
site.0.list.1=plugins/org.eclipse.cdt.doc.user_2.0.0/plugin.xml,plugins/org.ecli
pse.cdt.make.ui_2.0.0/plugin.xml,plugins/org.eclipse.cdt.managedbuilder.ui_2.0.0
/plugin.xml,plugins/org.eclipse.cdt.core.win32_2.0.0/fragment.xml,plugins/org.ec
lipse.cdt.source_2.0.0/plugin.xml,plugins/org.eclipse.cdt.debug.mi.core_2.0.0/pl
ugin.xml

... although removing these lines alone was insufficient to regain my unzipped 
perspective.
Comment 1 Dorian Birsan CLA 2003-11-25 17:12:16 EST
What Eclipse build are you using ?
If it is M5, then you may see the problem described in bug 47458.
The workaround is to enable the CDT feature as described in the bug.
Comment 2 Brent Nicolle CLA 2003-11-27 09:26:46 EST
Yes, I am using Eclipse 3.0 M5.

I tried the suggested workaround, and it didn't work completely:
The org.eclipse.cdt.win32 feature cannot be enabled because it
depends on the feature org.eclipse.cdt cannot be enabled.
This appears to be a problem with one of our feature.xml files.
Comment 3 Dorian Birsan CLA 2003-11-27 09:55:33 EST
So, do we close the bug? Do you expect any sort of fix from the update 
component? 
Comment 4 Brent Nicolle CLA 2003-11-28 17:27:35 EST
I'm in favour of a proper fix to bug 47458.
I'd be prepared to consider this bug too obscure.
Comment 5 Dorian Birsan CLA 2004-04-12 23:42:09 EDT
Closing as per your comment #4. Bug 47458 has been fixed.