Does anybody know why my header files have the error line underneath them but I am still able to compile and send my code to the board? I'm assuming it's the same reason that I am not getting intellisense when I highlight the functions in the code.
I attached a picture of what I am referring to.
Error message: #include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit
Error message: #include errors detected. Consider updating your compile_commands.json or includePath.
-
colinodowd
- Posts: 2
- Joined: Thu Mar 25, 2021 5:32 pm
Error message: #include errors detected. Consider updating your compile_commands.json or includePath.
- Attachments
-
- Picture1.png (153.9 KiB) Viewed 10575 times
Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.
See https://github.com/espressif/vscode-esp ... URATION.md (especially the bottom config which includes the compileCommands field)
-
colinodowd
- Posts: 2
- Joined: Thu Mar 25, 2021 5:32 pm
Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.
Thank you, that fixed my problem!See https://github.com/espressif/vscode-esp ... URATION.md (especially the bottom config which includes the compileCommands field)
-
FelixLttks
- Posts: 1
- Joined: Sat Dec 20, 2025 2:19 pm
Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.
Since the link does not work anymore, this should work:
https://github.com/espressif/vscode-esp ... rties.json
https://github.com/espressif/vscode-esp ... rties.json
Code: Select all
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${workspaceFolder}/**"
]
Who is online
Users browsing this forum: Applebot, Bing [Bot], ChatGPT-User, Google [Bot] and 2 guests