"CMake build" extension fails when files are in a sub-folder
Hi,
The new STM32Cube for Visual Studio Code looks really nice but it suffers from (at least one) serious flaw: it does not work correctly when the target project is in a sub-folder.
This means every "multi-project repository" in the world just flat out doesn't work. Especially mine, where the repository contains not only the schematic but also the firmware and a GUI application.
I have attached a sample ZIP to this post which exhibits the issue. Extract both subfolders to a blank directory
- If you open "advanced-sample-cmake" from the root, everything works
- If you open "Subfolder" from the root then everything falls apart
Irony is that "Subfolder" contains the exactly same files than the other. The "STM32Cube CMake build" extension says "Could not configure code indexing until an active project is set" and stops right there.
Note that I can (somewhat) work around this issue by cloning my repository and then opening the subfolder in VS Code:
- The "git" extension really does not like this, and suggests opening the parent directory instead
- Git submodules do not work when I do this
- Git change history does not work either
