Closed louisjonathan closed 4 months ago
As you might have seen, this Language configuration is not done by our extension but we provide template for the Microsoft C/C++ extension which is the one extension that provide language support.
I'm trying to reproduce your issue without success. I'm using IDF v5.2.2 with the linked example you provided and the intellisense works well for me on macOS.
Could it be the file associations in your settings.json?
sorry for the late response. I will try to move the source files to a new template, if that doesn't work, I will post here and then likely reinstall everything.
here's what I did that (I think) fixed it
ESP-IDF extension -> create new project ESP-IDF terminal -> . ~/esp/esp-idf/export.sh ESP-IDF terminal -> idf.py set-target esp32c3 (at this point headers like esp_bt.h are not found) settings.json -> change
"idf.openOcdConfigs": [
"board/esp32-wrover-kit-3.3v.cfg"
],
to
```
"idf.openOcdConfigs": [
"board/esp32c3-builtin.cfg"
],
```
ESP-IDF terminal -> idf.py menuconfig (re-enable all of my previous settings manually, just to be sure) ESP-IDF terminal -> idf.py clean
(at this point all the errors are gone, all headers are found, and all types and macros are properly identified by intelliSense)
ESP-IDF terminal -> idf.py build
I will reopen this if somehow the issues come back and update it does
OS
Linux
Operating System version
Ubuntu 24.04 LTS
Visual Studio Code version
1.90.1
ESP-IDF version
5.5.2
Python version
3.12
Doctor command output
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS linux x64 6.8.0-36-generic System environment variable IDF_PYTHON_ENV_PATH undefined System environment variable PATH