#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit

I am following the nRF Connect SDK Fundamentals and an issue with vs code at the fund_less3_exer1. Vscode doesn't seem to locate the header files of my project. It does seem to build and flash correctly though. I tried closing/opening vscode from scratch but always same issue. Also tried deleting build configuration and creating again and still same issue.

Here's my build configuration:

I'm using macos 14.5 and toolchain/sdk v2.7.0

  • I tried to do a clean install of VS Code (rm -rf ~/Application\ Support/Code; rm -rf ~/.vscode). Downloaded latest VS Code. Installed "nRF Connect for VS Code Extension Pack" and "C/C++ Extension Pack" extensions. Removed the build configuration and created a new one. Still same issue.

  • Hi,

    It looks to me like you only have the exersize project open in VS code and not the entier SDK folder (so that is missing from the workspace). Can you open the whole SDK instead of just the project you are building (so that the whole SDK is in the workspace) and see if the issu persists?

    PS: You will unfortunately sometimes see this issue so I would recomend disabling error squiggles in VS Code and ignore the problems tab as those are only related to VS code (you should absolutely not ignore build output warnings or errors which you get in the terminal tab, though).

    Edit: You may also find this post relevant.

Related