problem with 2.0->2.1 update [message #755708] |
Wed, 09 November 2011 06:05  |
Eclipse User |
|
|
|
could anyone help?
after updating to xtext 2.1 from 2.0 i get the following exception when running the mwe workflow for my language
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri '/home/garyt/workspace3/cork'
318 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
321 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
333 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
333 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
1313 [main] ERROR ipse.xtext.generator.LanguageConfig - [TransformationDiagnostic: null:204 Cannot find type for 'XBlockExpression'. (ErrorCode: NoSuchTypeAvailable)]
1316 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems instantiating module uk.ac.leeds.nsxl2.cork.Cork: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module uk.ac.leeds.nsxl2.cork.Cork: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:90)
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.common.util.WrappedException: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.mwe2.language.factory.SettingProviderImpl$1$1.setValue(SettingProviderImpl.java:56)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:143)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:66)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:142)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:66)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:142)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:66)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:66)
at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.create(Mwe2ExecutionEngine.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:88)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.emf.mwe2.language.factory.SettingProviderImpl$1$1.setValue(SettingProviderImpl.java:54)
... 38 more
Caused by: java.lang.IllegalStateException: Problem parsing 'classpath:/uk/ac/leeds/nsxl2/cork/Cork.xtext':[TransformationDiagnostic: null:204 Cannot find type for 'XBlockExpression'. (ErrorCode: NoSuchTypeAvailable)]
at org.eclipse.xtext.generator.LanguageConfig.setUri(LanguageConfig.java:185)
... 43 more
i enclose the mwe workflow file and the xtext file
regards
gary
|
|
|
|
|
|
|
|
|
|
Re: problem with 2.0->2.1 update [message #757116 is a reply to message #755773] |
Wed, 16 November 2011 10:00   |
Eclipse User |
|
|
|
many thanks for the various suggestions! I have been able to eliminate the previous error by carry out the following steps
1. updating the explicit version numbers asccociated with the xtext imports in the MANIFEST.MF file
2. adding registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
however I still have a problem, I now get the following exception while building with mwe
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri '/home/garyt/workspace3/cork'
319 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.xbase.XbasePackage'
780 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
783 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
795 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
795 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
2133 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/garyt/workspace3/cork/uk.ac.leeds.nsxl2.cork/../uk.ac.leeds.nsxl2.cork/src-gen
2362 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/garyt/workspace3/cork/uk.ac.leeds.nsxl2.cork/../uk.ac.leeds.nsxl2.cork.ui/src-gen
2863 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for uk.ac.leeds.nsxl2.cork.Cork with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, Ecore2XtextValueConverterServiceFragment, JavaValidatorFragment, ImportURIScopingFragment, SimpleNamesFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment, CompareFragment, BuilderIntegrationFragment, QuickfixProviderFragment, TypesGeneratorFragment, XbaseGeneratorFragment
6876 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.cork.nsxl2.leeds.ac.uk/cork/Cork' from 'platform:/resource/uk.ac.leeds.nsxl2.cork/src-gen/uk/ac/leeds/nsxl2/cork/Cork.genmodel'
32615 [main] INFO or.validation.JavaValidatorFragment - generating Java-based EValidator API
39654 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
39773 [main] ERROR g.eclipse.xtext.generator.Generator - Cannot override final binding 'final org.eclipse.xtext.naming.IQualifiedNameProvider -> org.eclipse.xtext.naming.SimpleNameProvider (contributed by org.eclipse.xtext.generator.exporting.SimpleNamesFragment)'
java.lang.IllegalStateException: Cannot override final binding 'final org.eclipse.xtext.naming.IQualifiedNameProvider -> org.eclipse.xtext.naming.SimpleNameProvider (contributed by org.eclipse.xtext.generator.exporting.SimpleNamesFragment)'
at org.eclipse.xtext.generator.CompositeGeneratorFragment.internalGetGuiceBindings(CompositeGeneratorFragment.java:170)
at org.eclipse.xtext.generator.CompositeGeneratorFragment.getGuiceBindingsRt(CompositeGeneratorFragment.java:124)
at org.eclipse.xtext.generator.Generator.generateGuiceModuleRt(Generator.java:334)
at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:127)
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)
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)
39774 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
Also as a comment I have read about mwe in the documentation. However, I am still not sure what options and fragments I need in the mwe file. Whats more is there an overall document of what the available fragments are?
one again may thanks for any help
regards
gary
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07980 seconds