Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xtext] MWE problem: Allowing backtracing in AntlrDelegating fragment yields to error
[Xtext] MWE problem: Allowing backtracing in AntlrDelegating fragment yields to error [message #62473] Wed, 22 July 2009 12:39 Go to next message
Eclipse UserFriend
Originally posted by: oba.informatik.uni-kiel.de

Hi,

thanks for your replies in advance. Here is my problem:

I have set the backtrace option of my AntLRDelegating fragment in the
GenerateMyDSL file of my grammar "MyDSL" according to the instructions,
given here:
http://wiki.eclipse.org/Xtext/FAQ#Why_do_I_get_warnings_like _.22warning.28200.29:_InternalFoo.g:42:3:_Decision_can_match _....22_when_running_the_generator.C2.A0.3F

When I now try and run the workflow, this is what it says to me:

ERROR eclipse.emf.mwe.core.WorkflowRunner - [ERROR]: No getter or adder
method for property 'options' in clazz
'org.eclipse.xtext.generator.AntlrDelegatingFragment' found. Forgot to
customize?(Element: bean options in
/home/oba/Desktop/workspaces/KIELER_KIT_Galileo/org.xtext.ex ample.textualsc/src/org/xtext/example/GenerateTSCL.mwe:33;
Reported by: -UNKNOWN-)

Aprreciate any help!

Thanks
mN
Re: [Xtext] MWE problem: Allowing backtracing in AntlrDelegating fragment yields to error [message #62589 is a reply to message #62473] Wed, 22 July 2009 13:16 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Ilyas,

the FAQ contains a bug. You have to use the XtextAntlrGeneratorFragment
directly if you want to use backtracking. Please change the classname in
your workflow to
de.itemis.xtext.antlr.XtextAntlrGeneratorFragment.
Also note that you'll have to enable backtracking for the
XtextAntlrUIGeneratorFragment too.

I'll update the FAQ.

Regards,
Sebastian

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

Am 22.07.2009 14:39 Uhr, schrieb myName:
> Hi,
>
> thanks for your replies in advance. Here is my problem:
>
> I have set the backtrace option of my AntLRDelegating fragment in the
> GenerateMyDSL file of my grammar "MyDSL" according to the instructions,
> given here:
> http://wiki.eclipse.org/Xtext/FAQ#Why_do_I_get_warnings_like _.22warning.28200.29:_InternalFoo.g:42:3:_Decision_can_match _....22_when_running_the_generator.C2.A0.3F
>
> When I now try and run the workflow, this is what it says to me:
>
> ERROR eclipse.emf.mwe.core.WorkflowRunner - [ERROR]: No getter or adder
> method for property 'options' in clazz
> 'org.eclipse.xtext.generator.AntlrDelegatingFragment' found. Forgot to
> customize?(Element: bean options in
> /home/oba/Desktop/workspaces/KIELER_KIT_Galileo/org.xtext.ex ample.textualsc/src/org/xtext/example/GenerateTSCL.mwe:33;
> Reported by: -UNKNOWN-)
>
> Aprreciate any help!
>
> Thanks
> mN
Re: [Xtext] MWE problem: Allowing backtracing in AntlrDelegating fragment yields to error [message #62613 is a reply to message #62589] Wed, 22 July 2009 13:18 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Sorry I've been confused, you are not Ilyas, but mN ?


Am 22.07.2009 15:16 Uhr, schrieb Sebastian Zarnekow:
> Hi Ilyas,
>
> the FAQ contains a bug. You have to use the XtextAntlrGeneratorFragment
> directly if you want to use backtracking. Please change the classname in
> your workflow to
> de.itemis.xtext.antlr.XtextAntlrGeneratorFragment.
> Also note that you'll have to enable backtracking for the
> XtextAntlrUIGeneratorFragment too.
>
> I'll update the FAQ.
>
> Regards,
> Sebastian
>
Previous Topic:Reading Xtext model file in Java Apps
Next Topic:[Xtext] Ecore Metamodel Question
Goto Forum:
  


Current Time: Thu Jul 18 17:32:33 GMT 2024

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

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

Back to the top