This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

VS Code: Unable to determine what CMake generator to use.

When I create a new project from samples in VS Code I get this error
[variant] Loaded new set of variants
[kit] Successfully loaded 9 kits from C:\Users\Andrea\AppData\Local\CMakeTools\cmake-tools-kits.json
[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 folder: hello_world
[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.
How can I fix it?
  • Hi,

    To return to your original question, in your case there is an issue related to the capitalization of the environmental variable (expected Path and used PATH by the installation) and this has been reported internally.

    C:\ncs\v1.8.0\toolchain path contains all the tools necessary for the SDK v1.8.0 including compiler, linker, build tools, debugger and required modules including west. Cmake is called using west.

    Best regards,
    Dejan

  • To return to your original question, in your case there is an issue related to the capitalization of the environmental variable (expected Path and used PATH by the installation) and this has been reported internally.

    After few months I reinstalled the NCS and now works fine. I suppose due to updates. Thanks for your support.

Related