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

fabesp
Posts: 4
Joined: Sun Jun 09, 2024 1:38 am

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

Postby fabesp » Mon Sep 23, 2024 4:25 pm

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
Attachments
Captura de tela 2024-09-23 132326.png
Captura de tela 2024-09-23 132326.png (131.52 KiB) Viewed 1979 times
Fabio Souza
@fabiosouza.io

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

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

Postby ESP_bignacio » Tue Sep 24, 2024 8:59 am

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"

fabesp
Posts: 4
Joined: Sun Jun 09, 2024 1:38 am

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

Postby fabesp » Tue Sep 24, 2024 8:35 pm

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,
Fabio Souza
@fabiosouza.io

Who is online

Users browsing this forum: No registered users and 28 guests