Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » problem with 2.0->2.1 update
problem with 2.0->2.1 update [message #755708] Wed, 09 November 2011 11:05 Go to next message
gary s thompson is currently offline gary s thompsonFriend
Messages: 92
Registered: July 2009
Member
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 #755713 is a reply to message #755708] Wed, 09 November 2011 11:20 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Looks OK on first sight. Do you have a plugin dependency to org.eclipse.xtext.xbase?

Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: problem with 2.0->2.1 update [message #755721 is a reply to message #755708] Wed, 09 November 2011 11:38 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Gary,

please make sure that you register the generated EPackage for Xbase in
the standalone setup of your workflow.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

On 09.11.11 12:05, gary s thompson wrote:
> 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 #755738 is a reply to message #755721] Wed, 09 November 2011 12:33 Go to previous messageGo to next message
Rainer Klute is currently offline Rainer KluteFriend
Messages: 3
Registered: July 2009
Junior Member
Sebastian Zarnekow wrote on Wed, 09 November 2011 06:38
please make sure that you register the generated EPackage for Xbase in
the standalone setup of your workflow.


And how exactly do I do this?
Re: problem with 2.0->2.1 update [message #755745 is a reply to message #755738] Wed, 09 November 2011 13:07 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 42
Registered: July 2009
Member
Simply add this line to the StandaloneSetup section:

registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"


> Sebastian Zarnekow wrote on Wed, 09 November 2011 06:38
>> please make sure that you register the generated EPackage for Xbase in
>> the standalone setup of your workflow.
>
>
> And how exactly do I do this?
>
Re: problem with 2.0->2.1 update [message #755748 is a reply to message #755738] Wed, 09 November 2011 13:19 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
See the docs.

http://www.eclipse.org/Xtext/documentation/2_1_0/020-grammar-language.php#package_declarations_3

Regards,
Sebastian

On 09.11.11 13:33, Rainer Klute wrote:
> Sebastian Zarnekow wrote on Wed, 09 November 2011 06:38
>> please make sure that you register the generated EPackage for Xbase in
>> the standalone setup of your workflow.
>
>
> And how exactly do I do this?
>
Re: problem with 2.0->2.1 update [message #755772 is a reply to message #755748] Wed, 09 November 2011 14:44 Go to previous messageGo to next message
Rainer Klute is currently offline Rainer KluteFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks! The MWE2 workflow now runs flawlessly, but ...

I get two dozens of Java and Xtend errors (see attachment).

I am working with your (otherwise unmodified) domain model tutorial material in <git://github.com/szarnekow/Xtext-Workshop-Development-Workspace.git> as of 2011-07-05. Does it have any incompatibilities wrt Xtext 2.1?

[Updated on: Wed, 09 November 2011 15:30]

Report message to a moderator

Re: problem with 2.0-&amp;gt;2.1 update [message #755773 is a reply to message #755772] Wed, 09 November 2011 14:45 Go to previous messageGo to next message
Rainer Klute is currently offline Rainer KluteFriend
Messages: 3
Registered: July 2009
Junior Member
[I'd delete this outdated and emptied message, if only I could.] Sad

[Updated on: Wed, 09 November 2011 15:35]

Report message to a moderator

Re: problem with 2.0-&amp;gt;2.1 update [message #757116 is a reply to message #755773] Wed, 16 November 2011 15:00 Go to previous messageGo to next message
gary s thompson is currently offline gary s thompsonFriend
Messages: 92
Registered: July 2009
Member
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
Re: problem with 2.0-&amp;gt;2.1 update [message #757149 is a reply to message #757116] Wed, 16 November 2011 18:52 Go to previous messageGo to next message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
As for your direct problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=362655
You can use this as a workaround: https://github.com/dslmeinte/LessCss/blob/master/nl.dslmeinte.xtext.css/src/nl/dslmeinte/xtext/CorrectedSimpleNamesFragment.java


Re: problem with 2.0-&amp;gt;2.1 update [message #819897 is a reply to message #757149] Tue, 13 March 2012 13:12 Go to previous message
Aaron Digulla is currently offline Aaron DigullaFriend
Messages: 258
Registered: July 2009
Location: Switzerland
Senior Member
The correct URL for CorrectedSimpleNamesFragment is https://github.com/dslmeinte/LessCss/blob/c72ffb6d2a66703ad5001847e8ba83342856c791/nl.dslmeinte.xtext.css/src/nl/dslmeinte/xtext/css/CorrectedSimpleNamesFragment.java

but it doesn't work with Xtext 2.0 Sad Even when I enable it in my mwe2 instead of

fragment = exporting.SimpleNamesFragment {}


I still get the same error as before:

java.lang.IllegalStateException: Cannot override final binding 'final org.eclipse.xtext.naming.IQualifiedNameProvider -> org.eclipse.xtext.naming.SimpleNameProvider (contributed by com.avanon.eclipse.i18n_dsl.scoping.CorrectedSimpleNamesFragment)'
	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)
Previous Topic:importURI and importNamespace
Next Topic:Helping Xtext to resolve cross references across several files
Goto Forum:
  


Current Time: Fri Apr 19 02:15:06 GMT 2024

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

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

Back to the top