Page 1 of 1

IDE keeps scanning for kits on project load

Posted: Tue Feb 08, 2022 2:42 am
by orbitcoms
Hi
I am using version 1.3.0 esp-idf extension for VSCODe and latest version of Vscode.
Every time I open a project I get a prompt to "[Scan for kits] Search for compilers on this computer".

Even though I do this, the next time I load the project it happens over.

Is there some setting to make sure it sets up the correct "kit"? I am using my own custom hardware with ESP32.

Re: IDE keeps scanning for kits on project load

Posted: Tue Feb 08, 2022 10:09 am
by ESP_bignacio
This is not done by the ESP-IDF VSCode extension but the Microsoft CMake extension.

You can define your own custom kit for CMake development basically specifying the xtensa toolchain compiler.

Something like this:

Code: Select all

{
  "name": "ESP32 Kit",
  "compilers": {
    "CC": "$HOME/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
    "CXX": "$HOME/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++"
  }
}
in a user local kits as described in here

Re: IDE keeps scanning for kits on project load

Posted: Tue Feb 08, 2022 10:35 am
by orbitcoms
Thanks for that.

I removed the ms cmake extension and now this does not pop up any more.

I only use VSCODE for esp-idf coding so don't think the cmake is required (project seems to compile ok).