Community
Participate
Working Groups
Build ID: Build id: I20080612-2000 Steps To Reproduce: This is a problem found in the non-p2 driver. 1. Create an update site project 2. Add feature org.eclipse.platform to the project 3. Run the Build action 4. The following error message is displayed. Problems during export Unable to find feature: org.eclipse.equinox.p2.user.ui. This makes it impossible to patch the feature org.eclipse.platform through the update site. Feature org.eclipse.equinox.p2.user.ui should be removed since non-p2 driver doesn't have it More information:
I'm changing the severity of the problem since it may prevent us from patching the product in the future.
I can reproduce with a simple update site containing a feature with an optional prerequisite that is missing.
Created attachment 105301 [details] patch
There is a bug in the error handling for missing features. Optional features should be allowed to be missing, the exception is escaping when it should be caught. The platform feature itself is correct and won't be changed. For the purposes of building patches, having the p2.ui feature available at build time would allow things to proceed.
Does this mean a workaround is to have the p2 feature present at build time but it can be safely omitted from the actual update site? If so that seems like a reasonable workaround to me. Can the problem be corrected for 3.4.1?
(In reply to comment #5) > Does this mean a workaround is to have the p2 feature present at build time but > it can be safely omitted from the actual update site? If so that seems like a > reasonable workaround to me. Can the problem be corrected for 3.4.1? > Yes, that should be the case. You would want to omit not just the feature but all the plugins it includes as well. This is fixable for 3.4.1
Created attachment 105956 [details] patch updated with test
Fixed in HEAD. Pascal, please review for 3.4.1
done in HEAD & 3.4.1