Community
Participate
Working Groups
Build Identifier: I20110613-1736 The scenario is Xtext projects A and B, where B has a dependency on A. If a resource in A is changed the XtextBuilder will sometimes perform two full builds on A and one full build on B (the 2nd full build on A is unexpected). Provided the resource change causes a full build, two full builds of A will occur if ProjectOpenedOrClosedListener was notified thereof after ProjectClasspathChangeListener. Reproducible: Sometimes Steps to Reproduce: 1. Set up Xtext projects A & B where B has dependency on A 2. Make full build triggering resource change in A, e.g. modify manifest
Actualy there is no need of two projects - a workspace with only one project is sufficient. Steps to Reproduce: 1. Create plugin project and add XtextNature 2. Modify manifest
Holger, I've some pending changes for the BuildScheduler. I think we should synchronize our efforts for this issue.
Ok. Skype?
Carl, could you please mention what excatly you changed in the manifest.mf and how you changed the file? Did you use the editor oder just a texteditor?
Created attachment 203328 [details] fix and test
A review would be welcome. :-)
Looks good to me at a first glance. Two minor remarks: 1) Would it be possible to extend AbstractParticipatingBuilderTest in the test class. It provides some helper function to validate the build events, e.g. you could override org.eclipse.xtext.builder.impl.AbstractParticipatingBuilderTest.build(IBuildContext, IProgressMonitor) to do the counting stuff. 2) The manifest file that you create in the test seems to miss a ',' in the require-bundle section.
Tnaks for the review. I will change what you figured out and push it to master.
pushed to master
Closing all bugs that were set to RESOLVED before Neon.0