Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Setup Xpand workflow: No Definition 'MyTemplate::main ...' found!
Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #777597] Tue, 10 January 2012 19:43 Go to next message
Julian Lettner is currently offline Julian LettnerFriend
Messages: 2
Registered: January 2012
Junior Member
Hello!

I am trying to set up an Xpand workflow but the following exception is raised instead.

0    ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component  of type org.eclipse.xpand2.Generator: 
	EvaluationException : No Definition 'MyTemplate::main for pointPath::Model' found!
	[23,35] on line 1 'EXPAND MyTemplate::main FOREACH xxx'

0    ERROR Mwe2Launcher       - Problems running workflow blub: No Definition 'MyTemplate::main for pointPath::Model' found!
java.lang.RuntimeException: Problems running workflow blub: No Definition 'MyTemplate::main for pointPath::Model' found!
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:99)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: org.eclipse.emf.mwe.core.WorkflowInterruptedException: No Definition 'MyTemplate::main for pointPath::Model' found!
	at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:247)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:97)
	... 5 more

I reduced my setup to the following files (paths are relative from workspace root '/'), but the problem still persists.
(Assume that I am stupid and don't know anything.)

[/CodeGenerators/src/blub.mwe2]
module blub

Workflow {

	component = org.eclipse.xtext.mwe.Reader {
		path = "../LegoExamples/input"
		register = tue.glt.lego.points.PointPathStandaloneSetup {}
		load = {
			slot = "xxx"
			type = "Model"
		}
	}

	component = org.eclipse.xpand2.Generator {
		metaModel = org.eclipse.xtend.typesystem.emf.EmfMetaModel {
			metaModelPackage = "tue.glt.lego.points.pointPath.PointPathPackage"
		}
		expand = "MyTemplate::main FOREACH xxx"
		outlet = {
			path = "../LegoExamples/output"
		}
	}
}

[/CodeGenerators/src/MyTemplate.xpt]
«IMPORT tue::glt::lego::points::pointPath»

«DEFINE main FOR Model»
«ENDDEFINE»

[/DslProject/src/tue/glt/lego/points/PointPath.xtext]
grammar tue.glt.lego.points.PointPath with org.eclipse.xtext.common.Terminals

generate pointPath "h t t p ://www.glt.tue/lego/points/PointPath"  // (cannot post links)

Model:
	name = ID
;


I would really appreciate your help because I am fighting this for almost a whole day now (Google was not much help either) and getting quite desperate.

Thanks for your time!

[Updated on: Tue, 10 January 2012 19:44]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #777635 is a reply to message #777597] Tue, 10 January 2012 21:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi, in the workflow file you use the emf metamodel but the Imports
in the xpand file wäre javabeansmetamodel style.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #777657 is a reply to message #777635] Tue, 10 January 2012 21:45 Go to previous messageGo to next message
Julian Lettner is currently offline Julian LettnerFriend
Messages: 2
Registered: January 2012
Junior Member
Thank you so much Christian!
I can't believe how quickly (especially considering this late time) I was helped here.

Thanks again,
Julian

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780625 is a reply to message #777657] Wed, 18 January 2012 20:01 Go to previous messageGo to next message
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
I'm stuck with the same problem. Can you please elaborate on how you exactly solved the problem?
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780631 is a reply to message #780625] Wed, 18 January 2012 20:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
hi,

lets say you created a new Xtext project with the wizard then

the imports in javabeans metamodel style are org::xtext::example::mydsl::myDsl
the imports in the emf (registry) metamodel style are myDsl

you can configure the metamodel you use in your projects Xpand/Xtend properties and in the Workflow Component e.g. the Generator.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780636 is a reply to message #780631] Wed, 18 January 2012 20:32 Go to previous messageGo to next message
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
Hi Christian,

Thank you for your very fast reply!

This is the problem

0    INFO  AbstractExpressionsUsingWorkflowComponent - No meta models configured, using JavaBeans as default.
165  WARN  SlotEntry          - Could not find any exported element of type 'Model' -> Slot 'someslot' is empty.
248  ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component  of type org.eclipse.xpand2.Generator: 
	EvaluationException : No Definition 'templates::commands2txtnxt::generateFile for List' found!
	[23,60] on line 1 'EXPAND templates::commands2txtnxt::generateFile FOR someslot'

248  ERROR Mwe2Launcher       - Problems running workflow run: No Definition 'templates::commands2txtnxt::generateFile for List' found!
java.lang.RuntimeException: Problems running workflow run: No Definition 'templates::commands2txtnxt::generateFile for List' found!
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:99)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: org.eclipse.emf.mwe.core.WorkflowInterruptedException: No Definition 'templates::commands2txtnxt::generateFile for List' found!
	at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:247)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:97)
	... 5 more


