What's that "Workspace" and "CMake" stuff doing to my projects?

I am sorry if this is a noob’s question, but since a while I have lost my projects’ folders being visible in PlatformIO’s Files tab, there is a “UNTITLED (WORKSPACE)” menu entry instead. I somehow managed to get one of my projects being visible there, but I am unable to open another. There are lots of CMake errors popping up - never knew I was using CMake internally?

How do I get my projects listed again?

Only in the special case for ESP32+ESP-IDF that is used. If you’re not in that case, something is wrong. Have you install the CMake extension in VSCode by accident?

Not that I knew. Some of the error messages are claiming an unknown CMake directory, so I suppose it is not there.

I am doing most of my stuff on ESP32, but in the arduino-esp32 environment.

I never had that “Workspace” notion before, but a list of my projects.

Can you show a screenshot of the error / window?

I will try. I succeeded adding one more project (exception frm the rule: on Teensy 4.1) now by letting PIO look for a “kit” - whatever that means:

[main] Configuring folder: Marlin 
[proc] Executing command: "C:\Program Files\LLVM\bin\clang.exe" -v
[proc] Executing command: "C:\Program Files\LLVM\bin\clang-cl.exe" -v
[proc] Executing command: "C:\Program Files\LLVM\bin\clang.exe" -v
[kit] Found Kit: Clang 3.9.1 x86_64-pc-windows-msvc
[kit] Successfully loaded 1 kits from C:\Users\Micha\AppData\Local\CMakeTools\cmake-tools-kits.json

Gotcha:
2022-04-04 17_40_47-Window

Clicking on the little gear brings up this:


Could it be that was installed by the recent VSC update without asking?

Try uninstalling it.

1 Like

:+1:
That seems to have removed the strange behaviour. Thanks a lot, as ever! :wink: