Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio ninja not found #4226

Open
bradenmcd opened this issue Jan 4, 2025 · 1 comment
Open

Visual Studio ninja not found #4226

bradenmcd opened this issue Jan 4, 2025 · 1 comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.

Comments

@bradenmcd
Copy link

Brief Issue Summary

With Visual Studio 2022 and its CMake support installed, vscode-cmake-tools does find the cmake.exe that it installs. It does not, however, find Ninja. If vscode-cmake-tools is able to find Visual Studio's cmake.exe, it seems like it ought to be able to locate its ninja.exe, as well.

CMake Tools Diagnostics

Debug Log

Additional Information

This simple project demonstrates the problem.

vscode-cmake-tools-test.zip

@Amy-Li03
Copy link
Collaborator

Amy-Li03 commented Jan 6, 2025

Hi @bradenmcd , Thanks for reporting issue here!
When configuring above simple project, 2 problems have been detected, after modifying code,
form:

add_executable(
  hello
  SOURCES
    hello.cpp
)

to:

add_executable(
  hello
    hello.cpp
)

project configure successfully, no "ninja not found" error appears, following is my repro steps, please correct me if I have done something wrong.
Image

@Amy-Li03 Amy-Li03 added more info needed More info is needed from the community for us to properly triage and investigate. and removed triage labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed from the community for us to properly triage and investigate.
Projects
Status: Blocked
Development

No branches or pull requests

2 participants