Page 1 of 1

Error message: #include errors detected. Consider updating your compile_commands.json or includePath.

Posted: Thu Mar 25, 2021 5:52 pm
by colinodowd
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

Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.

Posted: Fri Mar 26, 2021 2:52 am
by boarchuz
See https://github.com/espressif/vscode-esp ... URATION.md (especially the bottom config which includes the compileCommands field)

Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.

Posted: Fri Mar 26, 2021 6:14 pm
by colinodowd
See https://github.com/espressif/vscode-esp ... URATION.md (especially the bottom config which includes the compileCommands field)
Thank you, that fixed my problem!

Re: Error message: #include errors detected. Consider updating your compile_commands.json or includePath.

Posted: Sat Dec 20, 2025 2:21 pm
by FelixLttks
Since the link does not work anymore, this should work:

https://github.com/espressif/vscode-esp ... rties.json

Code: Select all

"includePath": [
                "${config:idf.espIdfPath}/components/**",
                "${config:idf.espIdfPathWin}/components/**",
                "${workspaceFolder}/**"
]