VS Code Not Finding Zephyr Include Paths

I'm following the dev academy lessons and I'm having a bit of an issue where VS Code intellisense isn't picking up on the include paths from zephyr (e.g. #include <zephyr/kernel.h>). I'm using v3.1.1 of the SDK/toolchain. The lesson says that these errors should go away after generating/building, but they aren't going away. I am able to compile just fine, so the build system is pulling in the files during compilation.

I looked through other posts on the forum and they mention a compile_commands.json, but I don't see that being generated and I'm not sure if that's relevant.

Any help is appreciated! It's very useful to be able to look through included header files, so it's a feature I'd like to be able to use, rather than needing to manually navigate to the SDK folder.

Parents Reply
  • Hi,

    Have you tested any other sample? Is this issue also present with other samples?

    viggyd-blur said:
    I need to be able to look through the full source code when I'm debugging issues. I need to be able to see what these kernel function calls are doing if my program is not behaving as expected. Again, I don't have a problem right now, everything compiles and works fine, but I have always needed to look through files like this during the course of my work.

    Can you elaborate on this? Is there an action on your side that you would want to do but cannot do due to these error squiggles?

    Best regards,
    Dejan

Children
Related