My workflow file:
module run

import org.eclipse.emf.mwe.utils

var inputDir = "src/instances"
var targetDir = "src/output"

Workflow {
	component = org.eclipse.xtext.mwe.Reader {
		path = inputDir
		register = org.xtext.CommandsStandaloneSetup {}
		load = {
			slot = "someslot"
			type = "Model"
			name = "outputa"
		}
	}
	
	component = org.eclipse.xpand2.Generator {
		expand = "templates::commands2txtnxt::generateFile FOR someslot"
		outlet = {
			path = targetDir
		}
	}
}


and this is my template

«IMPORT org::xtext::commands»

«DEFINE generateFile FOR Model»

«ENDDEFINE»


Very basic stuff, but I have no idea how to fix this. I have exported the xtext as a plugin, so the import in the template file is ok.

[Updated on: Wed, 18 January 2012 20:33]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780638 is a reply to message #780636] Wed, 18 January 2012 20:37 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi

there are error messages so you should follow them

first someslot contains a list so you should
(1) change the call to templates::commands2txtnxt::generateFile FOREACH someslot or
(2) change the template to DEFINE generateFile FOR List[Model]

but first of all you should take of Could not find any exported element of type 'Model' -> Slot 'someslot' is empty.
=> a forum search should help you to solve this common error


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 18 January 2012 20:39]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780642 is a reply to message #780638] Wed, 18 January 2012 20:58 Go to previous messageGo to next message
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
Thank you for your time Christian. I'll search for the other problem. Smile
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780659 is a reply to message #780642] Wed, 18 January 2012 22:11 Go to previous messageGo to next message
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
I found your answer that you have to put this somewhere

public class MyDslNameProvider extends DefaultDeclarativeQualifiedNameProvider {

    QualifiedName qualifiedName(Model m) {
        return QualifiedName.create(m.eResource().getURI().toString());
    }
}

public class MyDslRuntimeModule extends
                          org.xtext.example.mydsl.AbstractMyDslRuntimeModule {

    @Override
    public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() {
        return MyDslNameProvider.class;
    }   
}


It is probably a stupid question, but I just don't know where?!
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780747 is a reply to message #780659] Thu, 19 January 2012 09:48 Go to previous messageGo to next message
Edin - is currently offline Edin -Friend
Messages: 7
Registered: January 2012
Junior Member
I tried everything, searched for the forum and other sites and still I can't fix it.

The error is now "only":
0    WARN  SlotEntry          - Could not find any exported element of type 'Model' -> Slot 'someslot' is empty.
26   INFO  Workflow           - Done.


My workflowfile

module run

import org.eclipse.emf.mwe.utils

var inputDir = "src/instances"
var targetDir = "src/output"

Workflow {
	component = org.eclipse.xtext.mwe.Reader {
		path = inputDir
		register = org.xtext.CommandsStandaloneSetup {}
		load = {
			slot = "someslot"
			type = "Model"
			name = "outputa"
		}
	}
	
	component = org.eclipse.xpand2.Generator {
		expand = "templates::commands2txtnxt::generateFile FOREACH someslot"
		metaModel = org.eclipse.xtend.type.impl.java.JavaBeansMetaModel {}
		outlet = {
			path = targetDir
		}
	}
}


