Bug 561947 - Exported Eclipse RCP Template not working
Summary: Exported Eclipse RCP Template not working
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2020-04-09 06:16 EDT by Stefan Prieschl CLA
Modified: 2024-04-05 01:40 EDT (History)
1 user (show)

See Also:


Attachments
Example Project Code (62.42 KB, application/x-zip-compressed)
2020-04-09 06:16 EDT, Stefan Prieschl CLA
no flags Details
Log for exported application (20.42 KB, application/octet-stream)
2020-04-09 06:16 EDT, Stefan Prieschl CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Prieschl CLA 2020-04-09 06:16:03 EDT
Created attachment 282394 [details]
Example Project Code

I created a project using the RCP 3.X application (minimal) Template. Then I added a product file to be able to run and export the application. Running the application works correctly. The code can be found in the attachment.

But when I export the application using Eclipse Product export wizard, there are problems. It is not possible to start the exported application. I get different InjectionExceptions like this one:
 org.eclipse.e4.core.di.InjectionException: Unable to process "CommandProcessingAddon.broker": no actual value was found for the argument "IEventBroker".
Comment 1 Stefan Prieschl CLA 2020-04-09 06:16:43 EDT
Created attachment 282395 [details]
Log for exported application
Comment 2 Stefan Prieschl CLA 2020-04-09 06:34:29 EDT
This error also occurs for The Eclipse 4 RCP Application Template. There we do not need to create a product file, since it is already contained in the template.

I am using the latest Eclipse (2020-03).
Comment 3 Stefan Prieschl CLA 2020-04-24 11:39:52 EDT
I found out that the templates can easily be fixed by adding Start Levels using following steps: Product File -> Configuration -> Start Levels -> Add Recommended...

The eclipse 3 template includes no product file. The one in the example was created by me. So that was my fault. But the e4 template includes the invalid product file without the start levels.

So there are 3 open points:
1. Eclipse 4 Template: We should fix the product file, since the start levels are missing. This should be easy.
2. Eclipse 3 Template: Here we could think about adding a product file. This should also be easy.
3. General besides the templates: I think we should add a warning, if the start levels are missing. Maybe we could also somehow define default start levels that are used if we don't define them. In former versions Eclipse RCP worked without defining them explicitly.
Comment 4 Eclipse Genie CLA 2022-04-15 08:40:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Eclipse Genie CLA 2024-04-05 01:40:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.