How to fix unittest IntelliSense in VS Code + nrf SDK

Hi! I created a unittest in my project using Zephyr CRC Unittest Example. It passes nicely using command line. However I cannot fix squiggles error in test code. I get following error:

#include errors detected based on information provided by the configurationProvider setting. Squiggles are disabled for this translation unit (/home/tomek/code/workspace/application/src/tests/main.c).C/C++(1696)

Any idea how to point nrf Connect SDK to include unittest as an application? Is there any example or documentation on how this is supposed to work?

There is an example of how this can be done: https://www.youtube.com/watch?v=IKNHPmG-Qxo, but I don't know how to do this with nRF Connect extension...

Parents
  • Hello, 

    What version of the nRF Connect SDK are you using in VS code? And for what device are you trying to build for?

    However I cannot fix squiggles error in test code.

    What exactly does this mean?

    It passes nicely using command line.

    Can you share the comparison of building with command line and building with VS code?

    Kind regards,
    Øyvind

Reply
  • Hello, 

    What version of the nRF Connect SDK are you using in VS code? And for what device are you trying to build for?

    However I cannot fix squiggles error in test code.

    What exactly does this mean?

    It passes nicely using command line.

    Can you share the comparison of building with command line and building with VS code?

    Kind regards,
    Øyvind

Children
No Data
Related