nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Visual Studio Code flags LOG function calls as erroneous

I installed nRF Connect SDK 1.7.0 from scratch using the nRF Connect for Desktop toolchain manager plugin. All components are up-to-date.

Due to whatever reason all calls to any of the LOG functions that do not contain any parameter are flagged as erroneous by a read curvy line and are mentioned in the "Problems" section as ""too few arguments in invocation of macro \"Z_FOR_LOOP_1".

However the code compiles, links and runs fine, no warnings are output by the compiler in the terminal window, which makes me believe that this is a problem with Visual Studio Code and one of the plugins.

This happens for all examples that I have looked at and happens on the installations of my colleagues, too. But I have not seen anybody complaining about this in the DevZone.

Any ideas?

Related