Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 138116 - Cannot install new features except for Calisto Discovery Site
Summary: Cannot install new features except for Calisto Discovery Site
Status: RESOLVED DUPLICATE of bug 132029
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Update-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 17:04 EDT by Nicolas Rouquette CLA
Modified: 2007-07-29 09:19 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 Nicolas Rouquette CLA 2006-04-22 17:04:09 EDT
I have tried 3.2RC1 on MacOSX (10.4.6) and Linux (RHEL4)

On Linux, I can install the features from
the Calisto discovery site plus a set of features
from other external/local sites.

On MacOSX, I can only install the calisto features.
For the other features (external/local), the update
process works just like it does on linux all the way
up to the end where the "Finish" button of the Install
window should be enabled but, somehow, remains disabled.

Thus, the only thing I can do is to cancel the installation
of features from external/local sites. If I try to mix features
from Calisto's discovery site + other sites, the same thing happens,
i.e., the "Finish" button remains disabled. It is only enabled
when installing Calisto features. What's the magic behind this
intriguing behavior? 

This behavior is specific to 3.2RC1 and 3.2RC1a.
3.2M5 and 3.2M6 worked properly; however,
between 3.2M6 and 3.2RC1, I installed Java 1.5_06

http://docs.info.apple.com/article.html?artnum=302983