I found on stackoverflow the same question. Christian, you answered with the Java snippet of code as a solution, but I don't know where to put it.

Another solution that is presented there, which seems a little bit neater, is

Quote:
Probably the best way is inserting the text {Model} just at the beginning of the rule, to ensure the creation.


but where do I have to put this exactly? I tried adapting the rule

Model : (paths += Path)*;


into

Model : {Model} (paths += Path)*;


recompiled and exported the plugin, but with still no success.

Anyone here that has any ideas? I'm busy with these problems for days.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #780750 is a reply to message #780747] Thu, 19 January 2012 09:56 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

the reader collects only elements that have a "name" and can thus be referenced. Your model doesn't have one. A search for "xtext model slot empty" should reveal several solutions as that is a common question.

Christian already gave one explicit way. Implement a name provider (new class to be put into your project) and bind it in the runtime module (there is a pre-generated class where you add the given binding).

Alex

[Updated on: Thu, 19 January 2012 09:59]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869931 is a reply to message #780750] Fri, 04 May 2012 21:11 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
good evening,
I generated a model xmi after the execution of workflow engine "mydslGenerator.mwe2" but I can not open it .. I lived this problem:

"org.eclipse.xtext.mwe.SlotEntry - Could not find any element of type Exported 'BINDING' -> Slot 'BINDING' is empty."

the "BINDING" is the slot .
the code of "mydslGenerator.mwe2" was :
module workflow.LfGenerator

import org.eclipse.emf.mwe.utils.*
import org.xtext.lf
import  org.eclipse.xtend  
import  org.eclipse.xtext 

var targetDir = "src-gen"
var fileEncoding = "ISO-8859-1"
var modelPath = "src/model"

Workflow {

          bean =org.eclipse.emf.mwe.utils.StandaloneSetup{
        	platformUri=".." }
	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true

		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.LfStandaloneSetup {}
		load = {
			slot = "BINDING"
			type = "BINDING"
		}
	}

	component = org.eclipse.xpand2.Generator {
		 metaModel = org.eclipse.xtend.type.impl.java.JavaBeansMetaModel {}
		   expand = "templates::Template::main FOREACH     BINDING"
				outlet = {
			path = targetDir
		}
		fileEncoding = fileEncoding
	}
	
	//--générer le modèle-
	component = org.eclipse.emf.mwe.utils.Writer{
       modelSlot ="BINDING"
       uri ="${targetDir}/example.xmi"}
	
	
	
}


pleaaaaaaaaaase help me !


Please help me

I'm stuck in this stage.
help meeeeeeeeeeeeeeeeeeeeeeee. Sad
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869933 is a reply to message #869931] Fri, 04 May 2012 21:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

seems there are no BINDINGs written to the index by your model.
please make sure you have a metatype BINDING with a name attribute. if not fix this by
(a) chaning the metamodel
(b) a custom IQualifiedNameProvider
(c) a custom IDefaultResourceDescriptionStrategy

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869936 is a reply to message #869933] Fri, 04 May 2012 22:00 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
but where I find :
*custom IQualifiedNameProvider

*custom IDefaultResourceDescriptionStrategy.
thank you in advance.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869937 is a reply to message #869936] Fri, 04 May 2012 22:01 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
but where I find the :
*custom IQualifiedNameProvider

*custom IDefaultResourceDescriptionStrategy.
thank you in advance.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869938 is a reply to message #869937] Fri, 04 May 2012 22:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi not find. create! e.g.

public class MyQNP extends DefaultDeclarativeQualifiedNameProvider {
	
	QualifiedName qualifiedName(BINDING b) {
		String name = ...
		return QualifiedName.create(name);
	}

}


public class MyDslRuntimeModule extends org.xtext.example.mydsl.AbstractMyDslRuntimeModule {

	@Override
	public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() {
		return MyQNP.class;
	}
	
}


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869940 is a reply to message #869938] Fri, 04 May 2012 22:55 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I write this code in file .mwe . or where ?
thank you in advance
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869952 is a reply to message #869940] Sat, 05 May 2012 05:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

