当前位置:网站首页>排错-关于clion not found visual studio 的问题
排错-关于clion not found visual studio 的问题
2022-07-05 16:59: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, 请求的操作需要提升。
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, 请求的操作需要提升。
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, 请求的操作需要提升。
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, 请求的操作需要提升。
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
通过查看idea log 发现是权限问题,
以管理员运行clion,解决。
边栏推荐
- CMake教程Step5(添加系统自检)
- Detailed explanation of printf() and scanf() functions of C language
- WebApp开发-Google官方教程
- Embedded-c Language-4
- Complete solution instance of Oracle shrink table space
- [Jianzhi offer] 63 Maximum profit of stock
- 独立开发,不失为程序员的一条出路
- Embedded-c Language-2
- CMake教程Step4(安装和测试)
- C#(Winform) 当前线程不在单线程单元中,因此无法实例化 ActiveX 控件
猜你喜欢
In depth understanding of redis memory obsolescence strategy
Redis+caffeine two-level cache enables smooth access speed
stirring! 2022 open atom global open source summit registration is hot!
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
7. Scala class
腾讯音乐上线新产品“曲易买”,提供音乐商用版权授权
MySQL queries the latest qualified data rows
基于51单片机的电子时钟设计
Machine learning 02: model evaluation
激动人心!2022开放原子全球开源峰会报名火热开启!
随机推荐
Rider set the highlighted side of the selected word, remove the warning and suggest highlighting
云安全日报220705:红帽PHP解释器发现执行任意代码漏洞,需要尽快升级
中国银河证券开户安全吗 开户后多久能买股票
C#(Winform) 当前线程不在单线程单元中,因此无法实例化 ActiveX 控件
Embedded-c Language-3
C # realizes crystal report binding data and printing 3-qr code barcode
In depth understanding of redis memory obsolescence strategy
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
CMake教程Step6(添加自定义命令和生成文件)
thinkphp3.2.3
mysql中取出json字段的小技巧
WebApp开发-Google官方教程
33:第三章:开发通行证服务:16:使用Redis缓存用户信息;(以减轻数据库的压力)
WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands
Embedded UC (UNIX System Advanced Programming) -1
编译libssh2报错找不到openssl
Winedt common shortcut key modify shortcut key latex compile button
C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
漫画:一道数学题引发的血案
漫画:寻找无序数组的第k大元素(修订版)