Issue: 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.

"I am using ncs v2.6.1 on VSCODE, and the following issues have occurred:

Issues:

- Existing build files are not visible in the application.

- New builds are possible in the application.

- Saving (ctrl+s) is not possible.

When attempting to save, the following error message appears:

'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.'"

The following is the output when launching VSCODE:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --version
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E capabilities
[variant] Loaded new set of variants
[kit] Successfully loaded 4 kits from C:\Users\rsef4\AppData\Local\CMakeTools\cmake-tools-kits.json
[variant] Loaded new set of variants
[variant] Loaded new set of variants
[variant] Loaded new set of variants
[variant] Loaded new set of variants
[variant] Loaded new set of variants
[variant] Loaded new set of variants
[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
[proc] The command: ninja --version failed with error: Error: spawn ninja 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.
[main] Configuring project: 240522_spim
[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.
[main] Configuring project: ppi_one_to_one
[proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The following is the generated support information:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
IMPORTANT: The data below could contain sensitive or confidential information about your environment.
If you do not wish this to be seen by others, please make sure to remove it before sharing.
For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
{
"platform": {
"os": "win32",
"osVersion": "Windows 10 Pro",
"osKernel": "10.0.22631",
"vscode": "1.89.1",
"electron": "28.2.8",
"node": "v18.18.2"
},
"system": {
"date": "2024-05-30T01:59:38.568Z",
"vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:24:39",
"osUptime": "00:32:43",
"cpu": "11th Gen Intel(R) Core(TM) i5-11500 @ 2.70GHz"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents Reply Children