Home » Modeling » TMF (Xtext) » [XBase] Overwriting Xbase Grammar Elements
| |
Re: [XBase] Overwriting Xbase Grammar Elements [message #722563 is a reply to message #722447] |
Tue, 06 September 2011 08:03 |
Ingo Meyer Messages: 162 Registered: July 2009 |
Senior Member |
|
|
Ok thanks for the answer.
Here is my grammar head
grammar com.xxx with org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
import "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore" as types
import "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"
generate xxx ...
The MWE part:
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
}
And the logs and errors which comes when trying to generate:
0 INFO StandaloneSetup - Registering platform uri 'C:\dev\xxx'
823 INFO GenModelHelper - Registered GenModel 'http://www.eclipse.org/Xtext/Xbase/XAnnotations' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
826 INFO GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xtype' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
837 INFO GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/xbase/Xbase' from 'platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel'
837 INFO GenModelHelper - Registered GenModel 'http://www.eclipse.org/xtext/common/JavaVMTypes' from 'platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel'
2091 ERROR LanguageConfig - [TransformationDiagnostic: null:349 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:538 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:694 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:699 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:700 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:717 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:728 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:783 Cannot find type for ' XConstructorCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:786 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:789 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:852 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:864 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:865 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:866 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:958 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:962 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:965 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1069 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1101 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1125 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1226 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1382 Cannot find type for ' XAssignment'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1382 Cannot find type for ' XAssignment'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1389 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1434 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1438 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1438 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1454 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1466 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1468 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1507 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1546 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1628 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1628 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1629 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1629 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1651 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1664 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1665 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1665 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1679 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1680 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1680 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1698 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1865 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1872 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1881 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1928 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1972 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1975 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2203 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2207 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2266 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2303 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2304 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2304 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2463 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2474 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2487 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2515 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2538 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2772 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2823 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2839 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2917 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2918 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2919 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2920 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2921 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2922 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2923 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2924 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2926 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2997 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3017 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3051 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3054 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3064 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3095 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3109 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3119 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3131 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable)]
2096 ERROR Mwe2Launcher - Problems instantiating module com.Xxx: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module com.factoris.mdx.dsl.pim.pido.GeneratePido: 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:/com/xxx/Xxx.xtext':[TransformationDiagnostic: null:349 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:538 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:694 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:699 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:700 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:717 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:728 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:783 Cannot find type for ' XConstructorCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:786 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:789 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:852 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:864 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:865 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:866 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:958 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:962 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:965 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1069 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1101 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1125 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1226 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1382 Cannot find type for ' XAssignment'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1382 Cannot find type for ' XAssignment'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1389 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1434 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1438 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1438 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1454 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1466 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1468 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1507 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1546 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1628 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1628 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1629 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1629 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1651 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1664 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1665 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1665 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1679 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1680 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1680 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1698 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1865 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1872 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1881 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1928 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1968 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1972 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:1975 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2203 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2207 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2266 Cannot find type for ' XBlockExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2303 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2304 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2304 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2463 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2474 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2487 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2515 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2538 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2772 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2823 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2839 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2917 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2918 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2919 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2920 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2921 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2922 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2923 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2924 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2926 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:2997 Cannot find type for ' XMemberFeatureCall'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3017 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3051 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3054 Cannot find type for ' XAnnotation'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3064 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3095 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3109 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3119 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable), TransformationDiagnostic: null:3131 Cannot find type for ' XExpression'. (ErrorCode: NoSuchTypeAvailable)]
at org.eclipse.xtext.generator.LanguageConfig.setUri(LanguageConfig.java:167)
... 43 more
Can you give a short example how to import the XBase stuff in the grammar and the workflow now?
Thanks again
Ingo
|
|
| | |
Re: [XBase] Overwriting Xbase Grammar Elements [message #723012 is a reply to message #722940] |
Wed, 07 September 2011 12:37 |
Ingo Meyer Messages: 162 Registered: July 2009 |
Senior Member |
|
|
Ok, with both the old and new style it works so far that it will find all used EPackages.
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
registerEcoreFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xtype.ecore"
registerEcoreFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"
registerEcoreFile = "platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore"
}
component = Generator {
pathRtProject = runtimeProject
pathUiProject = "${runtimeProject}.ui"
pathTestProject = "${runtimeProject}.tests"
projectNameRt = projectName
projectNameUi = "${projectName}.ui"
language = {
loadedResource = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
loadedResource = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
Thanks for that.
[Updated on: Wed, 07 September 2011 12:40] Report message to a moderator
|
|
|
Re: [XBase] Overwriting Xbase Grammar Elements [message #723059 is a reply to message #723012] |
Wed, 07 September 2011 14:31 |
Ingo Meyer Messages: 162 Registered: July 2009 |
Senior Member |
|
|
Now everything works for the grammar and generation part.
One has to write "XMyExpression returns xbase::XExpression" isntead "XMyExpression returns XExpression".
But the editor will not start:
org.eclipse.xtext.parser.ParseException: java.lang.IllegalStateException: Unresolved proxy platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore#//XFeatureCall. Make sure the EPackage has been registered.
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:105)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(AbstractAntlrParser.java:84)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:62)
at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser.java:27)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:156)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:70)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1511)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.loadResource(XtextDocumentProvider.java:142)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setDocumentContent(XtextDocumentProvider.java:119)
at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createDocument(XtextDocumentProvider.java:88)
at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:735)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:153)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4213)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:189)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:210)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: org.eclipse.emf.common.util.WrappedException: java.lang.IllegalStateException: Unresolved proxy platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore#//XFeatureCall. Make sure the EPackage has been registered.
at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:550)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:102)
... 106 more
Caused by: java.lang.IllegalStateException: Unresolved proxy platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore#//XFeatureCall. Make sure the EPackage has been registered.
at org.eclipse.xtext.parser.DefaultEcoreElementFactory.create(DefaultEcoreElementFactory.java:57)
at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.forceCreateModelElement(AbstractInternalAntlrParser.java:651)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleXFeatureCall(InternalPidoParser.java:20780)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleXPrimaryExpression(InternalPidoParser.java:26503)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleXMemberFeatureCall(InternalPidoParser.java:16747)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleFormModuleAuditTrail(InternalPidoParser.java:4290)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAbstractFormModule(InternalPidoParser.java:4027)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAbstractFormInput(InternalPidoParser.java:61163)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAbstractFormElement(InternalPidoParser.java:57803)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAttributeShow(InternalPidoParser.java:18516)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleFeature(InternalPidoParser.java:17283)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAttributeGroup(InternalPidoParser.java:18377)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleFeature(InternalPidoParser.java:17261)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleComplexDataType(InternalPidoParser.java:15303)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleAbstractElement(InternalPidoParser.java:983)
at com.xxx.parser.antlr.internal.InternalPidoParser.ruleModel(InternalPidoParser.java:711)
at com.xxx.parser.antlr.internal.InternalPidoParser.entryRuleModel(InternalPidoParser.java:598)
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.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:527)
... 107 more
Is Xtext working at all with the latest stable??? I use 2.0.1.v201109061923 now which is the latest stable!
What can be my mistake with the editor?
[Updated on: Wed, 07 September 2011 14:32] Report message to a moderator
|
|
|
Re: [XBase] Overwriting Xbase Grammar Elements [message #723146 is a reply to message #722920] |
Wed, 07 September 2011 20:04 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Ingo,
the grammar imports look good to me, but the language config seems to be
faulty. You imported genmodels where ecore files are expected:
loadedResource =
"platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore"
loadedResource =
"platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"
Please don't forget to import XAnnotations.ecore, too, if you extend
XbaseWithAnnotations.
Furthermore, please make sure to set scanClassPath to true in your
standalone setup and register the Xbase.genmodel there.
Does that help?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 07.09.11 10:04, Ingo Meyer wrote:
> Hi,
>
> there is something weird, maybe a bug?
>
> Here is my new grammar header:
>
> grammar com.xxx.Xxx with
> org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations
>
> import "http://www.eclipse.org/emf/2002/Ecore" as ecore
> import "http://www.eclipse.org/xtext/common/JavaVMTypes" as types
> import "http://www.eclipse.org/xtext/xbase/Xtype" as xtype
> import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase
> import "http://www.eclipse.org/Xtext/Xbase/XAnnotations" as xanno
>
> generate xxx "http://..."
>
>
> And the workflow part:
>
> language = {
>
> loadedResource =
> "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
>
> loadedResource =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
>
> uri = grammarURI
> fileExtensions = file.extensions
>
> fragment = ....
>
>
> Will give the following error:
>
> 1600 ERROR Mwe2Launcher - Problems instantiating module xxx.GenerateXxx:
> java.lang.reflect.InvocationTargetException
> java.lang.RuntimeException: Problems instantiating module
> xxx.GenerateXxx: 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:
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://www.eclipse.org/emf/2002/GenModel' not found.
> (platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel,
> 10, 53)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
>
> at
> org.eclipse.xtext.generator.LanguageConfig.setUri(LanguageConfig.java:159)
> ... 43 more
> Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package
> with uri 'http://www.eclipse.org/emf/2002/GenModel' not found.
> (platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel,
> 10, 53)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2591)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.java:2422)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1299)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1468)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1019)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:83)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1001)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:712)
> at
> org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:169)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
>
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1318)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
>
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
>
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
>
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:242)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1511)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1290)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
>
> ... 45 more
>
>
> please note the "Package with uri
> 'http://www.eclipse.org/emf/2002/GenModel' not found."
|
|
| | | | | |
Re: [XBase] Overwriting Xbase Grammar Elements [message #724055 is a reply to message #724038] |
Sat, 10 September 2011 14:38 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Ingo,
as I already suggested twice: please skip the registerEcoreFile stuff in
the StandaloneSetup.
The only location where you actually should have to list the ecore files
in the workflow is the language configuration.
I hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 10.09.11 14:54, Ingo Meyer wrote:
> Hmm, now I see my mistake, sorry!
> My loadedResource are wrong, I was confused by all the other things.
> To complete the picture, here is my latest workflow:
>
>
> bean = StandaloneSetup {
> scanClassPath = true
> platformUri = "${runtimeProject}/.."
>
> registerGenModelFile =
> "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
>
> registerGenModelFile =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
>
> registerEcoreFile =
> "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore"
> registerEcoreFile =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xtype.ecore"
> registerEcoreFile =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"
> registerEcoreFile =
> "platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore"
> }
>
> component = Generator {
> pathRtProject = runtimeProject
> pathUiProject = "${runtimeProject}.ui"
> pathTestProject = "${runtimeProject}.tests"
> projectNameRt = projectName
> projectNameUi = "${projectName}.ui"
>
> language = {
>
> loadedResource =
> "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore"
> loadedResource =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xtype.ecore"
> loadedResource =
> "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.ecore"
> loadedResource =
> "platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore"
>
> uri = grammarURI
> fileExtensions = file.extensions
>
>
>
> (the grammar didn't changed till last post)
> Now I imported everything everywhere, but interestingly it will not
> change the result that much.
> It doesn't matter if I give the ecore or genmodel in loadedResource, the
> grammar is generated in both cases.
>
> But I still get an error opening the editor (now with XAnnotations
> instead of Xbase):
>
>
> org.eclipse.xtext.parser.ParseException:
> java.lang.IllegalStateException: Unresolved proxy
> platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore#//XAnnotation.
> Make sure the EPackage has been registered.
> at
> org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:105)
>
> at
> org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(AbstractAntlrParser.java:84)
>
> at
> org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:62)
>
> at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser.java:27)
> at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:156)
> at
> org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:70)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1511)
>
> at
> org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.loadResource(XtextDocumentProvider.java:142)
>
> at
> org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setDocumentContent(XtextDocumentProvider.java:119)
>
> at
> org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
>
> at
> org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createDocument(XtextDocumentProvider.java:88)
>
> at
> org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:735)
>
> at
> org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:153)
>
> at
> org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4213)
>
> at
> org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
>
> at
> org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451)
>
> at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
> at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:189)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> at
> org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
>
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
>
> at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:210)
> at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
>
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
>
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
>
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
>
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
>
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
>
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
>
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
>
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
>
> at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
>
> at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
>
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
>
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
>
> at
> org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
>
> at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
> at
> org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
>
> at
> org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
>
> at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
>
> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>
> 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.equinox.launcher.Main.invokeFramework(Main.java:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
> Caused by: org.eclipse.emf.common.util.WrappedException:
> java.lang.IllegalStateException: Unresolved proxy
> platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore#//XAnnotation.
> Make sure the EPackage has been registered.
> at
> org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:550)
>
> at
> org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:102)
>
> ... 106 more
> Caused by: java.lang.IllegalStateException: Unresolved proxy
> platform:/resource/org.eclipse.xtext.xbase/model/XAnnotations.ecore#//XAnnotation.
> Make sure the EPackage has been registered.
> at
> org.eclipse.xtext.parser.DefaultEcoreElementFactory.create(DefaultEcoreElementFactory.java:57)
>
> at
> org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.forceCreateModelElement(AbstractInternalAntlrParser.java:651)
>
> at
> com.factoris.mdx.dsl.pim.pido.parser.antlr.internal.InternalPidoParser.ruleXAnnotation(InternalPidoParser.java:12262)
>
> at
> com.factoris.mdx.dsl.pim.pido.parser.antlr.internal.InternalPidoParser.ruleComplexDataType(InternalPidoParser.java:15152)
>
> at
> com.factoris.mdx.dsl.pim.pido.parser.antlr.internal.InternalPidoParser.ruleAbstractElement(InternalPidoParser.java:983)
>
> at
> com.factoris.mdx.dsl.pim.pido.parser.antlr.internal.InternalPidoParser.ruleModel(InternalPidoParser.java:711)
>
> at
> com.factoris.mdx.dsl.pim.pido.parser.antlr.internal.InternalPidoParser.entryRuleModel(InternalPidoParser.java:598)
>
> 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.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:527)
>
> ... 107 more
>
>
> Unfortunately I cannot compare with domainmodel example, because it will
> not work with the latst stable.
>
> I'm still believing there is a bug somewhere :)
>
> Thanks,
> Ingo
|
|
| |
Goto Forum:
Current Time: Fri Apr 19 21:07:54 GMT 2024
Powered by FUDForum. Page generated in 0.04146 seconds
|