Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Infinite build loop
Infinite build loop [message #1816939] Tue, 12 November 2019 14:45 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 181
Registered: July 2009
Senior Member
Sporadically I've run into the problem of a seemingly infinite loop during the build of my DSL. I save a file, the builder starts, and builds the same files over and over again.
Unfortunately I don't know much about how exactly the Xtext builder works internally.

Is there any documentation, for example, a blog post, that could help my understanding? Are there any specific methods that I should debug to see what's going on when the loop happens?

Thanks in advance.
Re: Infinite build loop [message #1816940 is a reply to message #1816939] Tue, 12 November 2019 14:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
there is no documentation, but i have some questions back
- which Xtext version
- you are talking about the eclipse builder?
- do dont make use of any subversion plugins or other non git vcs

=> can you check if the build is canceled?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Infinite build loop [message #1816941 is a reply to message #1816939] Tue, 12 November 2019 15:02 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Hard to tell without debugging it myself. Of course, start with XtextBuilder. Also interesting is ToBeBuiltComputer, as starting points. It could be that there are resource change events causing this to run in a loop. Normally there is a circuit break that avoids the situation, but the builder infrastructure there is not really trivial.

We would also need to dig deep into it when it occurs in a specific situation. Things of that kind we can't support here in the forum properly. If it drives you nuts consider if it is worth your time to solve it, or get an expert on board.
Re: Infinite build loop [message #1816944 is a reply to message #1816940] Tue, 12 November 2019 16:55 Go to previous messageGo to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 181
Registered: July 2009
Senior Member
Xtext 2.19
Yes, eclipse
git only

How do I see if the build is canceled? Or do you mean if it can be canceled?
Re: Infinite build loop [message #1816946 is a reply to message #1816944] Tue, 12 November 2019 17:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
No you need to check if the Xtext build gets interrupted

There should be a operationxanxeledexeption then

You might also check the deltas in ClusteringBuikderState doUpdate

Is it always the same or toggling verweb different ones


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Infinite build loop [message #1816952 is a reply to message #1816946] Tue, 12 November 2019 19:10 Go to previous messageGo to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 181
Registered: July 2009
Senior Member
There actually is an OperationCaneledException thrown in MarkerUpdaterImpl.updateMarkers because the monitor is canceled.
I have no idea why it is.

Re: Infinite build loop [message #1816953 is a reply to message #1816952] Tue, 12 November 2019 19:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
one common thing is e.g. jobs with a higher prio that stop the autobuildjob.
you might have a look at the tracing options for the auto build
or have a look at callers for org.eclipse.core.internal.events.AutoBuildJob.setInterrupted(boolean)
e.g. at org.eclipse.core.internal.events.AutoBuildJob.isInterrupted()


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 12 November 2019 19:29]

Report message to a moderator

Re: Infinite build loop [message #1816954 is a reply to message #1816953] Tue, 12 November 2019 19:38 Go to previous messageGo to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 181
Registered: July 2009
Senior Member
It was another job that shouldn't have run.
Thanks for your help!
Re: Infinite build loop [message #1816955 is a reply to message #1816954] Tue, 12 November 2019 19:41 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
you might also give the other job a lower prio e.g. set it as system

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to configure MonarchTokensProvider for my Xtext-DSL and Monaco editor
Next Topic:Resolving JvmTypes in tests and standalone environments
Goto Forum:
  


Current Time: Fri Apr 26 17:18:23 GMT 2024

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

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

Back to the top