i am confused by your question. could yoiu please explain step by step what you are actually doing in you usecase.
here is what i asumed

(1) you have a Xtext project that defines a Lf Language (please share you grammar)
(2) there Language defines a Concept "BINDING"
(3) you have some of these .yourdsl file lying arround and want to generate code from them
(4) you create the MyQNP class somewhere in yourdsls runtime project
(5) you adapt the existing runtime module class in your dsls runtime project and add the binding there

P.S: which Xtext Version do you use?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869982 is a reply to message #869952] Sat, 05 May 2012 13:39 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I'm doing a project xtext, part of which grammar is:
BINDING: '<binding name='  Bindingname=CHAINE'type=' type=CHAINE '>'
        '<soap:binding style='style=CHAINE 'transport='transport=CHAINE'/>'
	     '<operation name='operation=CHAINE'>'
	     (soapoperation+=SoapAction)*
	  	  '<input>'
			      '<soap:body use=' body=CHAINE ' encodingStyle='encoding=CHAINE'/>'
	   '</input>'
	    '<output>'
			   '<soap:body use=' use=CHAINE 'encodingStyle=' encodingStyle=CHAINE '/>'
		'</output>'
	   '</operation>'
	   '</binding>';
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869983 is a reply to message #869982] Sat, 05 May 2012 13:41 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
when I execute the file "LfGenerator.mwe2" I got this instruction:
0    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering platform uri 'D:\Bac C  19-03-2012\Mounir ben belgacem\PFE\PFE2\ecplise 1'
3265 [main] DEBUG        org.eclipse.xtext.mwe.Reader  - Resource Pathes : [src/model]
3468 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/D:/Bac%20C%20%2019-03-2012/Mounir%20ben%20belgacem/PFE/PFE2/ecplise%201/org.xtext.lf.generator/src/model/Example.lf
3640 [main] WARN      org.eclipse.xtext.mwe.SlotEntry  - Could not find any exported element of type 'BINDING' -> Slot 'bind' is empty.
3875 [main] INFO  .emf.mwe2.runtime.workflow.Workflow  - Done.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869984 is a reply to message #869983] Sat, 05 May 2012 13:49 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
but the problem was : I can not open the xmi model. : (
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869986 is a reply to message #869984] Sat, 05 May 2012 14:05 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I use the " eclipse Helios"
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869987 is a reply to message #869982] Sat, 05 May 2012 14:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Exchange Bindingname=CHAINE with name=CHAINE and it will work out of
the box. Btw what is the xmi you are talking about


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869991 is a reply to message #869987] Sat, 05 May 2012 15:05 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I replaced bindingName by name but I have the same remark.
0    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering platform uri 'D:\Bac C  19-03-2012\Mounir ben belgacem\PFE\PFE2\ecplise 1'
3203 [main] DEBUG        org.eclipse.xtext.mwe.Reader  - Resource Pathes : [src/model]
3406 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/D:/Bac%20C%20%2019-03-2012/Mounir%20ben%20belgacem/PFE/PFE2/ecplise%201/org.xtext.l3.generator/src/model/Example.l3
3578 [main] WARN      org.eclipse.xtext.mwe.SlotEntry  - Could not find any exported element of type 'BINDING' -> Slot 'bind' is empty.
3766 [main] INFO  .emf.mwe2.runtime.workflow.Workflow  - Done.


and I could not open the generator file .
Pleaaaaaaaaaaaaaaase help me!
Think you in advance .
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869992 is a reply to message #869991] Sat, 05 May 2012 15:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Can you once more share the grammar workflow and a sample model

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869993 is a reply to message #869991] Sat, 05 May 2012 15:16 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
the file of "L3Generator.mwe2" was:

module workflow.LfGenerator

import org.eclipse.emf.mwe.utils.*
import org.xtext.lf
import org.eclipse.xtend
import org.eclipse.xtext

var targetDir = "src-gen"
var fileEncoding = "ISO-8859-1"
var modelPath = "src/model"

Workflow {

bean =org.eclipse.emf.mwe.utils.StandaloneSetup{
platformUri=".." }
component = org.eclipse.xtext.mwe.Reader {
// lookup all resources on the classpath
// useJavaClassPath = true

// or define search scope explicitly
path = modelPath

// this class will be generated by the xtext generator
register = org.xtext.LfStandaloneSetup {}
load = {
slot = "bind"
type = "BINDING"
}
}

component = org.eclipse.xpand2.Generator {
metaModel = org.eclipse.xtend.typesystem.emf.EmfMetaModel {}
expand = "templates::Template::main FOREACH bind"
outlet = {
path = targetDir
}
fileEncoding = fileEncoding
}

//--générer le modèle-
component = org.eclipse.emf.mwe.utils.Writer{
modelSlot ="bind"
uri ="${targetDir}/example1.xmi"}





}
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869995 is a reply to message #869993] Sat, 05 May 2012 15:29 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
the part of grammar was :
Grammairewsdl:
   (bind+=BINDING)*
   
    end=END  ;
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869996 is a reply to message #869995] Sat, 05 May 2012 15:30 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
the grammar was :
Grammairewsdl:
   ( def+=DEFINITION )+
    (typ+=TYPE)*
   ( mes+=MESSAGE)*
   (port+=PORTTYPE)*
   (bind+=BINDING)*
   (ser+=SERVICE)*
    end=END  ;

DEFINITION:
    '<definitions  name=' name=CHAINE 'targetNamespace=' Def=CHAINE (xml+=xmlns)* '>' ;
xmlns:'xmlns=' xml=CHAINE;
TYPE:    '<types>'
          '<schema targetNamespace=' schema=CHAINE '>'
        (element+=Element)*
         '<complexType name='ComplexTypename=CHAINE '>'
          (all+=All)*
	     '<element name='elementname =CHAINE'type='type=CHAINE'/>'
	       (fermall+=FermAll)*
	     '</complexType>'
	     (Fermelement+=Fermeture)*
	     '</schema>'
	     '</types>';
Element: '<element name=' identifiant=CHAINE'>';
 All:'<all>';
FermAll:'</all>';
Fermeture:	'</element>'; 	        
MESSAGE:
        '<message name=' Mes=CHAINE'>'
       '<part name='partname=CHAINE  (chaine+=Part)+'=' type=CHAINE '/>'
          '</message>' ;
Part:'type'|'element';
PORTTYPE:   '<portType name=' PortType=CHAINE'>'
          '<operation name='operation=CHAINE'>'
             (oprations+=Operation)+
            '</operation>'
            '</portType>';
Operation:  '<'Typeoperation 'message=' message=CHAINE'/>';
Typeoperation :'input'|'output'|'fault';  
BINDING: '<binding name='  name=CHAINE'type=' type=CHAINE '>'
        '<soap:binding style='style=CHAINE 'transport='transport=CHAINE'/>'
	     '<operation name='operation=CHAINE'>'
	     (soapoperation+=SoapAction)*
	  	  '<input>'
			      '<soap:body use=' body=CHAINE ' encodingStyle='encoding=CHAINE'/>'
	   '</input>'
	    '<output>'
			   '<soap:body use=' use=CHAINE 'encodingStyle=' encodingStyle=CHAINE '/>'
		'</output>'
	   '</operation>'
	   '</binding>';
 SoapAction:'<soap:operation soapAction='soap=CHAINE '/>';	
SERVICE: '<service name=' servicename=CHAINE '>'
     (documentation+=Documentation)*
         (port+=Port)+
         '</service>';
Documentation :'<documentation>'documentation=ID'</documentation>';        
Port: '<port name='name=CHAINE'binding='bonding=CHAINE'>'
         '<soap:address location='location=CHAINE'/>'
         '</port>';
END: '</definitions>';
CHAINE : (ID|SL_COMMENT|STRING)* ;
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #869999 is a reply to message #869996] Sat, 05 May 2012 15:40 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
please help meeeeeeeeeeeeeeee!
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870000 is a reply to message #869999] Sat, 05 May 2012 15:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

your sample model is still missing. btw why do you want to use xtext for such xmlish stuff (maybe you should have a look at xsd2ecore

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870001 is a reply to message #870000] Sat, 05 May 2012 15:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
And:

i do the following

(1) create a new xtext project using the wizard
(2) paste your grammar
(3) Generate the language
(4) adapt the workflow in the generator project
(5) drop following Example.mydsl file into the src/model dir
<definitions  name="test" targetNamespace="test">
<binding name="test" type="test" >
<soap:binding style="style" transport="test"
/>
<operation name="test" >
<soap:operation soapAction="test" />
<input>
<soap:body use="test" encodingStyle="test"
 />
 </input>
 <output>
 <soap:body use="test"
 encodingStyle="test"
 />
 </output>
 </operation>
 </binding>
 </definitions>

(6) run the workflow.

an hey: it works without any complaints


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Sat, 05 May 2012 15:49]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870002 is a reply to message #870001] Sat, 05 May 2012 15:58 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
i hav ethe same remak :
org.eclipse.xtext.mwe.SlotEntry  - Could not find any exported element of type 'BINDING' -> Slot 'bind' is empty.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870003 is a reply to message #870002] Sat, 05 May 2012 16:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

i ask you: did you drop a file with the correct file ending into to src/model folder of the generator project or didnt you?
when you do not answer my questions i cannot help.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870006 is a reply to message #870003] Sat, 05 May 2012 16:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
and are you sure you regenerated the language after changing the grammar?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870037 is a reply to message #870006] Sat, 05 May 2012 22:25 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
hi ,
I create a new project xtext .
I pasted the grammar .
and i changed the file example with :
<definitions  name='test' targetNamespace='test'>
<binding name='test' type='test'>
<soap:binding style='style' transport='test'/>
<operation name='test' >
<soap:operation soapAction='test' />
<input>
<soap:body use='test' encodingStyle='test' />
 </input>
 <output>
 <soap:body use='test'
 encodingStyle='test'/>
 </output>
 </operation>
 </binding>
 </definitions>

but when I run the workflow . I got those errors:
<definitions  name='test' targetNamespace='test'>
<binding name='test' type='test'>
<soap:binding style='style' transport='test'/>
<operation name='test' >
<soap:operation soapAction='test' />
<input>
<soap:body use='test' encodingStyle='test' />
 </input>
 <output>
 <soap:body use='test'
 encodingStyle='test'/>
 </output>
 </operation>
 </binding>
 </definitions>

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870039 is a reply to message #870037] Sat, 05 May 2012 22:34 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
excuse me:
the errors were:
org.eclipse.emf.ecore.xmi.PackageNotFoundException:
	.....
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870041 is a reply to message #870039] Sat, 05 May 2012 22:43 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
but I don't understand something : what do you mean by "and are you sure you regenerated the language after changing the grammar? "
do you mean that I run the workflow ??

think you in advance .Smile
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870079 is a reply to message #870041] Sun, 06 May 2012 08:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

i have still no idea what you are doing. can you share your complete code?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870135 is a reply to message #870079] Sun, 06 May 2012 22:25 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I'm doing a project on transforming " text into wsdl model" (T2M). that's why I'm doing a project on xtext to build the wsdl grammar (1). I "run" to end the workflow to generate a model consistent with the meta-xmi model wsdl.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870136 is a reply to message #870135] Sun, 06 May 2012 22:28 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
(1) the grammar was :
Grammairewsdl:
   ( def+=DEFINITION )* 
    (typ+=TYPE)*
   ( mes+=MESSAGE)*
   (port+=PORTTYPE)*
   (bind+=BINDING)*
   (ser+=SERVICE)*
    end=END  ;
DEFINITION:
    '<definitions  name=' name=CHAINE 'targetNamespace=' Def=CHAINE (xml+=xmlns)* '>' ;
xmlns:'xmlns=' xm=CHAINE;
TYPE:    '<types>'
          '<schema targetNamespace=' schema=CHAINE '>'
        (element+=Element)*
         '<complexType name='ComplexTypename=CHAINE '>'
          (all+=All)*
	     '<element name='elementname =CHAINE'type='type=CHAINE'/>'
	       (fermall+=FermAll)*
	     '</complexType>'
	     (Fermelement+=Fermeture)*
	     '</schema>'
	     '</types>';
Element: '<element name=' identifiant=CHAINE'>';
 All:'<all>';
FermAll:'</all>';
Fermeture:	'</element>'; 	        
MESSAGE:
        '<message name=' Mes=CHAINE'>'
       '<part name='partname=CHAINE  (chaine+=Part)+'=' type=CHAINE '/>'
          '</message>' ;
Part:'type'|'element';
PORTTYPE:   '<portType name=' PortType=CHAINE'>'
          '<operation name='operation=CHAINE'>'
             (oprations+=Operation)+
            '</operation>'
            '</portType>';
Operation:  '<'Typeoperation 'message=' message=CHAINE'/>';
Typeoperation :'input'|'output'|'fault';  
BINDING: '<binding name='  name=CHAINE'type=' type=CHAINE '>'
        '<soap:binding style='style=CHAINE 'transport='transport=CHAINE'/>'
	     '<operation name='operation=CHAINE'>'
	     (soapoperation+=SoapAction)*
	  	  '<input>'
			      '<soap:body use=' body=CHAINE ' encodingStyle='encoding=CHAINE'/>'
	   '</input>'
	    '<output>'
			   '<soap:body use=' use=CHAINE 'encodingStyle=' encodingStyle=CHAINE '/>'
		'</output>'
	   '</operation>'
	   '</binding>';
 SoapAction:'<soap:operation soapAction='soap=CHAINE '/>';	
SERVICE: '<service name=' servicename=CHAINE '>'
     (documentation+=Documentation)*
         (port+=Port)+
         '</service>';
Documentation :'<documentation>'documentation=ID'</documentation>';        
Port: '<port name='name=CHAINE'binding='bonding=CHAINE'>'
         '<soap:address location='location=CHAINE'/>'
         '</port>';
END: '</definitions>';
CHAINE : (ID|SL_COMMENT|STRING)* ;
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870137 is a reply to message #870136] Sun, 06 May 2012 22:32 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
after this step , and when I generate the workflow (2) , I got the error (3)
(2)
module workflow.TestGenerator

import org.eclipse.emf.mwe.utils.*
import org.xtext.test
import  org.eclipse.xtend  
import  org.eclipse.xtext 
var targetDir = "src-gen"
var fileEncoding = "Cp1252"
var modelPath = "src/model"

Workflow {
 bean =org.eclipse.emf.mwe.utils.StandaloneSetup{
        	platformUri=".." }
	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true

		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.TestStandaloneSetup {}
		load = {
			slot = "bind"
			type = "BINDING"
		}
	}

	component = org.eclipse.xpand2.Generator {
		metaModel = org.eclipse.xtend.type.impl.java.JavaBeansMetaModel {}
		   		expand = "templates::Template::main FOREACH  bind"
		outlet = {
			path = targetDir
		}
		fileEncoding = fileEncoding
	}
	//--générer le modèle-
	component = org.eclipse.emf.mwe.utils.Writer{
       modelSlot ="bind"
       uri ="${targetDir}/example.xmi"}
	
	
}
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870138 is a reply to message #870137] Sun, 06 May 2012 22:35 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
(3) the error was :
org.eclipse.emf.ecore.xmi.PackageNotFoundException: 
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870139 is a reply to message #870138] Sun, 06 May 2012 22:39 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
and the contents of file "Extensions Ext .." Was:
import org::xtext::test;

    



