Community
Participate
Working Groups
I20101207-2000 Missing source for Target Platform 'Installation' in runtime workbench - new workspace - import org.eclipse.ui.workbench from CVS - launch a runtime workbench - in the runtime, import org.eclipse.ui from CVS => 'Plug-in Dependencies' classpath container shows the bin folder of org.eclipse.ui.workbench - in the runtime, add a new target platform, choose 'Installation', and select the I20101207-2000 install - activate the new target => 'Plug-in Dependencies' classpath container shows the JAR for org.eclipse.ui.workbench - open type org.eclipse.ui.internal.Workbench => Source not found Works fine for classes that are not imported in the host workbench, e.g. org.eclipse.core.commands.AbstractHandler
I'll need to go over your steps again to determine if this is a bug or if it is just target weaving. When self hosting, the default target platform will use projects from the host workspace.
I'm guessing that the source lookup is assuming that target weaving is taking place and pointing to an incorrect source location. The source bundles are in the target and associated with their plug-ins correctly.
New Gerrit change created: https://git.eclipse.org/r/67538
The problem is that TargetWeaver#getWeavedSourceLibraryName(IPluginModelBase, String) wrongly assumes that the target platform always includes all bundles from the host, and then wrongly concludes that the source must be found in the host workspace.
API Tools has a similar problem, see bug 488694. You can use those steps to reproduce this bug as well. At the end, e.g. type org.eclipse.core.runtime.content.BinarySignatureDescriber doesn't have a source attachment. This type is from the required bundle I20160223-0800/plugins/org.eclipse.core.contenttype_3.5.100.v20160120-1402.jar. TargetWeaver#getWeavedSourceLibraryName(..) wrongly applies the "bin" folder from the dev properties to this external bundle. The Gerrit fixes that.
Gerrit change https://git.eclipse.org/r/67538 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=c5033c5a9fb4f03b184be2bcb67fc7ba358d2fb3
Thanks Markus ! Verified, tested and reviewed this one. Looks good for 4.6RC1
Markus, can you verify this one?