11

Is it possible to debug which process triggered a 'Building workspace' in Eclipse?

I have a Java project with some BIRT reports. While this project is open Eclipse restarts 'Building workspace' in an infinite loop.
I'm using Eclipse 3.6.1 with BIRT 2.6.1

bw_üezi
  • 4,483
  • 4
  • 23
  • 41
  • Can you try to use the [Process Monitor](http://technet.microsoft.com/en-us/sysinternals/bb896645) to find out which operation in the workspace triggers the build? As a filter, limit it to files in the workspace and only write operations. The files touched before a lot of `*.class` files are written is probably interesting. – Aaron Digulla Jun 24 '14 at 13:44

3 Answers3

7

Having something open in another editor in the target directory of the project in which the problem is occurring can also cause an infinite "Build Workspace" loop.

DonieM
  • 71
  • 1
  • 5
3

probably related to Win7. I added my workspace repository to the Windows Explorer Favorites or Windows Explorer Libraries. This seems to write some data and trigger eclipse to rebuild.

bw_üezi
  • 4,483
  • 4
  • 23
  • 41
  • 1
    Eclipse [Bug 342931](https://bugs.eclipse.org/bugs/show_bug.cgi?id=342931) - Windows 7 Libraries trigger rebuilds – bw_üezi May 16 '11 at 07:08
  • 1
    This behavior is found on both Windows and Mac OS X. – Old McStopher Aug 22 '11 at 20:56
  • @Old McStopher my issue was specifically related to Eclipse [Bug 342931](https://bugs.eclipse.org/bugs/show_bug.cgi?id=342931). sure there are other issues/scenarios resulting in a similar effect. – bw_üezi Aug 23 '11 at 07:16
  • 2
    This happens to me on Ubuntu linux as well. Probably this answer is wrong – Amir Uval Jan 09 '13 at 11:51
  • Getting this also on Windows XP SP3. – 8bitjunkie Jun 11 '13 at 15:17
  • Well, after I removed my workspace form the Windows 7 Favourites thing, the infinite loop building stopped. HOWEVER, when I manually triggers a "Maven Project Update" (right click->Maven->Update Project...) it started up again. So basically it seems the answer is not WRONG, just incomplete. – demaniak Dec 19 '13 at 10:31
  • Just FYI - this started happening after I added a bunch of WSDL references via the CXF maven plugin. Not sure if that is relevant. – demaniak Dec 19 '13 at 10:34
  • @demaniak I am also facing same issue, I added maven-jaxb2-plugin /WSDL and looping of build happens. So I set forceRegenerate as false and seem to stop the loop. but I am not sure how to have it set to true and avoid looping of build – Mukun Oct 07 '14 at 14:07
  • It shows also on Windows 10. I was able to solve it by unpinning my workspace from the Quick Access – Cristiano Ghersi Dec 28 '16 at 08:44
2

Click Project tab on top of eclipse > uncheck "Build Automatically". This resolved the issue for me.

Phoenix
  • 31
  • 3