<?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>usage: west: error: argument  : invalid choice: &amp;#39;build&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88104/usage-west-error-argument-invalid-choice-build</link><description>Hi, 
 
 I&amp;#39;m a real novice with this but I&amp;#39;m having this issue and I can&amp;#39;t see how to resolve it. 
 
 
 Building HeartRate_sensor west build --build-dir c:\Users\deirdre.hackett\Nordic\VS_projects\HeartRate_sensor\build c:\Users\anon\Nordic\VS_projects</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 May 2022 10:18:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88104/usage-west-error-argument-invalid-choice-build" /><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369483?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 10:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b2735be-ae34-424c-9c23-f529be7fc27f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, that looks correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s strange as you are opening VS Code through the Toolchain Manager, you should have everything installed. There might be some sort of user restriction. I hope that we can help you find the answer in your new ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369448?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 08:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:995e4b93-4e15-401b-b15c-a4b3cfc30c20</guid><dc:creator>Dtyn</dc:creator><description>&lt;p&gt;The setup is correct as far as I can see&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653466324221v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369443?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 07:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81deda8e-3af5-42d9-a83a-fd9e6ccedd40</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Dtyn"]I&amp;#39;ve created another ticket to continue this issue.[/quote]
&lt;p&gt;Thank you! I hope that we are able to solve this as soon as possible.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Dtyn"]My admin installed everything in his admin profile other than VS code that he installed as a network device.[/quote]
&lt;p&gt;Not sure how installing something on network drive will work. That might be a path to pursue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you verified that your setup is correct in the extension? (under welcome page)&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653465496400v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369432?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 07:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70fd6b9-0d81-45ea-a0f8-9c95fa958646</guid><dc:creator>Dtyn</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created another ticket to continue this issue.&lt;/p&gt;
&lt;p&gt;To answer your last question:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes I am definitely pressing the debug button in the nRF Connect extension.&lt;/p&gt;
&lt;p&gt;My admin installed everything in his admin profile other than VS code that he installed as a network device.&lt;/p&gt;
&lt;p&gt;Let me know if there other information you need to see.&lt;/p&gt;
&lt;p&gt;Is this an issue with an environment variable or registry key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369419?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 06:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0fda9f-d6fa-4b5d-9d1f-aad0143a8ba8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Deidre,&lt;/p&gt;
[quote user="Dtyn"]I was trying to anonimise myself but it didn&amp;#39;t work obviously&amp;nbsp;&lt;span title="Slight smile"&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2451.1f642.svg" alt="Slight smile" /&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Sorry, your name was visible in the path. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;
[quote user="Dtyn"]I resolved this by uninstalling the SDK and reinstalling in another folder.[/quote]
&lt;p&gt;I&amp;#39;m happy to hear you solved the initial issue.&lt;/p&gt;
[quote user="Dtyn"]Should I continue in this question or start a new one?[/quote]
&lt;p&gt;As it is not related to original topic of the ticket, you should register a new ticket. That said, the &amp;quot;select a kit for...&amp;quot; message is not related to the nRF Connect for VS Code extension but another extension in VS Code I believe. It is unfortunately misleading, and it can be ignored.&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653459105164v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In you case, you should check what devices are connected under &amp;quot;Connected devices&amp;quot; in the nRF Connect extension&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653459187487v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I will forward your feedback to our VS code extension team, as this is valuable information in regards to user experience.&amp;nbsp;&lt;/p&gt;
[quote user="Dtyn"]&lt;p&gt;&lt;span&gt;When I try to debug it gives me the message&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unable to start debugging: Unable to find J-Link directory to find JLinkGDBServerCL executable. Please make sure that J-Link is installed and that the &amp;#39;HKEY_LOCAL_MACHINE\Software\SEGGER\J-Link&amp;#39; registry key is defined correctly.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;What debug button are you clicking? Make sure to use the one in our extension:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653459694484v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369333?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 14:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eca7d64-6469-4929-8360-7717ae3de7c5</guid><dc:creator>Dtyn</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653403098949v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I select scan for kits nothing happens&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When i select unspecified:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;[variant] Loaded new set of variants&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[kit] Successfully loaded 0 kits from C:\Users\deirdre.hackett\AppData\Local\CMakeTools\cmake-tools-kits.json&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[kit] Successfully loaded 0 kits from C:\Users\deirdre.hackett\AppData\Local\CMakeTools\cmake-tools-kits.json&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[main] Configuring folder: hello_world_test5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/369330?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 14:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8749780-1c91-4ce1-9478-269b749f4cf4</guid><dc:creator>Dtyn</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was trying to anonimise myself but it didn&amp;#39;t work obviously&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I resolved this by uninstalling the SDK and reinstalling in another folder.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have another issue related to the installation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Should I continue in this question or start a new one?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I/my admin&amp;nbsp; installed the SDK and visual studio though the nRF connect tool chain manager.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When i open visual studio through the toolchain manager it prompts me&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to &amp;quot;Select a kit for...&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;with the two option&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Scan for kits (...compilers...)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;unspecified&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I try to debug it gives me the message&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unable to start debugging: Unable to find J-Link directory to find JLinkGDBServerCL executable. Please make sure that J-Link is installed and that the &amp;#39;HKEY_LOCAL_MACHINE\Software\SEGGER\J-Link&amp;#39; registry key is defined correctly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is installed on a admin controlled machine where I just have a user profile.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any insight you can provide into how to resolve this would be appreciated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will need to pass on the fix to my administrator as I have no control over the installation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there an issue with installing as an administrator and running as a user?&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Issues-with-Debugging-using-VScode-with-nRF-connect-and-nrf-sdk2.docx"&gt;devzone.nordicsemi.com/.../Issues-with-Debugging-using-VScode-with-nRF-connect-and-nrf-sdk2.docx&lt;/a&gt;&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;Deirdre&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usage: west: error: argument  : invalid choice: 'build'</title><link>https://devzone.nordicsemi.com/thread/368749?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 08:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946e6b6e-a824-4a2e-9fea-3449b65d839a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Deirdre,&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m a real novice with this but I&amp;#39;m having this issue and I can&amp;#39;t see how to resolve it.[/quote]
&lt;p&gt;No worries. Let&amp;#39;s see if we can find the solution to this. Thank you for providing the support information! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The initial part I noticed is&amp;nbsp;the two paths in the build command:&lt;/p&gt;
[quote user=""]west build --build-dir c:\Users\deirdre.hackett\Nordic\VS_projects\HeartRate_sensor\build c:\Users\anon\Nordic\VS_projects\HeartRate_sensor[/quote]
&lt;p&gt;C:\Users\deirdre.hackett\....&lt;/p&gt;
&lt;p&gt;C:\Users\anon\...&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;this the same folders?&lt;/p&gt;
[quote user=""]usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] &amp;lt;command&amp;gt; ...&lt;br /&gt;west: error: argument &amp;lt;command&amp;gt;: invalid choice: &amp;#39;build&amp;#39; (choose from &amp;#39;init&amp;#39;, &amp;#39;update&amp;#39;, &amp;#39;list&amp;#39;, &amp;#39;manifest&amp;#39;, &amp;#39;diff&amp;#39;, &amp;#39;status&amp;#39;, &amp;#39;forall&amp;#39;, &amp;#39;help&amp;#39;, &amp;#39;config&amp;#39;, &amp;#39;topdir&amp;#39;, &amp;#39;selfupdate&amp;#39;)&lt;br /&gt;The terminal process failed to launch (exit code: 2).[/quote]
&lt;p&gt;Looks like it does not find West, this is usually due to missing Zephyr base. However, in the provided support information it is defined:&amp;nbsp;&lt;span&gt;&amp;quot;ZEPHYR_BASE&amp;quot;: &amp;quot;c:\\Users\\anon\\ncs\\v1.9.1\\zephyr&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Have you installed the nRF Connect SDK using our Toolchain Manager?&amp;nbsp; Did you open VS Code from the Toolchain Manager?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>