Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Issues with Clean & Auto Build in Xtext 2.9
Issues with Clean & Auto Build in Xtext 2.9 [message #1724161] Mon, 22 February 2016 03:35 Go to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
I didn't realize this issue until recently.
In debug env a new instance of Eclipse will be started, I create several of my dsl files in a project and everything works fine, all files will be automatically built when I save them. When I clean the project from MENU>Project, all files could be automatically rebuilt, just as what I want.

My DSL usually will work with a Java project. When I install my dsl plugin in a JDT enabled eclipse and do the same as above in a Java project, the auto build doestn't work anymore, all java files are rebuilt but dsl files. The auto build after saving still works.

What should I do to make JDT's auto build work on my DSL too?
Re: Issues with Clean & Auto Build in Xtext 2.9 [message #1724165 is a reply to message #1724161] Mon, 22 February 2016 04:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
If the dsl files are in a src folder and the project has xtext nature it
will be built.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Issues with Clean & Auto Build in Xtext 2.9 [message #1724310 is a reply to message #1724165] Tue, 23 February 2016 02:34 Go to previous messageGo to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
Thanks. It seems I have to add all parent folders that contain dsl files as source folder. I added only the root folder as source folder, it didn't work.

Christian Dietrich wrote on Mon, 22 February 2016 04:53
If the dsl files are in a src folder and the project has xtext nature it
will be built.

Re: Issues with Clean & Auto Build in Xtext 2.9 [message #1724414 is a reply to message #1724310] Tue, 23 February 2016 18:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
maybe it is this one https://bugs.eclipse.org/bugs/show_bug.cgi?id=467645

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Issues with Clean & Auto Build in Xtext 2.9 [message #1724443 is a reply to message #1724414] Wed, 24 February 2016 01:13 Go to previous messageGo to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
It still doesn't work. Can't get all dsl files auto built in JDT although all dsl files are in a source folder.
Any thing I can do to work around this bug?
Re: Issues with Clean & Auto Build in Xtext 2.9 [message #1724454 is a reply to message #1724443] Wed, 24 February 2016 04:30 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
Weihua Fan <forums-noreply@xxxxxxxx> wrote:
> It still doesn't work. Can't get all dsl files auto built in JDT although
> all dsl files are in a source folder.
> Any thing I can do to work around this bug?
>

Can you share a small example that shows what you are doing. I do not
understand your project setup


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Issues with Clean &amp;amp; Auto Build in Xtext 2.9 [message #1724779 is a reply to message #1724454] Fri, 26 February 2016 01:45 Go to previous messageGo to next message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
Here's an example:

I create a little example Java project and turn on Xtext Nature for it.
the project structure looks like the following:
index.php/fa/25116/0/

the default output folder is set to /target/classes

as you can see from the following screenshot, when I create & save a new dsl file(.fg) the binary file(.fsa) is automatically generated.
index.php/fa/25117/0/

When I do a clean from menu, you can see from the next picture fsa file is gone.
index.php/fa/25119/0/

Any suggestions?
Re: Issues with Clean &amp;amp; Auto Build in Xtext 2.9 [message #1724786 is a reply to message #1724779] Fri, 26 February 2016 04:16 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
This should not happen. Can you share the complete code (grammar generator maybe customizations) needed to reproduce ( a minimal example is fine)

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:problem of coloration keywords
Next Topic:Using xtend in RCP
Goto Forum:
  


Current Time: Fri Sep 24 19:36:12 GMT 2021

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

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

Back to the top