Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » "Generation Fail" --> problème de méta model
"Generation Fail" --> problème de méta model [message #1385052] Wed, 04 June 2014 03:45
thomas nobre is currently offline thomas nobreFriend
Messages: 5
Registered: May 2014
Junior Member
Bonjours,

je suis nouveau dans l'utilisation d'Acceleo et je rencontre de nombreux problèmes. Premièrement, j'aimerai effectuer un générateur de code C++ basé sur des modèles conforment à un méta-model Synchronous C que j'ai crée. Mes model existent est sont conforme.

J'ai donc crée un projet acceleo dans eclipse dans lequel j'ajoute le méta-model grâce à la partie "runtime environment" mon méta-model est enregistré sous la forme: /sc/1.1'.

J'effectue ensuite une transformation élémentaire:

[b][comment encoding = UTF-8 /]
[module generate('/sc/1.1')]


[template public generate(behavior : Behaviour)]
[comment @main/]
[file (behavior.name, false, 'UTF-8')]
Hello,[behavior.name/] world!

[/file]
[/template][/b]

et j'obtiens l'erreur:

The generation failed to generate any file because there are no model elements that matches at least the type of the first parameter of one of your main templates.
The problem may be caused by a problem with the registration of your metamodel, please see the method named "registerPackages" in the Java launcher of your generator. It could also come from a missing [comment @main/]
in the template used as the entry point of the generation.

Je pense que l'erreur vient de l'utilisation de mon méta-model car j'ai essayé avec un méta-model connu d'acceleo (celui ecore/2002) et j'arrive a correctement générer des fichiers.

Un peu d'aide serait bien venu!
Merci, thomas.





Previous Topic:[Acceleo] [new edit] "argument type mismatch" when calling a Java Service Wrapper
Next Topic:C/C++ code generator
Goto Forum:
  


Current Time: Thu Apr 25 07:28:15 GMT 2024

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

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

Back to the top