-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postpone build container creation to build start. Fixes possible Ecli… #433
Conversation
afc45d7
to
c8c41dd
Compare
I don't see a relation with the failure and my change. |
Sorry - the build failure is not related to you. Something in our dependencies changed in the last few days. I will look at this soon. |
…pse freeze. The creation of the build container for Core Build projects is postponed to the start of the build process. StandardBuildConfiguration getBuildContainer and setBuildContainer have been cleaned up. CBuildConfiguration creation is started via CBuildConfigurationManager.getBuildConfiguration(IBuildConfiguration) which holds a lock on the HashMap 'configs'. Creation of StandardBuildConfiguration triggered, via applyProperties and getBuildContainer(), a Folder.create which loops back to CBuildConfigurationManager.getBuildConfiguration(). For detailed traces see eclipse-cdt#424 Fixes issue eclipse-cdt#424
c8c41dd
to
ac37e38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have rebased on main to pick up snakeyaml fix submitted in #436
Once the build succeeds I can merge this.
if (!(container instanceof IProject) && !container.exists()) { | ||
IContainer parent = container.getParent(); | ||
if (!(parent instanceof IProject) && !parent.exists()) { | ||
createBuildContainer(parent, monitor); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it also handles the case of more than 2 layers of containers. Thanks
Thanks @ewaterlander PS I changed the commit text and description from |
Thanks Jonah. |
…pse freeze.
The creation of the build container for Core Build projects is postponed to the start of the build process.
StandardBuildConfiguration getBuildContainer and setBuildContainer have been cleaned up.
CBuildConfiguration creation is started via
CBuildConfigurationManager.getBuildConfiguration(IBuildConfiguration) which holds a lock on the HashMap 'configs'. Creation of StandardBuildConfiguration triggered, via applyProperties and getBuildContainer(), a Folder.create which loops back to CBuildConfigurationManager.getBuildConfiguration(). For detailed traces see #424
Fixes #424