<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/81183/visual-studio-code-flags-log-function-calls-as-erroneous</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 16 May 2022 20:39:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/81183/visual-studio-code-flags-log-function-calls-as-erroneous" /><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/368117?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 20:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:185d90a4-f764-4d2b-8d59-ff85f21198b4</guid><dc:creator>user81998</dc:creator><description>&lt;p&gt;One option for clearing these up is to go into the settings =&amp;gt; Extensions =&amp;gt; C/C++.&amp;nbsp; Go to C_Cpp:Error squiggles and Disable them.&amp;nbsp; The drawback is that Intellisense won&amp;#39;t premark the error/warnings in your code so you won&amp;#39;t see them until you attempt to build.&amp;nbsp; But I found it worth it in my case to get rid of all those false error marks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/367099?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 08:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4d41c0-95dc-46bb-9b7a-c9c478c09948</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;That is odd. I guess it is not fixed for everyone yet. I am looking into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/367053?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 04:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da0397d-a86c-47a6-9452-49683c11427d</guid><dc:creator>user85287</dc:creator><description>&lt;p&gt;I am also in 1.9.1 and still have the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366982?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4482545a-0836-43c8-a20d-6172fab0bee8</guid><dc:creator>user115845</dc:creator><description>&lt;p&gt;Thanks for the tips !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366980?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10a0fcdd-151f-47ae-a8fb-ad5996c2dc9a</guid><dc:creator>user23219</dc:creator><description>&lt;p&gt;You can use log message like this. LOG_INF(&amp;quot;%s&amp;quot;, &amp;quot;your log message&amp;quot;)&lt;/p&gt;
&lt;p&gt;I am using it like this due to this annoying error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366974?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371787d4-1207-464f-a72d-f1315a956930</guid><dc:creator>user115845</dc:creator><description>&lt;p&gt;Yes, still the same message. I&amp;#39;ve replaced it by a printk function for now but it might be annoying later in my work&amp;nbsp;&lt;/p&gt;
&lt;div style="left:416px;position:absolute;top:-20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366964?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52a5e277-9844-4b7a-ae80-13e3ca442924</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;Hmm that is strange.&amp;nbsp;And the error is still blaming &amp;quot;&lt;span&gt;&lt;em&gt;too few arguments in invocation of macro \&amp;quot;Z_FOR_LOOP_1&lt;/em&gt;&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366942?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 12:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e522f184-d548-4812-a062-f8c9390827d0</guid><dc:creator>user115845</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use NCS 1.9.1 and I have the same issue. Seems like it&amp;#39;s not fixed yet&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366854?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 08:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c834abb0-088f-4e58-8a60-06d45c488572</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;Hello Xavier!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What NCS version are you using? It should actually be fixed in NCS 1.9 now!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/366722?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 12:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb63b855-f8ba-4a3a-a6e5-434c64e7072a</guid><dc:creator>user85287</dc:creator><description>&lt;p&gt;Still no solution to this? Really annoying...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/354173?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 14:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:445c6b65-b679-44d7-9852-a93e1f1b2436</guid><dc:creator>user103788</dc:creator><description>&lt;p&gt;I use a slightly hacky solution for this, which may or may not be appliable to your usecase: I define a new macro, as I find the warnings annoying&amp;nbsp;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define LOG_PRINT(MESSAGE, ...) LOG_PRINTK(MESSAGE &amp;quot;%c&amp;quot;, ##__VA_ARGS__, 0)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/339044?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 14:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e3648e-330f-434d-a7bf-98668172995d</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;Sadly not as of yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/339041?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 13:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ae95d4-0bc6-4cb1-b259-73d446457a93</guid><dc:creator>user23219</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anybody found a solution about this? I know that there is no error. However, this situation is so frustrating.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/336852?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 12:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d467a02-573f-4dba-8814-6b061ac0bd7a</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;Hey again Michael!&lt;/p&gt;
&lt;p&gt;There doesn&amp;#39;t seem to be&amp;nbsp;any other solutions for this unfortunately.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Studio Code flags LOG function calls as erroneous</title><link>https://test-devzone.nordicsemi.com/thread/336701?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 13:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c16c1d4-ebc8-4461-aff9-48e7ab9ef167</guid><dc:creator>user103347</dc:creator><description>&lt;p&gt;Hey Michael!&lt;/p&gt;
&lt;p&gt;Yes, sadly it seems that this is an error on our side. We do not know of any solutions to get around this as of yet.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll get back to you over the weekend if I find any other solutions for you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>