(solved) getting VSCode to use a specific IDF

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

(solved) getting VSCode to use a specific IDF

Postby mzimmers » Fri Oct 22, 2021 11:05 pm

Hi all -

When I began with VS Code and the IDF plugin, my IDF was located in $HOME/esp/esp-idf. I've since downloaded v4.3.1 (using git clone), and would like to use this version. I've tried to make the change in the extension setup, but I'm still using the original version. (I say this because if I focus on a reference to an IDF routine, and hit F12, it opens the file in the original location.)

What have I forgotten?

Thanks...
Last edited by mzimmers on Mon Oct 25, 2021 2:33 pm, edited 1 time in total.

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

Re: getting VSCode to use a specific IDF

Postby ESP_bignacio » Mon Oct 25, 2021 10:05 am

Check if your project directory has a `.vscode/settings.json` file with configuration settings such as `idf.espIdfPath` overriding the user level settings.

Make sure to:

1) Choose Select where to save configuration settings command and choose the workspace folder to save the settings.
2) Or `.vscode/settings.json` settings that are overriding user level settings

Here is the documentation about settings precedence: https://github.com/espressif/vscode-esp ... ROJECTS.md

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: getting VSCode to use a specific IDF

Postby mzimmers » Mon Oct 25, 2021 2:33 pm

Hi bignacio -

Yes, that was the problem exactly. I removed that line from my settings.json file, (had to do a clean to empty the cmake cache) and rebuilt...I'm now picking up the right repository. Thanks for the help.

Who is online

Users browsing this forum: No registered users and 27 guests