Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » extending grammar: error in generated Semantic Sequencer?
extending grammar: error in generated Semantic Sequencer? [message #821890] Thu, 15 March 2012 23:39 Go to next message
Scott Finnie is currently offline Scott FinnieFriend
Messages: 94
Registered: October 2011
Member
I have two languages, one extending the other.

When I regenerate the extending language there is an error in the generated AbstractExtensionSemanticSequencer.java.

Looking into the file, the error is because it references the sequencer from the base language incorrectly. Specifically, the generated file refers to

BaseSemanticSequencer

instead of
AbstractBaseSemanticSequencer


Manually changing the generated file throughout (i.e. to use AbstractBaseSemanticSequencer) removes the error. Of course the file is replaced next time the generator is run, re-creating the problem.

The base project appears fine (no errors/warnings, all unit tests run, can launch in runtime IDE). The extension project is similarly fine when the manual fixes are made.

Any suggestions appreciated...

Thanks.
Re: extending grammar: error in generated Semantic Sequencer? [message #822085 is a reply to message #821890] Fri, 16 March 2012 06:36 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Scott,

you may want to set generateStub = false for the SerializerFragment to
true in the workflow that generates your language infrastructure.

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

Am 16.03.12 00:39, schrieb Scott Finnie:
> I have two languages, one extending the other.
>
> When I regenerate the extending language there is an error in the
> generated AbstractExtensionSemanticSequencer.java.
>
> Looking into the file, the error is because it references the sequencer
> from the base language incorrectly. Specifically, the generated file
> refers to
>
> BaseSemanticSequencer
> instead of AbstractBaseSemanticSequencer
>
> Manually changing the generated file throughout (i.e. to use
> AbstractBaseSemanticSequencer) removes the error. Of course the file is
> replaced next time the generator is run, re-creating the problem.
>
> The base project appears fine (no errors/warnings, all unit tests run,
> can launch in runtime IDE). The extension project is similarly fine when
> the manual fixes are made.
>
> Any suggestions appreciated...
>
> Thanks.
>
Re: extending grammar: error in generated Semantic Sequencer? [message #822108 is a reply to message #822085] Fri, 16 March 2012 07:19 Go to previous message
Scott Finnie is currently offline Scott FinnieFriend
Messages: 94
Registered: October 2011
Member
That solved it - excellent. Thanks Sebastian.

- Scott.
Previous Topic:[Xtend] Xtend 2.3 maven compiler build
Next Topic:using non java style escaping in xtext eclipse editor
Goto Forum:
  


Current Time: Thu Apr 25 10:21:03 GMT 2024

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

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

Back to the top