<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://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>Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102559/clicking-the-build-button-rebuilds-everything-in-vs-code</link><description>When I click the build button in VS Code, it rebuilds the entire project and takes quite a while (a few minutes). This is extremely inefficient when I am making small changes to a couple files and want to iterate builds and testing quickly. 
 Is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Aug 2023 10:11:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102559/clicking-the-build-button-rebuilds-everything-in-vs-code" /><item><title>RE: Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/thread/440458?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 10:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ef4f95-38a5-43ff-9b36-1fe68b00edf2</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hmm, Is the toolchain installed in Windows or the WSL &amp;quot;partition&amp;quot;?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BTW, here&amp;#39;s our docs on custom build tasks in VS Code:&amp;nbsp;&lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html"&gt;https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s way more specific to our use-cases than the VS Code docs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/thread/440187?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 19:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff042eb9-5def-42dd-9425-9682740e65d0</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;I believe I found the solution here.&amp;nbsp;I typically keep all my git repos in my WSL installation, but that would cause this issue. If I clone my repo in Windows and open that in VS Code, this is no longer a problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/thread/439995?ContentTypeID=1</link><pubDate>Sat, 05 Aug 2023 07:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17194258-d034-4e06-ac14-52a5b60cd5f5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;If you hover your mouse over the build button in the Actions pane, what does the contextual info box say?&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s mine for reference:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6102.pastedimage1691222267379v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also, here&amp;#39;s a log where I rebuild a project without any changes:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style="padding-left:30px;"&gt;* Executing task: nRF Connect: Build: peripheral_hr/build (active)&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Building peripheral_hr&lt;br /&gt;C:\WINDOWS\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir c:/Users/****/ncs/v2.4.0/zephyr/samples/bluetooth/peripheral_hr/build c:/Users/****/ncs/v2.4.0/zephyr/samples/bluetooth/peripheral_hr&amp;quot;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ninja: no work to do.&lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/thread/439948?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 14:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f47792be-0f1b-40d0-b723-f134b3984e80</guid><dc:creator>jrhaws</dc:creator><description>&lt;p&gt;That makes sense if I change and build configs, but if I click build, then click it again a second time after it is done it will run through the whole build again and rebuild all the source files, including Zephyr. Does it not do the same for your builds?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into that link to configure the tasks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clicking the Build button rebuilds EVERYTHING in VS Code</title><link>https://devzone.nordicsemi.com/thread/439868?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 09:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281d6cd7-78d1-43e3-8c93-e78eac391059</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;If you change any build configs you will have to rebuild&amp;nbsp;your&amp;nbsp;build system and re-compile your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can change the task behaviour of buttons and&amp;nbsp;hotkeys in VS code however you like, see&amp;nbsp;&lt;a href="https://code.visualstudio.com/docs/editor/tasks"&gt;https://code.visualstudio.com/docs/editor/tasks&lt;/a&gt;. This applies to both the &amp;#39;build&amp;#39; and &amp;#39;flash&amp;#39; buttons in our VS code extension.&lt;/p&gt;
&lt;p&gt;Also, make sure you exclude the SDK from anti-virus tracking, windows&amp;#39;s Antimalware Service is especially trigger happy with Zephyr&amp;#39;s build system. And Linux builds in almost half the time compared to Windows.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>