Page 1 of 1

Vscode ESP-IDF Extension: Files Being Generated Outside the Build Folder

Posted: Mon Sep 23, 2024 4:25 pm
by fabesp
Hello everyone,

After the recent extension updates, I noticed that after the build, several files (which were usually generated inside the build folder) are now being placed in the project's root folder.

How can I prevent these files from being generated outside the build folder?

Image

Re: Vscode ESP-IDF Extension: Files Being Generated Outside the Build Folder

Posted: Tue Sep 24, 2024 8:59 am
by ESP_bignacio
Do you have a

Code: Select all

"idf.buildPath"
or

Code: Select all

"idf.buildPathWin"
defined in your project ? What is the value ?

Make sure to delete it to have default value or use

Code: Select all

"idf.buildPath": "${workspaceFolder}/build"
or

Code: Select all

"idf.buildPathWin": "${workspaceFolder}\\build"

Re: Vscode ESP-IDF Extension: Files Being Generated Outside the Build Folder

Posted: Tue Sep 24, 2024 8:35 pm
by fabesp
Thank you very much, @ESP_bignacio

The problem was the missing backslash in idf.buildPathWin, just as you suggested: "idf.buildPathWin": "${workspaceFolder}\\build"

Now it's working perfectly.

Regards,