The Modem library must be enabled by CONFIG_NRF_MODEM_LIB to be included in the build

Hi,

Using Visual Studio Code, when I build asset_tracker_v2 in NCS v2.9.1, for nrf9160dk/nrf9160.ns, I keep getting the problem shown in the subject line

equivalently

[{
    "resource": "/home/burt/ncs/v2.9.1/nrf/applications/asset_tracker_v2/src/main.c",
    "owner": "Kconfig options",
    "code": "missing_kconfig_param",
    "severity": 4,
    "message": "The Modem library must be enabled by CONFIG_NRF_MODEM_LIB to be included in the build",
    "startLineNumber": 14,
    "startColumn": 1,
    "endLineNumber": 14,
    "endColumn": 33
}].

Of course, that CONFIG option is set, the build completes, but I get this ridiculous message AND when I view the source code for asset_tracker_v2/src/main.c, that line is highlighted yellow with the same complaint when I hover. NOTE: the line is actually line 12 but I had added a couple of lines

#define CONFIG_NRF_MODEM_LIB 1
#if defined CONFIG_NRF_MODEM_LIB

just to show that the VS Code system is giving me a bunch of (maybe just one) nonsense problems.

I hope you won't tell me this is par for the course when using VS Code. PLEASE I BEG YOU do not tell me that!!!

Thanks,

Burt S.

Parents Reply Children
No Data
Related