cancel
Showing results for 
Search instead for 
Did you mean: 

VSCode with STM32 extension V2.1.0 errors

dqsh06
Associate III

hello, 

Now I am using VSCode with STM32 extension V2.1.0, at beginning is used well. but 1 days later, when I opened the VScode and try to build my code. it shows 

"Unhandled exception: Unhandled Promise rejection: build Error: Build failed: Unable to configure the project {}"

then I want to close the folder, it cannot be closed. 

so I copy it to a backup folder and delete the project. and copy back and use [Import CMake project], the VSCode just always importing. you can see as below

dqsh06_0-1726655290534.png

why? why cannot import the project?

thanks.

12 REPLIES 12

@Rob.Riggs 

I have tried that, but not succeeded. 

could you give a clear demonstration?

thank.

@Rob.Riggs 

Hello Riggs,

I have tried that you said to modify the top-level CMakeLists.txt, but not succeeded. 

could you give a clear demonstration?

thank.

AFraz.1
Associate II

Have you tried running Visual Studio Code as administrator?