This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Setting up VS Code with NRF Connect SDK

I'm trying to set up VS code to use it with the NRF Connect SDK. I've created an application from basic/blinky example. My problem is VS code can't resolve any inclusions. Is there anything that you can suggest?

Parents
  • Hi,

    First, try building in the application core by selecting 'nrf5340dk_nrf5340_cpuapp' when you select your board.

    Next, please verify using the following steps:

    1. Press Ctrl+ (comma) which will take you to the settings page.

    2. type in "error squiggles" in the search bar.

    3. There are 3 sections in this - User, Workspace, firstapp. 

        In the User section, under 'Error Squiggles' , select " EnabledIfIncludesResolve " 

    In the Workspace section,  under 'Error Squiggles' , select " Disabled" 

    Now, try building, followed by Erase & Flash onto your DK.

    Hope this helps!

    Kind Regards,

    Priyanka

  • Hi, 

    Thanks for the recommendations. I flashed blinky to the cpu core and empty app core into the app core. It works as expected.

    My problem isn't about the error squiggles showing up on the code, my problem is why it doesn't resolve anything at all. For example I know that line 18 evaluates as true but code is blurred out.

  • This is called 'linting' and I do not have a huge understanding about this since it is the VSCode forum that deals this. But I don't think this linting affects the compiling process and if I am correct, there is a way to enable and disable this. But I don't think this affects the compiler.

  • This reply was deleted.
  • As I had mentioned earlier, this is something for VS Code team and kindly contact the VS Code forum regarding the issue.

  • I think the NRF Connect plugin for VSCode should set up the paths for include folders of VSCode. Can I  contact to Ali Aljaani?

  • Hi,

    Thank you for the suggestion. Also, In order to disable the linting you can go to the settings, type 'unused' and just un-check the box for enabling this. And if you have any other doubts related to the blog, kindly feel free to comment and ask there.

    Regards,

    PK

Reply
  • Hi,

    Thank you for the suggestion. Also, In order to disable the linting you can go to the settings, type 'unused' and just un-check the box for enabling this. And if you have any other doubts related to the blog, kindly feel free to comment and ask there.

    Regards,

    PK

Children
No Data
Related