Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333253

Summary: [RAP] Can't define target platform in Indigo
Product: [Modeling] EMF Reporter: Miles Parker <milesparker>
Component: RelengAssignee: Michal Ruzicka <michal.ruza>
Status: RESOLVED WONTFIX QA Contact: Kenn Hussey <Kenn.Hussey>
Severity: normal    
Priority: P3 CC: Ed.Merks, michal.ruza
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 333588    
Bug Blocks:    

Description Miles Parker CLA 2010-12-27 16:53:14 EST
I've just spent some time trying to get RAP up and running under Indigo M4 and am stymied. But no matter what I do, I get a missing dependency for org.eclipse.emf.ecore.

I'm going on http://wiki.eclipse.org/RAP/EMF_Integration. The "EMF RAP - Eclipse Modeling Framework SDK for the Rich Ajax Platform" entry specified no longer exists so I first tried "EMF RAP Target Components" and then added the runtime. Next I tried just adding the features in manually, i.e. EMF Common and Edit.  But there doesn't seem to be a feature for EMF Ecore itself.

At the least it looks like EMF RAP needs updated documentation but perhaps something is going on with the features themselves.

Edit was the closest component I could find. I'm putting this as a blocker not because it's urgent, but because I can't use EMF RAP at all at this point.
Comment 1 Miles Parker CLA 2010-12-27 17:29:18 EST
OK, I git upon the magic combination of features. It seems to be:

EMF Base Framework
EMF Core Framework
EMF Common
EMF RAP Runtime
EMF RAP Target Components
RAP Target Components

I'm guessing that some subset of these is actually needed. So there is a work around but the basic packaging/doc issue remains.
Comment 2 Ed Merks CLA 2010-12-28 10:03:50 EST
Kenn,

I was pretty sure we're building the EMF RAP feature, including its SDK, and that it's all available in our usual update site as well as Indigo.  If not, that needs some attention.
Comment 3 Kenn Hussey CLA 2010-12-29 09:08:47 EST
(In reply to comment #2)
> Kenn,
> 
> I was pretty sure we're building the EMF RAP feature, including its SDK, and
> that it's all available in our usual update site as well as Indigo.  If not,
> that needs some attention.

Yes, the RAP features are there. The only difference is now the base Ecore (and common) features are part of the "base" build and located in a different (sub)repository. However, selecting "EMF RAP Target Components" and letting it pick up the required dependencies should work...
Comment 4 Michal Ruzicka CLA 2010-12-29 13:27:09 EST
(In reply to comment #3)
> The only difference is now the base Ecore (and
> common) features are part of the "base" build and located in a different
> (sub)repository. However, selecting "EMF RAP Target Components" and letting it
> pick up the required dependencies should work...

I'm afraid this is caused by the new build structure in that the dependencies on the artifacts produced by the base build don't don't specify strict version ranges any more. (They used to be _included_ in the respective features, but now they are only _required_, that is why the change in the depnedency version ranges.)
The consequence is that these artifacts are not picked up by the target platform provisioning algorithm any longer.

Adding the:
  EMF Base Framework
feature to the target platform explicitly should resolve the issue.
Comment 5 Miles Parker CLA 2010-12-29 14:56:18 EST
(In reply to comment #4)
> I'm afraid this is caused by the new build structure in that the dependencies
> on the artifacts produced by the base build don't don't specify strict version
> ranges any more. (They used to be _included_ in the respective features, but
> now they are only _required_, that is why the change in the depnedency version
> ranges.)
> The consequence is that these artifacts are not picked up by the target
> platform provisioning algorithm any longer.
> 
> Adding the:
>   EMF Base Framework
> feature to the target platform explicitly should resolve the issue.

Yeah, exactly. I know it won't build with the two Runtime features. So the current workaround then is to add:

RAP Target Components
EMF RAP Target Components
EMF Base Framework
Comment 6 Kenn Hussey CLA 2010-12-29 15:19:26 EST
(In reply to comment #5)
> Yeah, exactly. I know it won't build with the two Runtime features. So the
> current workaround then is to add:
> 
> RAP Target Components
> EMF RAP Target Components
> EMF Base Framework

I've updated the wiki page to note that, as of the Indigo release, the base feature must also be installed.
Comment 7 Miles Parker CLA 2010-12-29 19:31:15 EST
I tried with the three above and it actually looks like you need more than that..otherwise I got a bunch of errors at Runtime and the app didn't work. This is what I was able to get work..

EMF Base Runtime
EMF RAP Common UI
EMF RAP Edit UI
EMF RAP Runtime
EMF RAP Target Components

Again, probably all not necessary but it does look as though there is an issue with the provisioning/build of features. Note that I have "Include Required Software" unchecked.
Comment 8 Kenn Hussey CLA 2010-12-30 23:24:07 EST
(In reply to comment #7)
> I tried with the three above and it actually looks like you need more than
> that..otherwise I got a bunch of errors at Runtime and the app didn't work.
> This is what I was able to get work..
> 
> EMF Base Runtime
> EMF RAP Common UI
> EMF RAP Edit UI
> EMF RAP Runtime
> EMF RAP Target Components

Hmm, that doesn't seem quite right. The EMF RAP Target Components feature is supposed to include the other EMF RAP features... Michal, can you look into that?

> 
> Again, probably all not necessary but it does look as though there is an issue
> with the provisioning/build of features. Note that I have "Include Required
> Software" unchecked.

We'll take a look...
Comment 9 Ed Merks CLA 2011-01-10 11:11:32 EST
This is really a releng issue, so I'll reassign it to that.
Comment 10 Kenn Hussey CLA 2011-01-10 11:56:54 EST
In order to set things up the way they were in Helios (given the new base/core split), a bug in Buckminster needs to be fixed (see bug 333588).
Comment 11 Ed Merks CLA 2018-01-22 11:58:10 EST
I'm resolving all old releng bugs because the build has been replaced with a Tycho build:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=529487

And the update site has been superseded by:

http://download.eclipse.org/modeling/emf/emf/builds/

If there are outstanding issues, please report a new bug based on the new build infrastructure and the new update site.