Community
Participate
Working Groups
I am CMake4Eclipse in Eclipse 2021-06 or 2021-09rc1 When trying to buld a project this error message appears (incuding the typo): Errors occurred during the build. Errors running builder 'CDT Builder' on project 'dipra-switch-v2.21'. Unexpcted/incorrect call to old clean method. Client code must call clean(Map,IProgressMonitor) The old clean method is not called from CMake4Eclipse, but from the CommonBuilder itself. Exception Strack Trace: java.lang.IllegalStateException: Unexpcted/incorrect call to old clean method. Client code must call clean(Map,IProgressMonitor) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.clean(CommonBuilder.java:1039) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performCleanning(CommonBuilder.java:972) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performPrebuildGeneration(CommonBuilder.java:868) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:754) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:517) at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:463) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:853) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:232) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:281) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:334) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:337) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:389) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:410) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:516) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413) at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:291) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Session-Data: eclipse.buildId=4.21.0.I20210830-0600 java.version=11.0.11 java.vendor=Ubuntu BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE Framework arguments: -product org.eclipse.epp.package.cpp.product --help Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product --help
Hello Malte, Thank you very much for this bug report! @Torbjörn - FYI It looks like I missed a call to clean when removing the old clean method. Bug 571134 introduced this problem. The code paths aren't hit in normal CDT - the call to clean is itself in CommonBuilder in a "catch Throwable" block. Frustratingly for timing we can't respin 10.4.0 without causing a full respin of the release at this point. Instead I suggest we roll out a 10.4.1 at the same time as the release, and I can put out a 10.3.4 right away.
10.3.3 is the next version on this branch.
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185265
Gerrit change https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185265 was merged to [cdt_10_3]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=be9e1a55c8269aa71b96af0dfcf6ed120792d029
@Malte - Can you test this release candidate and if it works I will promote it for everyone. https://download.eclipse.org/tools/cdt/builds/10.3/cdt-10.3.3-rc1/ Update instructions: 1) Add above URL to the list in Preferences -> Install/Update -> Available Software Sites 2) From Help menu -> Check for Updates Thank you, Jonah
Hi Jonah, it does work for me now. Thank you very much for your quick repsonse and fix. BR Malte.
(In reply to Malte Langermann from comment #6) > it does work for me now. Great - thank you for testing. CDT 10.3.3 has been released now. The patch needs to be applied to newer branches and this bug will be closed once that happens in the next few hours.
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185304
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185305
Gerrit change https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185304 was merged to [cdt_10_4]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=5fa5126afce7eff9d05efaea67910159ae2f7459
Gerrit change https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/185305 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=47a94fe3d9d66d11d016e2d46cd0fce460efded8
@Martin - FYI as you may see direct reports due to this CDT regression that is now fixed.
Fixes have been applied. We'll have to release 10.4.1 the same day as 2021-09 so that users can update and get the fix.
@Jonah It noticed i by myself earlier but had not time to fix it. Originally reported it for cmake4eclipse first. Thanks for fixing it.