the contents of file " WasTemplate.xpt" was:
«IMPORT org::xtext::test»

«EXTENSION templates::Extensions»

«DEFINE main FOR BINDING-»

«ENDDEFINE»
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870140 is a reply to message #870139] Sun, 06 May 2012 22:46 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
I don't n know , what's the problem ???
I wish now that you understand what I 'am doing .
pleaaaase , help me . I shocked in this step . Sad
thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870160 is a reply to message #870140] Mon, 07 May 2012 05:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

i still need your complete code. mark all 3 projects, rightclick -> export -> archive file and follow the wizard
and upload the code to somewhere where i can download it from.

~Christian




Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870164 is a reply to message #870160] Mon, 07 May 2012 05:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
P.S:

maybe there is some config missing to the org.eclipse.emf.mwe.utils.Writer component.
why did you add addional stuff to a workflow that was not working? why do you want to use the writer component at all? i dont know if it works with a list of models.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 07 May 2012 05:54]

Report message to a moderator

Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870194 is a reply to message #870164] Mon, 07 May 2012 08:27 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
No Message Body
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870195 is a reply to message #870194] Mon, 07 May 2012 08:41 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
Hi,

sorry, I have not found the way to send you the project 3.
Please give me your email address. so that I can send you the project on March 3.
Thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870196 is a reply to message #870195] Mon, 07 May 2012 08:43 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
Hi ,
sorry, I have not found the way to send you the 3 project .
Please give me your email address. so that I can send you the 3 project on March .
Thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870198 is a reply to message #870195] Mon, 07 May 2012 08:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
What about attaching the files here

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870201 is a reply to message #870198] Mon, 07 May 2012 09:08 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
hi ,
but I can not send the compressed 3 project.
give me please a way that I can send you the project 3.
thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870219 is a reply to message #870201] Mon, 07 May 2012 10:16 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
pleaaaaaase help me .
Sad Confused
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870224 is a reply to message #870195] Mon, 07 May 2012 10:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
If you hit the reply button in the forum you should be able to attach
things


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870241 is a reply to message #870224] Mon, 07 May 2012 12:33 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
Hi ,
this is the 3 project.
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870242 is a reply to message #870241] Mon, 07 May 2012 12:35 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
hi , these are the all code in my project
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870245 is a reply to message #870242] Mon, 07 May 2012 12:37 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870342 is a reply to message #870245] Mon, 07 May 2012 17:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

