2026-02-19 11:54 PM
I'm encountering a persistent issue when setting up an STM32Cube project in VS Code. Even when reverting to a previously working commit or starting a fresh setup from scratch (using the "Setup as an STM32Cube project" button), the process fails.
The following error message appears:
"Cube project discovery CMake configure step failed. Setup might be incomplete. Please check output logs"
I have tested this on two different machines running both Linux and Windows, but the result is the same. Here are the relevant logs:
Solved! Go to Solution.
2026-02-26 12:26 AM
I did a mistake on my side and I forgot to add an import to my CMakelists.txt. I am sorry
2026-02-20 12:16 AM
Hi @DamianoF
If you are reverting to a previous working commit ensure you do a clean build before discovering the project
If the project clean is not sufficient you can remove the .setting and .vscode from your project then relaunch the discovery.
2026-02-20 12:22 AM - edited 2026-02-20 12:22 AM
Hello and thank you for the reply,
obviously I cleaned the build folder and removed the .settings and .vscode folders (which were not tracked with git)
2026-02-20 12:54 AM
Hi @DamianoF,
Could you show us the errors from the CMake/Build output channel?
Also make sure that, once .vscode/settings.json is created during project setup, it well contains the configuration for cube-cmake tool.
And finally ninja, cmake and gnu-tools-for-stm32 should be part of .settings/bundles.store.json.
2026-02-26 12:26 AM
I did a mistake on my side and I forgot to add an import to my CMakelists.txt. I am sorry