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,

    I'm using VSCode 1.96.4 and nRF Connect for VS Code 2024.12.55. I'm building tests using 

    twister -T src/tests/ -vvv
     and they are build for x86_64 I believe.

    What does not work is code completion, documentation hints etc in VS Code which is very annoying. I don't know how to run this via VS Code nor how to make VS Code understand unittests code - this is my question.

Reply
  • Hello,

    I'm using VSCode 1.96.4 and nRF Connect for VS Code 2024.12.55. I'm building tests using 

    twister -T src/tests/ -vvv
     and they are build for x86_64 I believe.

    What does not work is code completion, documentation hints etc in VS Code which is very annoying. I don't know how to run this via VS Code nor how to make VS Code understand unittests code - this is my question.

Children
Related