Community
Participate
Working Groups
Since Neon, when creating a new Plug-in Project using one of the following Templates: - RCP 3.x application (minimal) - aka 'Hello RCP' - RCP 3.x application with a view - RCP 3.x application with an intro - RCP 3.x Mail Template the launch of the generated application fails, with the following error: Unresolved requirement: Require-Bundle: org.eclipse.ui -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.108.1.v20160929-1045"; singleton:="true" org.eclipse.ui [56] Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport" -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.108.2.v20161025-2029"; singleton:="true" org.eclipse.ui.workbench [63] Unresolved requirement: Import-Package: org.eclipse.e4.ui.internal.workbench.renderers.swt -> Export-Package: org.eclipse.e4.ui.internal.workbench.renderers.swt; bundle-symbolic-name="org.eclipse.e4.ui.workbench.renderers.swt"; bundle-version="0.14.0.v20160525-0940"; version="0.0.0"; x-friends:="org.eclipse.ui.workbench" org.eclipse.e4.ui.workbench.renderers.swt [46] Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.workbench.swt; bundle-version="0.9.0" -> Bundle-SymbolicName: org.eclipse.e4.ui.workbench.swt; bundle-version="0.14.1.v20160829-0832"; singleton:="true" org.eclipse.e4.ui.workbench.swt [35] Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=osgi.component)(version>=1.2)(!(version>=2.0)))" Unresolved requirement: Import-Package: org.eclipse.e4.ui.internal.workbench.swt -> Export-Package: org.eclipse.e4.ui.internal.workbench.swt; bundle-symbolic-name="org.eclipse.e4.ui.workbench.swt"; bundle-version="0.14.1.v20160829-0832"; version="0.0.0"; x-friends:="org.eclipse.e4.ui.workbench.addons.swt,org.eclipse.e4.ui.workbench.renderers.swt,org.eclipse.ui.workbench" The problem is also reproducible with Oxygen latest I-build I20170123
Lars, can you please look at this case.
Created attachment 266427 [details] Proposed patch This is a proposed patch: it adds the following 3 dependencies to all 3.x Templates: - org.eclipse.equinox.ds - org.eclipse.equinox.util - org.eclipse.equinox.event Let me know if there is a better way. Thank you Vincenzo
(In reply to Vikas Chandra from comment #1) > Lars, can you please look at this case. Will do, thanks.
New Gerrit change created: https://git.eclipse.org/r/89431
Hi Lars, Vikas, I pushed also the same patch as a Gerrit review. What I noticed is that for Neon the following dependencies are enough: - org.eclipse.equinox.ds - org.eclipse.equinox.util But for Oxygen also - org.eclipse.equinox.event is needed. So, in the end, adding all of them is ok both for Neon and Oxygen. Does this solution make sense for you? Thank you Vincenzo
Lars, any update on this one?
Root cause is that OSGi switch to capacities for providing events and ds. PDE should fix Bug 509436 to create the a correct launch configuration. But as it looks like Bug 509436 will not make it into 4.7, I suggest to apply Vincenzos fix so that the templates start out of the box. @Vikas, I plan to test and commit the fix from Vincenzo. Feel free to revert, if you plan to find a better solution.
Gerrit change https://git.eclipse.org/r/89431 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=935a0d7b6f833c803885e0290533a692492f0477
This is a workaround for the missing functionality in PDE to support capacities. Thanks you Vincenzo for the patch.
Thank you Lars and Vikas! It's always a pleasure to contribute. Vincenzo
Vincenzo, can you please verify in latest oxygen build
Hi Vikas, I tested with build eclipse-SDK-I20170517-2000 and confirm that now all four RCP 3.x application plug-ins wizards are working successfully! Thank you Vincenzo