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:

[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
[proc] The command: ninja-build --version failed with error: Error: spawn ninja-build ENOENT
[proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT
[proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT
[proc] The command: ninja --version failed with error: Error: spawn ninja ENOENT
[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: ninja-build --version failed with error: Error: spawn ninja-build ENOENT
[proc] The command: ninja-build --version failed with error: Error: spawn ninja-build 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: make --version failed with error: Error: spawn make ENOENT
[proc] The command: make --version failed with error: Error: spawn make ENOENT
[proc] The command: make --version failed with error: Error: spawn make 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: 240528_spim 
[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: blinky_1 
[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: timer 
[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: 240529_spim 
[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: TEMP 

The following is the generated support information:

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"
  },
  "workspace": {
    "name": "240522_spim (Workspace)",
    "workspaceFile": "c:\\ncs\\Myproject\\240522_spim.code-workspace",
    "folders": [
      "c:\\ncs\\Myproject\\240522_spim",
      "c:\\ncs\\Myproject\\ppi_one_to_one",
      "c:\\ncs\\Myproject\\240528_spim",
      "c:\\ncs\\Myproject\\TEMP",
      "c:\\ncs\\Myproject\\240529_spim",
      "c:\\ncs\\Myproject\\timer",
      "c:\\ncs\\Myproject\\blinky_1"
    ]
  },
  "sdks": [
    {
      "version": "v2.6.1",
      "path": "c:\\ncs\\v2.6.1"
    }
  ],
  "activeBuild": "c:\\ncs\\Myproject\\blinky_1\\build",
  "apps": [
    {
      "workspace": "c:\\ncs\\Myproject\\240522_spim",
      "uri": "c:\\ncs\\Myproject\\240522_spim",
      "buildConfigurations": [
        {
          "id": "c:\\ncs\\Myproject\\240522_spim\\build_1",
          "name": "build_1",
          "boardId": "nrf52840dk_nrf52840",
          "type": "Zephyr",
          "isChild": false,
          "isStale": false,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          }
        }
      ]
    },
    {
      "workspace": "c:\\ncs\\Myproject\\ppi_one_to_one",
      "uri": "c:\\ncs\\Myproject\\ppi_one_to_one",
      "buildConfigurations": []
    },
    {
      "workspace": "c:\\ncs\\Myproject\\240528_spim",
      "uri": "c:\\ncs\\Myproject\\240528_spim",
      "buildConfigurations": [
        {
          "id": "c:\\ncs\\Myproject\\240528_spim\\build_1",
          "name": "build_1",
          "boardId": "nrf52840dk_nrf52840",
          "type": "Zephyr",
          "isChild": false,
          "isStale": false,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          }
        }
      ]
    },
    {
      "workspace": "c:\\ncs\\Myproject\\TEMP",
      "uri": "c:\\ncs\\Myproject\\TEMP",
      "buildConfigurations": []
    },
    {
      "workspace": "c:\\ncs\\Myproject\\240529_spim",
      "uri": "c:\\ncs\\Myproject\\240529_spim",
      "buildConfigurations": []
    },
    {
      "workspace": "c:\\ncs\\Myproject\\timer",
      "uri": "c:\\ncs\\Myproject\\timer",
      "buildConfigurations": []
    },
    {
      "workspace": "c:\\ncs\\Myproject\\blinky_1",
      "uri": "c:\\ncs\\Myproject\\blinky_1",
      "buildConfigurations": [
        {
          "id": "c:\\ncs\\Myproject\\blinky_1\\build",
          "name": "build",
          "boardId": "nrf52840dk_nrf52840",
          "type": "Zephyr",
          "isChild": false,
          "isStale": false,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          }
        }
      ]
    }
  ],
  "topdir": "c:\\ncs\\v2.6.1",
  "workspaceState": "freestanding-ready",
  "toolchains": [
    {
      "version": "2.6.1",
      "path": "c:\\ncs\\toolchains\\cf2149caf2"
    }
  ],
  "connectedDevices": [],
  "deviceProvider": "nrfutil",
  "tools": {
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
    "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.88j",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.0",
    "nrfutil": "Not found",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe": "3.21.0",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
    "C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
  },
  "nrfutil": {
    "nrfutil-device": {
      "version": "2.0.0",
      "binPath": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
    },
    "nrfutil-toolchain-manager": {
      "version": "0.14.1",
      "binPath": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
    }
  },
  "environment": {
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\rsef4",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\rsef4",
      "PATH": "C:\\ncs\\toolchains\\cf2149caf2;C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;C:\\ncs\\toolchains\\cf2149caf2\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2024a\\bin;C:\\python;C:\\python\\Scripts;C:\\MentorGraphics\\LICENSE.TXT;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\python\\Scripts\\;C:\\python\\;C:\\Users\\rsef4\\AppData\\Local\\Microsoft\\WindowsApps;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\CAMCAD;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\common\\win32\\lib;C:\\Program Files\\Microsoft VS Code\\bin",
      "ZEPHYR_BASE": "c:\\ncs\\v2.6.1\\zephyr",
      "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
      "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
      "PYTHONPATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\rsef4",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\rsef4",
      "Path": "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2024a\\bin;C:\\python;C:\\python\\Scripts;C:\\MentorGraphics\\LICENSE.TXT;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\python\\Scripts\\;C:\\python\\;C:\\Users\\rsef4\\AppData\\Local\\Microsoft\\WindowsApps;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\CAMCAD;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\common\\win32\\lib;C:\\Program Files\\Microsoft VS Code\\bin",
      "PATH": "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\MATLAB\\R2024a\\bin;C:\\python;C:\\python\\Scripts;C:\\MentorGraphics\\LICENSE.TXT;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\python\\Scripts\\;C:\\python\\;C:\\Users\\rsef4\\AppData\\Local\\Microsoft\\WindowsApps;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\CAMCAD;C:\\MentorGraphics\\9.5PADS\\SDD_HOME\\common\\win32\\lib;C:\\Program Files\\Microsoft VS Code\\bin"
    },
    "toolchainPath": "c:\\ncs\\toolchains\\cf2149caf2",
    "toolchainBinPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
    "toolchainVersion": "2.6.1"
  },
  "terminal": {
    "defaultProfile": null
  },
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "",
      "toolchain": {
        "path": ""
      },
      "ozonePath": "",
      "applications": [],
      "applicationOptions": {},
      "kconfig": {
        "interface": "kconfig"
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "taskBindings": {},
      "buildTerminal": {
        "condensedProgress": true
      },
      "debugging": {
        "flash": true,
        "bindings": {},
        "justMyCode": true
      },
      "activeAppFollowActiveEditor": true,
      "deviceProvider": "",
      "flash": {
        "softreset": false,
        "erase": false,
        "recover": false
      },
      "enableTelemetry": true,
      "thirdpartyIntegration": {},
      "toolchainManager": {
        "indexURL": null,
        "installDirectory": null
      },
      "nrfutil": {
        "home": null
      },
      "defaultOpenAction": "ask"
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character"
    }
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2024.3.25",
        "path": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.3.25-win32-x64",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2024.3.15",
        "path": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
        "isActive": true
      },
      "nordic-semiconductor.nrf-devicetree": {
        "version": "2024.3.78",
        "path": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.3.78",
        "isActive": true
      },
      "nordic-semiconductor.nrf-kconfig": {
        "version": "2024.3.21",
        "path": "c:\\Users\\rsef4\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.3.21",
        "isActive": true
      }
    },
    "external": {
      "marus25.cortex-debug": null,
      "ms-vscode.cpptools": "1.20.5",
      "ms-vscode.js-debug": "1.89.0",
      "ms-vscode.js-debug-companion": "1.1.2",
      "ms-vscode.vscode-js-profile-table": "1.0.9",
      "batisteo.vscode-django": "1.15.0",
      "donjayamanne.python-environment-manager": "1.2.4",
      "donjayamanne.python-extension-pack": "1.7.0",
      "KevinRose.vsc-python-indent": "1.18.0",
      "ms-python.debugpy": "2024.6.0",
      "ms-python.python": "2024.6.0",
      "ms-python.vscode-pylance": "2024.5.1",
      "ms-vscode.cmake-tools": "1.18.41",
      "ms-vscode.cpptools-extension-pack": "1.3.0",
      "ms-vscode.cpptools-themes": "2.0.0",
      "njpwerner.autodocstring": "0.6.1",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17",
      "vadimcn.vscode-lldb": "1.10.0",
      "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.8",
      "VisualStudioExptTeam.vscodeintellicode": "1.3.1",
      "wholroyd.jinja": "0.0.8"
    }
  }
}

Parents Reply Children
No Data
Related