VS Code LOG_INF Errors

I am using VS Code with the NRF Connect extension and NCS v1.9.1 and whenever I use LOG_INF with some simple text, Intellisense gives me the following error:

too few arguments in invocation of macro "Z_FOR_LOOP_1"

The actual build works fine but the red errors everywhere are very frustrating. If I use %d or similar to add another argument, then the error disappears. It seems like this thread is about the same issue but the issue wasn't actually solved, and  says:

"I got the same issue as you. The IntelliSense system gets confused by the complicated wizardry of the logging subsystem macros. We have got several reports related to these error squiggles, this is no quick solution for these issues by far. We will continue to investigate this issue further"

I had some previous issues with Intellisense giving me errors on NRF/Zephyr-related #includes but I fixed it by making the following changes to .vscode/c_cpp_properties.json (Microsoft C/C++ extension configuration) inside the project folder:

-Make sure Include path contains "C:/Users/User/ncs/v1.9.1/zephyr/include"

-Make sure Configuration provider is set to "nrf-connect"

This fix does not work for this issue.

Is this still a known issue that is being worked on? Thanks for any help.

Parents Reply Children
No Data
Related