-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with source file "xtensa_api.h" (dependency of "freertos/FreeRTOS.h") (IDFGH-11862) #12951
Comments
This is related t your C/C++ extension configuration. Have your build your project to generate the More info in https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/C_CPP_CONFIGURATION.md |
Yes, I build the project already. Also When I include something else from the ESP-IDF components directory, for exapmple "freertos/task.h", it will not create any error. It seems to be specifically with xtensa, but I found the header files from xtensa in the components folder. |
Is there anything else I can do to solve the issue? |
I have the same problem |
Hey everybody, When you create a new project with the getting started sample_project it will always be as follows. Best regards, |
Answers checklist.
General issue report
Hey community,
at the moment I am having some trouble with the xtensa libraries.
As soon as I include for example freertos/FreeRTOS.h it is giving me the following errors in VSCode.
#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit (/home/marcel/esp_projects/esp1/main/main.c).
cannot open source file "xtensa_api.h" (dependency of "freertos/FreeRTOS.h")
This is how the c_cpp_properties.json looks like.
{ "configurations": [ { "name": "ESP-IDF", "compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc", "includePath": [ "${config:idf.espIdfPath}/components/**", "${config:idf.espIdfPathWin}/components/**", "${config:idf.espAdfPath}/components/**", "${config:idf.espAdfPathWin}/components/**", "/home/marcel/esp/esp-idf/components/**", "${workspaceFolder}/**" ], "browse": { "path": [ "${config:idf.espIdfPath}/components", "${config:idf.espIdfPathWin}/components", "${config:idf.espAdfPath}/components/**", "${config:idf.espAdfPathWin}/components/**", "${workspaceFolder}", "/home/marcel/esp/esp-idf/components/**" ], "limitSymbolsToIncludedHeaders": false }, "cStandard": "c17", "cppStandard": "c++17", "compileCommands": "${workspaceFolder}/build/compile_commands.json" } ], "version": 4 }
I am using EndeavourOS (Arch Linux) with VSCodium and ESP-IDF v5.3-dev-1288-g5524b692ee, but I am getting the same error with VSCode in Windows 10.
When I include xtensa_api.h manually it is not giving me that error anymore, but then it starts to show up other dependencies missing.
Do you need more information to help me with my problem?
Best regards,
Marcel
The text was updated successfully, but these errors were encountered: