Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 283942 - Xpand 0.71 Sample Project Workflow Errors
Summary: Xpand 0.71 Sample Project Workflow Errors
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 297953 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-19 00:22 EDT by Porter CLA
Modified: 2013-02-21 08:09 EST (History)
4 users (show)

See Also:


Attachments
generator.mwe with correct classnames (1.04 KB, application/xml)
2009-07-20 10:15 EDT, ekkehard gentz CLA
sven.efftinge: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Porter CLA 2009-07-19 00:22:21 EDT
Build ID: 20090619-0625

Steps To Reproduce:
Tested the new Xpand project wizard in M2T Xpand 0.71
1. /File/New/Other/Xpand/Xpand Project/Next/check "create sample"/Finish
2. In the new project run the MWE workflow in /src/workflow/generator.mwe
3. Workflow fails with severe errors reported including classes not found.


More information:
Some of the generated class references in the sample MWE file are obviously wrong e.g. org.eclipse.mwe.emf.StandaloneSetup should be org.eclipse.emf.mwe.utils.StandaloneSetup.

Other classes not found include org.eclipse.mwe.emf.Reader,org.eclipse.m2t.type.emf.EmfRegistryMetaModel,
and org.eclipse.xtend.xpand2.Generator.

Plugin dependency path in the sample project seems to be OK.
Comment 1 Christian Dietrich CLA 2009-07-19 07:16:24 EDT
Following Plugin dependencies are missing:

org.eclipse.emf.mwe.utils
org.eclipse.emf.ecore.xmi
org.eclipse.xpand2.output
org.antlr.runtime
com.ibm.icu
org.eclipse.core.runtime
org.eclipse.jdt.core
Comment 2 ekkehard gentz CLA 2009-07-20 10:15:32 EDT
Created attachment 142017 [details]
generator.mwe with correct classnames
Comment 3 ekkehard gentz CLA 2009-07-20 10:16:04 EDT
just wanted to report the same, because while writing my blog I wanted to give the tip,
that before moving the old workspace
a short test after installation would be a good idea,
so I tried the New Xpand Project Wizard + sample checked.

for others reading this bug:
you habve to add these Dependencies:

org.eclipse.emf.mwe.utils;bundle-version="0.7.1",
 org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
 org.eclipse.jface.text;bundle-version="3.5.0",
 org.antlr.runtime;bundle-version="3.0.0",
 com.ibm.icu;bundle-version="4.0.1",
 org.eclipse.core.runtime;bundle-version="3.5.0",
 org.eclipse.jdt.core;bundle-version="3.5.0"
 
 and you have to change the classnames from generator.mwe:
 these are the correct ones
 
 org.eclipse.emf.mwe.utils.StandaloneSetup
 org.eclipse.emf.mwe.utils.Reader
 org.eclipse.xtend.check.CheckComponent
 org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel
 org.eclipse.xpand2.Generator
 org.eclipse.xpand2.output.JavaBeautifier
 
Comment 4 Karsten Thoms CLA 2009-08-24 02:51:12 EDT
Fixed in HEAD. Changes made to EclipseHelper, XptendXpandProjectWizard and files in package org.eclipse.xtend.shared.ui.wizwards.example.
Comment 5 Karsten Thoms CLA 2009-11-16 16:15:21 EST
Was already fixed with last comment.
Comment 6 Karsten Thoms CLA 2009-12-17 00:34:15 EST
*** Bug 297953 has been marked as a duplicate of this bug. ***
Comment 7 Karsten Thoms CLA 2013-02-21 08:09:18 EST
Bug resolved before Xpand 1.2 release date => Closing