<?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 app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113895/nrf-connect-app-with-west-workspace-vscode-configuration</link><description>Hi. 
 We have an application (nrf connect 2.7.0). the applications is based on sys build and is encapsulated in a west workspace. 
 so the app folder includes west.yml, app folder with the app CmakeList.txt and driver directory etc... 
 
 Much like the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 17 Aug 2024 06:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113895/nrf-connect-app-with-west-workspace-vscode-configuration" /><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498709?ContentTypeID=1</link><pubDate>Sat, 17 Aug 2024 06:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2701e54-3c44-4b3a-8ea3-28f66a338c46</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;So after retesting in a competently new ws all the steps described above did work, so i conclude there is an issue with the current workspace i&amp;#39;m in (or one of the updates to VScode solved it and i&amp;#39;m unaware).&lt;/p&gt;
&lt;p&gt;In any case the answer will be accepted and case closed,&lt;/p&gt;
&lt;p&gt;Thanks Hieu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498682?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 15:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8e6e902-5fda-4996-bd53-7fc788e2428c</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;my bad, seems like if i take the ncs-application-example tag 2.7.0 and then west update + cd ncs_application-example/app &amp;amp;&amp;amp; code .&amp;nbsp;&lt;br /&gt;It Does recognizes the app. For some reason it does not for my workspace and i&amp;#39;m pretty sure it did not for &amp;#39;main&amp;#39; on the ncs-application-example so the only question is what&amp;#39;s the difference...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498677?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 15:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e6e3ac-4daa-4f75-b747-b09fbdff56fb</guid><dc:creator>Hieu</dc:creator><description>[quote user="Eya_Gal"]&lt;p&gt;ah. that explains it, so yeah like i said eventually i created an &amp;quot;action&amp;quot; that caused it to create, i use the command to edit it...&lt;br /&gt;but for adding:&amp;nbsp;&lt;span&gt;&amp;quot;nrf-connect.applications&amp;quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;span&gt;&amp;quot;${workspaceFolder}/app&amp;quot;&lt;/span&gt;&lt;span&gt;] i had to look in an automatically created app imported from examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think there should be for the very least an automated action that will add folder X (app in this case) as an application and will add it to the settings, especially for west workspaces.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Hm, I am not clear what kind of feature you require here.&lt;/p&gt;
&lt;p&gt;If you open a directory that has&amp;nbsp;the files necessary for a Zephyr application, the extension should be able to automatically detect the directory as containing an application and put it under the Application panel.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;setting&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&amp;quot;nrf-connect.applications&amp;quot;: ["${workspaceFolder}/app"]&lt;/span&gt; is only relevant when you add more applications.&lt;/p&gt;
&lt;p&gt;If you expect the extension to parse recursively into the folder and detect all applications, I am not sure that&amp;nbsp;would work well with the nature of Zephyr. Within Zephyr are tens if not hundreds of samples, demo applications, and test applications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498675?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 15:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438eb2f7-1a83-4913-bdc0-1bd3f0e58f4d</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;ah. that explains it, so yeah like i said eventually i created an &amp;quot;action&amp;quot; that caused it to create, i use the command to edit it...&lt;br /&gt;but for adding:&amp;nbsp;&lt;span&gt;&amp;quot;nrf-connect.applications&amp;quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;span&gt;&amp;quot;${workspaceFolder}/app&amp;quot;&lt;/span&gt;&lt;span&gt;] i had to look in an automatically created app imported from examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think there should be for the very least an automated action that will add folder X (app in this case) as an application and will add it to the settings, especially for west workspaces.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498674?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 15:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4823aca-1eab-4c75-b044-548ecae3afa7</guid><dc:creator>Hieu</dc:creator><description>[quote user="Eya_Gal"]you say it i open the app folder then the .vscode/settings.json should be created automatically, correct ?[/quote]
&lt;p&gt;No, only when you take an action that&amp;nbsp;changes settings would that file be created.&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/40377654/how-to-create-and-init-vscode-in-vscode"&gt;visual studio code - How to create and init &amp;quot;.vscode&amp;quot; in VSCode? - Stack Overflow&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498623?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 12:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:029f9ba2-fd90-42da-8aa0-72ae9be08137</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;thanks Heiu, it looks very much like my setup and in addition the fact that we are using the same version of the extension and the SDK makes it even stranger, i&amp;#39;ll try today again with a fresh workspace from the example. If it wont work i&amp;#39;ll try inside a vritual machine with a fresh install of VScode, you say it i open the app folder then the .vscode/settings.json should be created automatically, correct ?&lt;br /&gt;And if not but i use &amp;quot;open existing application&amp;quot; and open for instance the folder ncs-example-application and it should generate it as well, correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498606?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 11:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7150c598-106b-4c2c-867c-e8fc35c9a33f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I am using NCS v2.7.0, and the pre-release version of the nRF Connect VS Code extension, yes.&lt;/p&gt;
&lt;p&gt;For reference, this is my workspace structure:&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/Screenshot-2024_2D00_08_2D00_16-131515.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you see any major differences compared to yours?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498475?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 13:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8891bc08-6b1c-4ff8-9eeb-fc5e2c3c739b</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;it&amp;#39;s unfortunate that it doesn&amp;#39;t reproduce for you, however it does on my pc ( i tried several times).&lt;/p&gt;
&lt;p&gt;Since i&amp;#39;m workig with ncs 2.7.0 and it was recommended&amp;nbsp;to work pre-release vs code extension ncs-for-vscode extension. If you work on the release version then it might explain the diff. I understand the current vscode release version does not play ball with ncs 2.7.0.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498457?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 12:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:225c1e37-217a-4a1f-9d5a-389c2b7f3bed</guid><dc:creator>Hieu</dc:creator><description>[quote user="Eya_Gal"]&lt;p&gt;1. i have opened the app from the&amp;nbsp;my-app-in_west_ws as i wrote above, the parallel from the nrf-connect example is the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/ncs-example-application"&gt;ncs-example-application&lt;/a&gt;. indeed it&amp;#39;s not the app folder. it&amp;#39;s one folder up the chain, the one that contains the sysbuild file.&lt;/p&gt;
&lt;p&gt;2. i did try to &amp;quot;open an existing application&amp;quot; action, i get &amp;quot;this folder does not contain nrf-connect application&amp;quot; error. As i said the only thing i could do is edit the workspace settings json manually and edit it.&lt;/p&gt;[/quote]
&lt;p&gt;I have actually attempted to reproduce your issue before my last answer.&amp;nbsp;However, things work correctly for me. I also&amp;nbsp;verified both opening the &lt;em&gt;app&lt;/em&gt; folder and&amp;nbsp;adding an application via the &amp;quot;Open an existing application&amp;quot; action.&lt;/p&gt;
&lt;p&gt;Thus, I understand that you said it is similar to the ncs-example-application, but&amp;nbsp;I would still like to check.&lt;/p&gt;
[quote user="Eya_Gal"]still .vscode/settings.json was not created.[/quote]
&lt;p&gt;This folder isn&amp;#39;t necessarily created at all times. Only when something about the editing session should be saved that it is created.&lt;/p&gt;
&lt;p&gt;You could try to change the toolchain version, and it should be created just fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498338?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 15:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6eee04b-9a86-44f3-9b44-8fd81d182a28</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;just tried opening the &amp;#39;app&amp;#39; folder, still .vscode/settings.json was not created.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498337?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 14:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb0e9054-f130-43bf-a25d-24aad04d4ab9</guid><dc:creator>Eyal_Gal</dc:creator><description>&lt;p&gt;1. i have opened the app from the&amp;nbsp;my-app-in_west_ws as i wrote above, the parallel from the nrf-connect example is the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/ncs-example-application"&gt;ncs-example-application&lt;/a&gt;. indeed it&amp;#39;s not the app folder. it&amp;#39;s one folder up the chain, the one that contains the sysbuild file.&lt;/p&gt;
&lt;p&gt;2. i did try to &amp;quot;open an existing application&amp;quot; action, i get &amp;quot;this folder does not contain nrf-connect application&amp;quot; error. As i said the only thing i could do is edit the workspace settings json manually and edit it.&lt;br /&gt;&lt;br /&gt;3. if non of the above work (i&amp;#39;ll check it with the app folder, if that works, ok, it&amp;#39;s a start) then except manual action there is no automatic handling for that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf-connect app with west workspace vscode configuration.</title><link>https://devzone.nordicsemi.com/thread/498271?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:21:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a372379d-e8ef-4ff6-a988-9a6357cdd75f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Eyal_Gal,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From which folder are you opening VS Code? If you want the app detected automatically, you need to open the app folder.&lt;/p&gt;
&lt;p&gt;Otherwise, you need to add the application manually by using the &amp;quot;Open an existing application&amp;quot; action.&lt;/p&gt;
&lt;p&gt;Please also go over the nRF Connect for VS Code Extension guides:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/overview.html"&gt;Guide overview (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>