Docker toolchain not working after update to 2024.1

已完成

Here's an issue that I can't get submitted to YouTrack.

CLion Version: 2024.1

Steps to reproduce the problem:

Have a working Docker toolchain in 2023.3.

Upgrade to 2024.1.

Try to build with the Docker toolchain.

The actual result:

The Docker toolchain is reporting errors trying to find the tools in the containers.

This is the error message that I get:

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/misc/cmake_check_environment15269804539213577452/_build693178030767038833


Status 409: {"message":"container 1f28d6748993d1436096fa37bac0e6463138c00d2f1f6a21eb443d8a4f68879f is not running"}


com.github.dockerjava.api.exception.ConflictException: Status 409: {"message":"container 1f28d6748993d1436096fa37bac0e6463138c00d2f1f6a21eb443d8a4f68879f is not running"}

	at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:245)
	at com.github.dockerjava.core.DefaultInvocationBuilder.post(DefaultInvocationBuilder.java:124)
	at com.github.dockerjava.core.exec.ExecCreateCmdExec.execute(ExecCreateCmdExec.java:30)
	at com.github.dockerjava.core.exec.ExecCreateCmdExec.execute(ExecCreateCmdExec.java:13)
	at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21)
	at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:33)
	at com.github.dockerjava.core.command.ExecCreateCmdImpl.exec(ExecCreateCmdImpl.java:170)
	at com.github.dockerjava.core.command.ExecCreateCmdImpl.exec(ExecCreateCmdImpl.java:11)
	at com.intellij.docker.agent.util.InternalUtilsKt.createExecCmd(internalUtils.kt:55)
	at com.intellij.docker.agent.remote.DockerRemoteUtilsKt.doExec(dockerRemoteUtils.kt:191)
	at com.intellij.docker.agent.remote.DockerRemoteUtilsKt.exec(dockerRemoteUtils.kt:107)
	at com.intellij.docker.remoteRunRuntime.RemoteDockerApplicationRuntime.execWithoutTty(RemoteDockerApplicationRuntime.java:112)
	at com.jetbrains.cidr.cpp.toolchains.docker.DockerExecutor$DockerApplicationRuntimeWrapper.exec(DockerExecutor.java:180)
	at com.jetbrains.cidr.cpp.toolchains.docker.DockerExecutor.exec(DockerExecutor.java:107)
	at com.jetbrains.cidr.cpp.toolchains.docker.DockerHost.runProcess(DockerHost.kt:230)
	at com.jetbrains.cidr.system.HostMachine.runProcess(HostMachine.java:49)
	at com.jetbrains.cidr.system.SystemUtil.isExecutable(SystemUtil.java:95)
	at com.jetbrains.cidr.cpp.toolchains.CPPEnvironment.doResolveEnvPathToLocalExecutable(CPPEnvironment.java:483)
	at com.jetbrains.cidr.cpp.toolchains.CPPEnvironment.resolveEnvPathToLocalExecutable(CPPEnvironment.java:428)
	at com.jetbrains.cidr.cpp.toolchains.CMakeBasedDevEnvironmentCheckerKt.getValueFromCacheFile(CMakeBasedDevEnvironmentChecker.kt:159)
	at com.jetbrains.cidr.cpp.toolchains.CMakeBasedDevEnvironmentCheckerKt.access$getValueFromCacheFile(CMakeBasedDevEnvironmentChecker.kt:1)
	at com.jetbrains.cidr.cpp.toolchains.CMakeBasedDevEnvironmentChecker.checkDevEnvironment(CMakeBasedDevEnvironmentChecker.kt:99)
	at com.jetbrains.cidr.cpp.toolchains.ui.CMakeToolsStateChecker.runInBackground(CMakeToolsStateChecker.kt:52)
	at com.jetbrains.cidr.cpp.toolchains.ui.CMakeToolsStateChecker.runInBackground(CMakeToolsStateChecker.kt:17)
	at com.jetbrains.cidr.cpp.toolchains.ui.ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(ToolchainPanel.kt:721)
	at com.jetbrains.cidr.cpp.toolchains.ui.ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(ToolchainPanel.kt:721)
	at com.jetbrains.cidr.cpp.toolchains.ui.ToolchainPanel$addChecker$runnable$1.run$lambda$2$lambda$0(ToolchainPanel.kt:722)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
	at com.jetbrains.cidr.cpp.toolchains.ui.ToolchainPanel$addChecker$runnable$1.run$lambda$2(ToolchainPanel.kt:722)
	at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:81)
	at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:81)
	at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:86)
	at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:81)
	at com.intellij.util.Alarm$Request.lambda$runSafely$0(Alarm.java:369)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:253)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:369)
	at com.intellij.util.Alarm$Request.run(Alarm.java:356)
	at com.intellij.util.concurrency.Propagation.contextAwareCallable$lambda$2(propagation.kt:357)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:272)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:244)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:30)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:222)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:210)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)

The expected result:

When on 2023.3.2, it can find the tools successfully.

Downgrading to 2023.3.2 fixes the issue.

0

I was able to submit this to Youtrack just now.

0

Just for the record, the YouTrack issue is CPP-38376

0

请先登录再写评论。