IDE keeps scanning for kits on project load

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

IDE keeps scanning for kits on project load

Postby orbitcoms » Tue Feb 08, 2022 2:42 am

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.

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

Re: IDE keeps scanning for kits on project load

Postby ESP_bignacio » Tue Feb 08, 2022 10:09 am

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

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: IDE keeps scanning for kits on project load

Postby orbitcoms » Tue Feb 08, 2022 10:35 am

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).

Who is online

Users browsing this forum: No registered users and 42 guests