This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 298011 - provided e4 examples do not compile or run in M2
Summary: provided e4 examples do not compile or run in M2
Status: CLOSED DUPLICATE of bug 295605
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 16:47 EST by Dan Rubel CLA
Modified: 2010-06-21 12:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Rubel CLA 2009-12-16 16:47:08 EST
I tried loading the examples into e4 M2 and could not get them to run. Steps to reproduce below. It appears that following the e4 example installation directions cause the example source to be loaded from "head", but I'm loading it into e4 M2. I'm guessing that the examples "head" compiles against the current I-build and that I should be loading some prior version of the examples that runs in e4 M2.

Steps to reproduce:
+ Download and unzip eclipse-e4-SDK-incubation-1.0M2-win32.zip
+ Launch Eclipse
+ Select "e4 > Generate e4 Example Project" to create the org.eclipse.e4.examples.psf project
+ Right click on org.eclipse.e4.examples.psf/e4-examples.psf and select "Import Project Set..."
       then follow prompts to import two projects
+ The installation instructions ( http://wiki.eclipse.org/E4/Install ) imply that the e4 SDK has everything in it already

  "e4 provides an "all in one" download. This is a product that contains
   everything you would ever need to develop e4: the latest Eclipse SDK, 
   EMF SDK, and all of the e4 bundles and source code.
   Simply download the zip, unzip it, and run ... "

but neither the Contacts demo nor the e4photo example would compile.
+ The e4photo page ( http://wiki.eclipse.org/E4/UI/Running_the_photo_demo ) indicates that the "e4 UI" should be installed (but I thought that the e4 SDK had everything I needed?) so I used the update manager to install "e4 UI" from the M2 update site ( http://download.eclipse.org/e4/downloads/drops/S-1.0M2-200911201200/repository/ )
+ Neither example compiles

I poked around the contact manager and found that several changes had been checked in to head *after* M2 had been released. After reverting a handful of files to earlier versions, I found I could successfully compile and run the Contacts Demo. I suspect the same issue exists for the Photo Demo.

My recommendation is to build a *.psf file that M2 specific so that CVS head can progress with the I-builds, but consumers of e4, who typically work with milestones, can load an earlier version of the samples that works with that build. Is it possible to include tags in a *.psf file to load a specific version from CVS?
Comment 1 Paul Webster CLA 2009-12-16 19:32:25 EST
Yes, the 0.9 version of Generate PSFs uses the R0_9 tag so that it would make sense.  But the one in M2 only uses HEAD.

If we replace Generate PSFs with the "Running the XXXX Demo" menu items, we can include a HEAD PSF and a Milestone PSF on each of the wiki pages.

Would that be acceptable?

PW
Comment 2 Dan Rubel CLA 2009-12-17 10:55:32 EST
Yes.

To reiterate:
For the next milestone, each example needs to be tagged for that milestone and a PSF created that references those tags.
Comment 3 Dan Rubel CLA 2010-01-14 10:42:51 EST
We need to tag the examples *and* modify the generated *.psf file to reference those tags.
Comment 4 Paul Webster CLA 2010-01-14 14:45:21 EST
I've updated the demo PSF to use tag R1_0M3 and tagged the 2 demo projects.  Released for I20100114-1500

When we release M3 I'll move the demo project tags.

PW
Comment 5 Dan Rubel CLA 2010-02-25 16:25:47 EST
As per conversation in today's meeting, it would be best if the build process inserted the appropriate tag in the *.psf file
Comment 6 Paul Webster CLA 2010-02-26 08:33:27 EST
I've updated the PSF and tagged the demos to R1_0M4

This will be released for the 12:30 build.

PW
Comment 7 Paul Webster CLA 2010-06-21 12:56:31 EDT
In RC1 we'll update the menu based on bug 295605 and remove the auto-generated project set.

PW
Comment 8 Paul Webster CLA 2010-06-21 12:58:21 EDT

*** This bug has been marked as a duplicate of bug 295605 ***