Unfortunately, Apple's update mechanism removed
the previous version of 1.5 from my system
and it is not obvious how to revert this update
(it doesn't show up on the update logs!)

Below are the details of my platform.
The SDK download installs the eclipse.ini file under Eclipse.app/Contents/MacOS/
but this created problems when debugging applications with PDE 
(at least it did in 3.1.1)

I've been using a script to move the eclipse.ini file under the eclipse/ directory and create a symlink eclipse -> Eclipse.app/Contents/MacOS/eclipse
so that I can debug Eclipse applications w/ PDE.
Except for this twist, the rest is unchanged.

*** Platform Details:

*** System properties:
awt.nativeDoubleBuffering=true
awt.toolkit=apple.awt.CToolkit
eclipse.buildId=I20060419-1640
eclipse.commands=-os
macosx
-ws
carbon
-arch
ppc
-launcher
/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/eclipse
-name
Eclipse
-showsplash
600
-exitdata
f0000
-consoleLog
-configuration
/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.config
-data
/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.workspace
-feature
org.eclipse.sdk.ide
-debug
/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.options
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
eclipse.consoleLog=true
eclipse.ee.install.verify=false
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1145736613722
eclipse.vm=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
eclipse.vmargs=-Xdock:icon=Eclipse.app/Contents/Resources/Eclipse.icns
-XstartOnFirstThread
-Xbootclasspath/p:./eclipse.jdt.debug_3.2.0.v20060411/jdi.jar
-Xmx2000M
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dorg.eclipse.swt.internal.carbon.noFocusRing
-jar
/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/startup.jar
eof=eof
file.encoding=MacRoman
file.encoding.pkg=sun.io
file.separator=/
ftp.nonProxyHosts=apple.com|*.apple.com|mac.com|*.mac.com|idisk.mac.com|*.idisk.mac.com|a1.phobos.apple.com|*.a1.phobos.apple.com|ax.phobos.apple.com.edgesuite.net|*.ax.phobos.apple.com.edgesuite.net|metrics.apple.com|*.metrics.apple.com
gopherProxySet=false
http.nonProxyHosts=apple.com|*.apple.com|mac.com|*.mac.com|idisk.mac.com|*.idisk.mac.com|a1.phobos.apple.com|*.a1.phobos.apple.com|ax.phobos.apple.com.edgesuite.net|*.ax.phobos.apple.com.edgesuite.net|metrics.apple.com|*.metrics.apple.com
http.proxyHost=127.0.0.1
http.proxyPort=8080
http.proxySet=true
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment
java.awt.printerjob=apple.awt.CPrinterJob
java.class.path=/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/startup.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar
java.class.version=49.0
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
java.ext.dirs=/Users/rouquett/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.io.tmpdir=/tmp
java.library.path=.:/Users/rouquett/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_06-112
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Apple Computer, Inc.
java.vendor.url=http://apple.com/
java.vendor.url.bug=http://developer.apple.com/java/
java.version=1.5.0_06
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor="Apple Computer, Inc."
java.vm.version=1.5.0_06-64
line.separator=

mrj.version=1040.1.5.0_06-112
org.eclipse.swt.internal.carbon.noFocusRing=
org.eclipse.swt.internal.carbon.smallFonts=
org.osgi.framework.bootdelegation=*
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
org.osgi.framework.language=en
org.osgi.framework.os.name=mac os x
org.osgi.framework.os.version=10.4.6
org.osgi.framework.processor=ppc
org.osgi.framework.system.packages=javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.events,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.3.0
org.osgi.supports.framework.extension=true
os.arch=ppc
os.name=Mac OS X
os.version=10.4.6
osgi.arch=ppc
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start
osgi.bundlestore=/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.config/org.eclipse.osgi/bundles
osgi.configuration.area=file:/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.config/
osgi.configuration.cascaded=true
osgi.debug=/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.options
osgi.framework=file:/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/plugins/org.eclipse.osgi_3.2.0.v20060413-1200.jar
osgi.framework.beginningstartlevel=1
osgi.framework.shape=jar
osgi.framework.version=3.2.0.v20060413-1200
osgi.install.area=file:/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/
osgi.instance.area=file:/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.workspace/
osgi.instance.area.default=file:/Users/rouquett/Documents/workspace/
osgi.logfile=/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.workspace/.metadata/.log
osgi.manifest.cache=/Users/rouquett/Projects/Eclipse/areas.Powerphone.local/tk2.config/org.eclipse.osgi/manifests
osgi.nl=en_US
osgi.os=macosx
osgi.sharedConfiguration.area=file:/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/configuration/
osgi.splashLocation=/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/plugins/org.eclipse.platform_3.2.0.v20060413-1200/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse/plugins
osgi.ws=carbon
path.separator=:
socksNonProxyHosts=apple.com|*.apple.com|mac.com|*.mac.com|idisk.mac.com|*.idisk.mac.com|a1.phobos.apple.com|*.a1.phobos.apple.com|ax.phobos.apple.com.edgesuite.net|*.ax.phobos.apple.com.edgesuite.net|metrics.apple.com|*.metrics.apple.com
sun.arch.data.model=32
sun.boot.class.path=./eclipse.jdt.debug_3.2.0.v20060411/jdi.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar
sun.boot.library.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries
sun.cpu.endian=big
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeBig
sun.jnu.encoding=MacRoman
sun.management.compiler=HotSpot Client Compiler
sun.net.client.defaultConnectTimeout=60000
sun.net.client.defaultReadTimeout=60000
sun.os.patch.level=unknown
user.country=US
user.dir=/Users/rouquett/Projects/Eclipse/tools/tk2/SDK-3.2RC1a/eclipse.macosx.carbon.ppc/eclipse
user.home=/Users/rouquett
user.language=en
user.name=rouquett
user.timezone=America/Los_Angeles

*** Features:
org.eclipse.jdt (3.2.0.v20060412-1600-F7sno8fVsPoX4VZ) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.2.0.v20060412-1600-F7sno8fVsPoX4VZ) "Eclipse Java Development Tools SDK"
org.eclipse.pde (3.2.0.v20060412-0800-6zXJJzJkSV-IeIG) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.2.0.v20060412-0800-6zXJJzJkSV-IeIG) "Eclipse Plug-in Development Environment Developer Resources"
org.eclipse.platform (3.2.0.v20060324-zXLbgME25YaqZWd) "Eclipse Platform"
org.eclipse.platform.source (3.2.0.v20060324-zXLbgME25YaqZWd) "Eclipse Platform Plug-in Developer Resources"
org.eclipse.rcp (3.2.0.v20060412-SRDNfyds4S-i1VV) "Eclipse RCP"
org.eclipse.rcp.source (3.2.0.v20060412-SRDNfyds4S-i1VV) "Eclipse RCP Plug-in Developer Resources"
org.eclipse.sdk (3.2.0.v20060404-JMSVz59zAvFFKjs) "Eclipse Project SDK"
org.eclipse.team.extras (3.1.100.v20060314------0842282536) "Eclipse FTP and WebDAV Support"
Comment 1 Dejan Glozic CLA 2006-04-22 21:41:10 EDT

