当前位置:网站首页>Troubleshooting - about clip not found Visual Studio

Troubleshooting - about clip not found Visual Studio

2022-07-05 17:30:00 kkmmzmzmznjsns

2022-06-27 07:47:23,408 [  18576]   INFO - rains.cidr.cpp.toolchains.MSVC - Cannot read MSVC version: Cannot load Visual C++ environment from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat:
Cannot run program "cmd.exe" (in directory "D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"): CreateProcess error=740,  The requested operation needs to be promoted . 
com.intellij.execution.ExecutionException: Cannot load Visual C++ environment from D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat:
Cannot run program "cmd.exe" (in directory "D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"): CreateProcess error=740,  The requested operation needs to be promoted .
	at com.jetbrains.cidr.cpp.toolchains.MSVC$EnvCache.getEnvironment(MSVC.java:533)
	at com.jetbrains.cidr.cpp.toolchains.MSVC.prepareEnvironment(MSVC.java:144)
	at com.jetbrains.cidr.cpp.toolchains.MSVC.readVersion(MSVC.java:69)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$5.readAndCheckVersion$intellij_clion(CPPToolchainsPanel.kt:584)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$5.readAndCheckVersion$intellij_clion(CPPToolchainsPanel.kt:578)
	at com.jetbrains.cidr.cpp.toolchains.VersionChecker.check(CPPToolchainsUIUtils.kt:187)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addVersionChecker$checkerRunnable$1.runInBackground(CPPToolchainsPanel.kt:861)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addVersionChecker$checkerRunnable$1.runInBackground(CPPToolchainsPanel.kt:855)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(CPPToolchainsPanel.kt:1082)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1$backgroundFunction$1.invoke(CPPToolchainsPanel.kt:1055)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanelKt$sam$java_lang_Runnable$0.run(CPPToolchainsPanel.kt)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.jetbrains.cidr.cpp.toolchains.CPPToolchainsPanel$ToolchainPanel$addChecker$runnable$1$run$1.run(CPPToolchainsPanel.kt:1083)
	at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
	at com.intellij.util.Alarm$Request.runSafely(Alarm.java:367)
	at com.intellij.util.Alarm$Request.run(Alarm.java:357)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:222)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:29)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:201)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:210)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:190)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: Cannot run program "cmd.exe" (in directory "D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"): CreateProcess error=740,  The requested operation needs to be promoted .
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
	at com.intellij.util.EnvironmentUtil$ShellEnvReader.runProcessAndReadOutputAndEnvs(EnvironmentUtil.java:293)
	at com.intellij.util.EnvironmentUtil$ShellEnvReader.readBatOutputAndEnv(EnvironmentUtil.java:266)
	at com.jetbrains.cidr.cpp.toolchains.MSVC$EnvCache$2.readBatOutputAndEnv(MSVC.java:515)
	at com.jetbrains.cidr.cpp.toolchains.MSVC$EnvCache.getEnvironment(MSVC.java:517)
	... 28 more
Caused by: java.io.IOException: CreateProcess error=740,  The requested operation needs to be promoted .
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
	... 33 more

By looking at idea log It is found that it is a permission problem ,
Run as an administrator clion, solve .

原网站

版权声明
本文为[kkmmzmzmznjsns]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051659131993.html