espressif / esp-dev-kits

Docs, Schematics, Factory Firmwares for ESP Development Kits
Other
345 stars 183 forks source link

Build of esp32-s2-kaluga-1/examples/lcd fails in VS Code ESP-IDF Extension - No such file or directory #include "soc/system_reg.h" #41

Closed georgik closed 2 years ago

georgik commented 2 years ago

How to simulate:

Root cause:

Workaround:

Expected behavior: VS Code ESP-IDF Extension picks the target from the project, so that user do not need to set the target manually

FYI: @brianignacio5

brianignacio5 commented 2 years ago

Currently the extension has a configuration setting idf.adapterTargetName with esp32 as default value which set IDF_TARGET environment variable for the build task.

I'll make a fix to get the IDF_TARGET from sdkconfig on selected workspace folder change.

brianignacio5 commented 2 years ago

I've made these changes in https://github.com/espressif/vscode-esp-idf-extension/pull/523

georgik commented 2 years ago

Tested with new version of VS Code. The chip is selected correctly and it's also visible in the bottom bar. Thank you.