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.

Postby colinodowd » Thu Mar 25, 2021 5:52 pm

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
Attachments
Picture1.png
Picture1.png (153.9 KiB) Viewed 10573 times

boarchuz
Posts: 656
Joined: Tue Aug 21, 2018 5:28 am

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

Postby boarchuz » Fri Mar 26, 2021 2:52 am

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.

Postby colinodowd » Fri Mar 26, 2021 6:14 pm

See https://github.com/espressif/vscode-esp ... URATION.md (especially the bottom config which includes the compileCommands field)
Thank you, that fixed my problem!

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.

Postby FelixLttks » Sat Dec 20, 2025 2:21 pm

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}/**"
]

Who is online

Users browsing this forum: ChatGPT-User, Qwantbot and 4 guests