it works like a charm. as output i get this nice xmi file

<?xml version="1.0" encoding="ASCII"?>
<test:BINDING xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:test="http://www.xtext.org/Test" xsi:schemaLocation="http://www.xtext.org/Test java://org.xtext.test.TestPackage" name="'test'" type="'test'" style="'style'" transport="'test'" operation="'test'" body="'test'" encoding="'test'" use="'test'" encodingStyle="'test'">
  <soapoperation soap="'test'"/>
</test:BINDING>



~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870381 is a reply to message #870342] Mon, 07 May 2012 21:15 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
Hi ,
firstly;
thank you very much for your reply.
but I know very well that the execution of workflow "TestGenerator.mwe2" provides the appearance of xmi model.
but when I open it, I had the following error.
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.xtext.org/Test' not found

. thank you in advance !
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870384 is a reply to message #870381] Mon, 07 May 2012 21:21 Go to previous messageGo to next message
Sassou slima is currently offline Sassou slimaFriend
Messages: 37
Registered: April 2012
Member
HI , this print screen of the error.
thank you in advance.
  • Attachment: test.rar
    (Size: 34.79KB, Downloaded 126 times)
Re: Setup Xpand workflow: No Definition 'MyTemplate::main ...' found! [message #870386 is a reply to message #870384] Mon, 07 May 2012 21:33 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13669
Registered: July 2009
Senior Member
Hi,

this behavour is expected!!!!!!!!!!!!!!!!!!!!!!!!!!!! you HAVE to install your dsl plugins into your eclipse or start a runtime eclipse
to get it running: since the xmi uses namespaces!!!!!!!!!!!!!!! it does not know the ecore file lying arround here and there.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Exception implementing refactoring
Next Topic:Problem with my grammar
Goto Forum:
  


Current Time: Sat Dec 05 00:28:19 GMT 2020

Powered by FUDForum. Page generated in 0.04393 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top