I normally use the CMake Tools extension (by Microsoft) for compiling cmake projects in visual studio code. After installing the STM32CubeIDE extension, the CMake Tools extension stopped working. Presumably to do with the stm extension changing to using cube-cmake. After uninstalling all STM32CubeIDE extensions, reinstalling CMake Tools, restaring VS code, the CMake Tools extension is still still broken. Trying to configure a project through the IDE gives the following output:
[cmakeExecutable] CMake executable not found in cache. Checking again.
[proc] Executing command: cube-cmake --version
[proc] The command: cube-cmake --version failed with error: Error: spawn cube-cmake ENOENT
[proc] Executing command: cube-cmake -E capabilities
[proc] The command: cube-cmake -E capabilities failed with error: Error: spawn cube-cmake ENOENT
[main] Building folder: core2-firmware
[cmakeExecutable] CMake executable not found in cache. Checking again.
[proc] Executing command: cube-cmake --version
[proc] The command: cube-cmake --version failed with error: Error: spawn cube-cmake ENOENT
[proc] Executing command: cube-cmake -E capabilities
[proc] The command: cube-cmake -E capabilities failed with error: Error: spawn cube-cmake ENOENT
[rollbar] Unhandled exception: Unhandled Promise rejection: build Error: Build failed: Unable to configure the project
It seems the stm extension permanently alters something for the cmake executable used.
It is not great that the stm extension is not fully standalone and isolated like other extensions... I am also not sure how to fix this now either!