-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Can't call Ninja outside CMake #12026
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
Comments
Hi @josesimoes Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating. |
Hello! Any progress on this? |
Hi @josesimoes - Appreciate your patience! Could you please try with the latest version 20250427.1. Please update your sync process and try using this version. Let us know if you encounter any further issues. Thanks!
|
Hi @Prabhatkumar59 |
Hi @josesimoes - We are checking further on this and will update you shortly, thanks! |
Hi @josesimoes - It appears there may be an issue with your pipeline configuration. Could you kindly review it once more? Additionally, if possible, please provide minimal reproduction steps outlining how you have configured and verified the Ninja installation. For reference, we are able to fetch the version from our image. ![]() |
Hi @josesimoes - Since we haven't heard back, so in meantime, please check and review your pipeline configuration once. For reference, we are able to fetch the version from our image which is mentioned above. |
Description
Can't call Ninja exe
Platforms affected
Runner images affected
Image version and build link
Image: windows-2022
Version: 20250406.1.0
Is it regression?
Was using a local install of Ninja before, so I can't say...
Expected behavior
Considering that Ninja is installed on the runner image, should be able to use it.
Actual behavior
Can't call ninja
Repro steps
A simple script to test ninja version fails with:
'ninja' is not recognized as an internal or external command
https://dev.azure.com/nanoframework/nf-interpreter/_build/results?buildId=55404&view=logs&j=71381b5f-e32c-5829-af59-91a8e4b35b1f&t=1551473c-b74d-5f56-a947-fe5f30146f12&l=14
This is the output of:
Interestingly on another PR, running the same runner image, it seems OK to use Ninja as part of CMake which runs without any issues.
Please take a look at:
https://dev.azure.com/nanoframework/nf-interpreter/_build/results?buildId=55402&view=logs&j=b88751ed-5315-5282-2d7b-02125fff8a2d&t=49b8e092-d356-52c0-c8b2-a7629c16f2e4
and subsequent CMake run:
https://dev.azure.com/nanoframework/nf-interpreter/_build/results?buildId=55402&view=logs&j=b88751ed-5315-5282-2d7b-02125fff8a2d&t=ce539ab2-5dc7-51a2-bb8b-c2d8a4845e2d
Maybe what is missing is just to add Ninja exe to the path?
This is something we found out that was needed when using our current approach of installing Ninja.
Take a look here:
https://github.com/nanoframework/nf-interpreter/blob/ffa9cb6f52e7cc84dc6065aa60566f446460bb87/azure-pipelines-templates/download-install-ninja.yml#L33
The text was updated successfully, but these errors were encountered: