<?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>nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84026/nrf-connect-vscode-extension-caching-paths</link><description>Hello, 
 I recently installed the VSCode Extension for nRF Connect and I am experiencing, what seems to me, strange behaviour. 
 Here&amp;#39;s the steps: 
 
 I create a project from an example 
 select board, the SDK, do a pristine build etc.. all good 
 I copy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 09:58:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84026/nrf-connect-vscode-extension-caching-paths" /><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349711?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 09:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21815a96-fa6f-48ae-b986-d5d7c52dd0d6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Matthias,&lt;br /&gt;&lt;br /&gt;I am glad that this solution worked for you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is exactly what I meant. First remove the build folder and then load the application to VS Code. Afterwards, pristine build should be performed to recreate build folder.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349670?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 06:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a255439a-8048-428c-939b-487e0b02c9f3</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this seems to work when you delete the build folder before opening the copied folder with vscode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you open the&amp;nbsp;copied application and then delete the build folder, the wrong paths are obviously already loaded from cache and pristine building does nothing to resolve this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to thank you for this fix/workaraound for now. &lt;br /&gt;I still hope, that this topic would get looked into in the extension itself, as I can see it being really headache inducing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349601?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 15:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed8f361-4dda-4dd7-bee4-4c4f23a8165f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reproduced this issue.&amp;nbsp;&lt;br /&gt;The problem might be with caching of paths.&lt;br /&gt;The solution is to remove the whole build folder from your copied application folder and do pristine build to recreate it. After that all caching should be removed.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349565?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 14:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f59062d6-1401-4ad0-bbb7-27c576949345</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;VSCode:&lt;br /&gt;Version: 1.63.2 (user setup)&lt;br /&gt;Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3&lt;br /&gt;Date: 2021-12-15T09:40:02.816Z&lt;br /&gt;Electron: 13.5.2&lt;br /&gt;Chromium: 91.0.4472.164&lt;br /&gt;Node.js: 14.16.0&lt;br /&gt;V8: 9.1.269.39-electron.0&lt;br /&gt;OS: Windows_NT x64 10.0.19042&lt;/p&gt;
&lt;p&gt;&lt;span class="name clickable" title="Extension name"&gt;nRF Connect for VS Code&amp;nbsp;&lt;/span&gt;&lt;code class="version" title="Extension Version"&gt;v2021.12.137&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="version" title="Extension Version"&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;The nRF Connect Windows Program is 3.7.1&lt;br /&gt;It is not the newest because of&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81345/nrf-connect-3-8-0-programmer-v2-0-0---update-modem-modem-dfu-failed?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Descending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/81345/nrf-connect-3-8-0-programmer-v2-0-0---update-modem-modem-dfu-failed?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Descending&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;and&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81355/dks-not-being-detected-after-updating-to-nrf-connect-3-8-and-programmer-to-2-0-0?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Descending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/81355/dks-not-being-detected-after-updating-to-nrf-connect-3-8-and-programmer-to-2-0-0?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Descending&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;does the nrf connect desktop installation affect the vscode extension?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349561?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 13:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3472e4bb-c2f3-4dd6-996b-32665c8e2d35</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Matthias,&lt;br /&gt;&lt;br /&gt;Which version of VS Code and nRF Connect for Desktop are you using?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349526?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 12:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d41501a-ac30-49c0-9480-eb21edfafd23</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;Hi, thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;Unfortunately none of this worked. I can add the Application and see the Input Files of the application (which I could before as well), but clicking on the CMakeLists.txt under Input Files still opens the file in the original folder, not the new folder I have open as an Application.&lt;/p&gt;
&lt;p&gt;This is what it looks like. As you can see, I have the&amp;nbsp;Application called spm-Kopie open, but when I click on the file, it opens it in the old folder.&lt;/p&gt;
&lt;p&gt;A pristine build would not do much, since it grabs the wrong file from the beginning.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="348" src="https://i.imgur.com/PuMMcjB.jpg" width="587" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect VSCode extension caching paths?</title><link>https://devzone.nordicsemi.com/thread/349516?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 12:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:577a7e6b-5c76-45cf-9d4a-f8e1b7b5675a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Matthias,&lt;/p&gt;
&lt;p&gt;The problem you are experiencing is related to the fact that VS Code nRF Connect extension cannot see the newly copied folder as separate application.&lt;br /&gt;&lt;br /&gt;One way to solve this would be to create a new application from your folder. In VS Code nRF Connect extension go to &amp;quot;Applications&amp;quot;, press &amp;quot;+&amp;quot; sign (not visible by default, hover over to see it) &amp;quot;Add Folder as Application&amp;quot;. This makes your folder visible under &amp;quot;Applications&amp;quot; and content of your application should be visible to you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Another way to solve this would be to go to &amp;quot;Add existing application&amp;quot; under &amp;quot;Welcome&amp;quot; inside nRF extension for VS Code. This has the same effect as previous method, adding your copied folder to the list of your applications.&lt;br /&gt;&lt;br /&gt;When you make an application from your folder, you might need to perform pristine build in order to see &amp;quot;Input files&amp;quot;, which should then contain relevant files from your copied folder.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>