最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论