Help with Generate Infrastructure MWE - create generator package [message #842305] |
Thu, 12 April 2012 03:07  |
Eclipse User |
|
|
|
Using Xtext 2.2.1, the MWE created my language infrastructure and I was able to launch the Eclipse runtime with the resulting editor. Very smooth and much more clear than when I worked with version 1 (and earlier).
The issue I encounter is that there is no '...generator' package in the src folder of the project that has my grammar. When I create a new Xtext project, running the MWE produced the generator package. I'd appreciate if you can help me understand what would prevent the creation of the generator package in my project.
I suppose I could move my grammar into the new project that has the generator package, but I suspect I'm missing some understanding with this.
Thanks!
John
|
|
|
|
Re: Help with Generate Infrastructure MWE - create generator package [message #842333 is a reply to message #842316] |
Thu, 12 April 2012 03:42   |
Eclipse User |
|
|
|
Well, I was comparing MWE files between the project where the generator package is produced and the one in which it is not produced and the Workflows are the same - only the header module and var lines differ. I tried setting the generateMwe and generateJavaMain properties true in the GeneratorFragment, but didn't see a difference.
Here's the console line that indicates the GeneratorFragment was processed.
2447 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for com.bobberinteractive.expeng.flow.Module with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, SerializerFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, JavaValidatorFragment, ImportNamespacesScopingFragment, QualifiedNamesFragment, BuilderIntegrationFragment, GeneratorFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, QuickfixProviderFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment, Junit4Fragment, RefactorElementNameFragment, TypesGeneratorFragment, XbaseGeneratorFragment, CodetemplatesGeneratorFragment, CompareFragment
I wonder if it's not compatable with the Xbase grammar mix-in - that's one thing that I added to my project that wasn't there by default.
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08105 seconds