*** This bug has been marked as a duplicate of 132029 ***
Comment 2 Nicolas Rouquette CLA 2006-04-22 21:50:25 EDT
In the spirit of my feeble attempts to write good bug reports:
http://wiki.eclipse.org/index.php/Field_Guide_to_Callisto_Bugs#Tips_for_Writing_Winning_Bug_Reports

I'd like to note that it is hard to track down some bugs
either because bugzilla makes it hard to find out if they have
been reported or, if one decides to probe further, because
it is hard to get close enough to where the bug is happening.

Here's a step-by-step trace of my search; if there is an easier
way to find bugs, I'd like to know!

1) Q: where should I start looking?

Q': Where do we find the behavior behind the menu:

Help | Software Updates => Find & Install...

I couldn't find the answer; so I switched to PDE.

2) Q: Which plugin implements the "Software Updates" functionality?

PDE's Plug-In Registry view is hard to use.
It'd be great to have a king of tab organization
instead of tree navigation so that we could filter/sort
on table columns/rows.

In this case, I found the org.eclipse.update.core
plugin defines an extension point: org.eclipse.update.core.installHandlers
and there are 3 extensions registered: (default, delta, jar delta)

This seemed a reasonable place to start looking.
At this point, I needed to run the plugin under the debugger...

3) Q: Which plugin defines a registered extension?

in this case: where is org.eclipse.update.internal.core.DefaultInstallHandler defined?

how many plugins will I need besides this one to have enough source code
to track down the install behavior?

One way would be to "import..." the plugins from the actual target
and debug these. But then, if I want to add a "System.out.println(...)"
I might not be able to do that; additionally, I might not have the
source code for the installed plugins (I didn't)

So, I downloaded various org.eclipse.update* plugins from dev.eclipse.org
To be picky, I should have downloaded the *specific* tag of theplugins
corresponding to my installed version of Eclipse; but since we're
talking bleeding-edge 3.2RC1/RC1a; I was sloppy.

Ok, I download org.eclipse.update.* plugins in eclipse.
Now, I want to run them.

But wait... I had installed *all* the features of Calisto's discovery site.
That would make PDE slow...
Unfortunately, there isn't a "pre-defined target" corresponding to just the SDK in:
 Window | Preferences... => Plug-In Development | Target Platform.

There are "Base RCP (with source)" and "Base RCP (binary only)"
Is there a way to define a new target? Not that I can find. Why?

Ok, I do it the slow way...
- deselect all plugins
- select the workspace' org.eclipse.update* plugins
- select the target's org.eclipse.pde stuff 
  (without pde.runtime, there's no error log view even if some error dialog
   message says to look in the error log!)

Sprinkle a few debugger points in the install handlers.
Finally(!), we're ready to give chase to the pesky bugger...

4) It's gone!

5) Q: Where has the bug gone?

Ok, at this point, I can use the launch config dialog
to check the tag of the installed version of org.eclipse.update & friends.

CVS diff => bingo!

In being sloppy and checking out the HEAD of
org.eclipse.update.ui, i didn't get the version from 3.2RC1a
(3.1.100.v20060413)

The crucial difference is in:
org.eclipse.update.internal.ui.wizards.TargetPage

3.2RC1a has version 1.76
HEAD is at 1.77

The difference is small in this file but it is enough to cause this bug.

So, this was a long & convoluted story to just say
that it would be nice to have version 1.77 of TargetPage.java
instead of version 1.76.

Since I posted the bug, it has been marked as a duplicate of another
known bug. However, why is is that this simple fix hasn't been
included in RC1 or RC1a?
Comment 3 Dejan Glozic CLA 2006-04-22 22:00:58 EDT
>Since I posted the bug, it has been marked as a duplicate of another
>known bug. However, why is is that this simple fix hasn't been
>included in RC1 or RC1a?

Because it was introduced by a seemingly innocent patch and not noticed on Windows and many Linux machines. It only happens on machines where native code for computing available space is not available. The fix is trivial, as you have already noticed.
Comment 4 Eclipse Webmaster CLA 2007-07-29 09:19:36 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991