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

Cannot Open Source File VSCode NRF Connect SDK

I am using VSCode and the NRF Connect SDK

I can build and flash my device however i keep getting cannot open source file for all my includes, i also cannot navigate to definition of any code that is internal to Zephyr or NRF

every page i have that includes anything that i have not created so internal files, they show as errors

any help on this would be appreciated

Regards,

David Hutchinson

  • Problem sort of solved.

    I had to add 

     "configurationProvider": "nrf-connect",
    to my c_cpp_properties.json under .vscode directory
    {
        "configurations": [
            {
                "name": "Win32",
                "includePath": [
                    "${workspaceFolder}/**",
                    "C:/nordic/v1.7.1/toolchain/opt/arm-none-eabi/include"
                ],
                "defines": [
                    "_DEBUG",
                    "UNICODE",
                    "_UNICODE"
                ],
                "windowsSdkVersion": "10.0.19041.0",
                "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe",
                "cStandard": "c17",
                "cppStandard": "c++17",
                "intelliSenseMode": "windows-msvc-x64",
                "configurationProvider": "nrf-connect",
                "compileCommands": "${workspaceFolder}/build/compile_commands.json"
            }
        ],
        "version": 4
    }
Related