xNiux
xNiux

Reputation: 181

Unhandled exception with "Configuring using the "ninja.exe" CMake generator"

I'm trying to compile nanoframework for MCU STM32L476. I followed the getting-started-guides pages, but at the VS Code setup, after the configuration of json files, I have this unattended result when I'm selecting CMake configuration :


I tried the lastest version of CMAKE (3.15.2) and NINJA (1.9.0) and the previous version of each (respectively 3.14.6 and 1.8.2). I also tried the Win32 and x64 version of Cmake.

And I tried the mix of all version !

Upvotes: 0

Views: 2228

Answers (1)

Janusz Smyl
Janusz Smyl

Reputation: 21

In .\.vscode\settings.json change ninja.exe to Ninja, e.g. mine looks now like this:

{
    "cmake.preferredGenerators": [
        "Ninja"
    ],
    "cmake.generator": "Ninja",
    "cmake.useCMakeServer" : true,
    "cmake.autoRestartBuild" : true,
    "cmake.configureSettings": {
        "CMAKE_MAKE_PROGRAM":"C:/Esp32_Tools/ninja/ninja.exe"
    },
    "cmake.cmakePath": "c:/Program Files/CMake/bin/cmake.exe",
    "cmake.configureOnOpen": false,
    "C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools"
}

Upvotes: 2

Related Questions