Community
Participate
Working Groups
Hi, my colleagues starts multiple build targets at once to run them in given order. But even if the option "max simultaneous project builds" is set to 1 (General-> workspace -> build), targets are still building simultaneously instead of run in order which is bad for our build. (It's C/C++ build) Is there any other way how to stop simultaneous build? Or this is bug in settings? Thank you Best regards Zdenek Ziegler
This seems to be related to C/C++ code, moving to CDT.
Hi again, are there any news? :)
Hi Zdeněk, I am sorry, I can't reproduce this problem. Can you give me some more information on how to reproduce the problem please.
oh, thats unpleasant.. maybe I forgot to tell you we are running ANT files for build. And if we run 2 scripts in row, they are building simultaneously instead of in series. For example: 1. Clean script 2. Build script In simultaneous build they ruining each other.
Sorry to bounce this bug around - but Comment 4 identifies this as an Ant build (that presumably does some C/C++ stuff?). If it is Ant issue, this belongs with them.
This feature was added to Platform Resource component via Bug 530649.
I believe if you run the builds explicitly at the same time one by one, then the property doesn't matter; the IDE will try to build things in parallel (I think it always did). The option may be incorrectly named, but it's more "When triggering a workspace build or multiple builds at the same time, run maximum N of these builds in parallel".
Zdenek, could you please provide simple reproducible example (two projects with two build files and whatever else config needed), zip them all and attach here? That would save time for all trying to reproduce/fix this bug.
Unfortunately our company rules does not allow to share anything from our projects and I am not able to recreate simple example of given projects :( Our colleagues told me that Eclipse 2019-03 did not have this problem. Once we updated to Eclipse 2020-03 this issue appeared. And yes, Ant script do a lot of stuff, call other sub builds, directory management, CDT calls. Those project are huge.
(In reply to Zdeněk Ziegler from comment #9) > this problem Can you please elaborate on what is the actual problem with running things in parallel? Scheduling Rules are used by Eclipse to determine what can run in parallel or not, so if some scheduling rules are now relaxed, more things can run in parallel. But still it's unclear to me what is the real symptom or problem here that makes runnng things in parallel not desired.
Hi, I discussed it with my colleague and the situation is following. Our strategy is to use a "Build Target" to run a Batch-File. That Batch-File starts an Ant-Build in turn. We are using one antfile with different parameters for different builds. For example: antmake.bat build -> to run a build antmake.bat clear -> to run a clear If we run the first example and immediatelly the second atfer it, they run in parallel and the clean deletes stuff that the build just created. In previous versions it just created a queue and run it in series.
Hi, unfortunately the problem is still there, even in version 4.19