visual studio code - CMake in VSCode cannot find Ninja even when it's on PATH - Error: spawn ninja ENOENT - Stack Overfl

I want to configure a CMake project in VSCode, ideally with Ninja. I am getting this error:[main] Conf

I want to configure a CMake project in VSCode, ideally with Ninja. I am getting this error:

[main] Configuring project: MyProject
[proc] Executing command: C:\Users\XXXXX\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\avr-gcc.exe -v
[proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT
[proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT
[proc] The command: make --version failed with error: Error: spawn make ENOENT
[main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.

When I open command line and type ninja --version I get this output:

C:\>ninja --version
1.12.1

I restarted VS Code twice, it still cannot find the path. What else do I need to do to get it to locate the Ninja executable?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745351158a4623840.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信