Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext builder does not compile genereted xtend classes(I am generating xtend classes from my DSL but they do not get compiled to java)
Xtext builder does not compile genereted xtend classes [message #1699098] Sat, 20 June 2015 22:25 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I am generating xtend classes from my DSL but they do not get compiled to java.
How can I fix this? Is there a way to tell the builder to run twice ?
Re: Xtext builder does not compile genereted xtend classes [message #1699142 is a reply to message #1699098] Mon, 22 June 2015 05:40 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
No, the builder currently ignores files that it generated. It would have to do a respin.
Why do you generate Xtend and not Java files in your case?
Re: Xtext builder does not compile genereted xtend classes [message #1699168 is a reply to message #1699142] Mon, 22 June 2015 09:40 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Sven Efftinge wrote on Mon, 22 June 2015 01:40
No, the builder currently ignores files that it generated. It would have to do a respin.

Is there a convienent way to do that?
Sven Efftinge wrote on Mon, 22 June 2015 01:40
Why do you generate Xtend and not Java files in your case?

Because Xtend does more type inferrence on it self and do not need to generate so much type infos.
Re: Xtext builder does not compile genereted xtend classes [message #1699889 is a reply to message #1699168] Sun, 28 June 2015 22:02 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Hi,

can somebody help my in getting theXtextBuilder to respin ? I guess I need a plugin that uses an extenstion point to trigger the XtextBuilder again if appropriate.
Re: Xtext builder does not compile genereted xtend classes [message #1700591 is a reply to message #1699889] Sat, 04 July 2015 08:55 Go to previous messageGo to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
It seems I found a solution. If I use a different output configurration for the generated xtend files they get compiled to java instantly.
Re: Xtext builder does not compile genereted xtend classes [message #1700710 is a reply to message #1700591] Mon, 06 July 2015 15:07 Go to previous message
Stefan Oehme is currently offline Stefan OehmeFriend
Messages: 159
Registered: April 2010
Location: Kiel
Senior Member

I strongly recommend you generate Java instead. The builder will be faster (since it doesn't have to run twice). Also think about features like navigation: When you CTRL-Click on a method generated from your DSL, your current approach would bring you to the Xtend code instead of to the original declaration in your DSL file. This greatly reduces usability.
Previous Topic:Xtext Index confused ?
Next Topic:Extract value from xtext file for label decorator
Goto Forum:
  


Current Time: Thu Apr 25 10:58:36 GMT 2024

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

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

Back to the top