<?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>VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88170/vs-code-was-not-detected-on-your-system</link><description>Well, clearly something is not right here. :) 
 
 How exactly does it try to &amp;quot;detect&amp;quot; VS Code? 
 
 I have now installed the Extension Pack from inside VS Code which worked without any issues.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 May 2023 08:08:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88170/vs-code-was-not-detected-on-your-system" /><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/427906?ContentTypeID=1</link><pubDate>Sat, 27 May 2023 08:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ac3d10-6d36-42bd-b2a2-97a26b2d6d14</guid><dc:creator>henning larsen</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/nicholaslee"&gt;Nicholas Lee&lt;/a&gt;&amp;nbsp;Trimming the system PATH environment variable worked for&amp;nbsp; me as well. (to be precise I moved the string &amp;quot;C:\Program Files\Microsoft VS Code\bin;&amp;quot; towards the start of the PATH - possibly creating problems for other programs further down now) I did however have a path length of about 1200 characters and it still works. &amp;nbsp;So the number of 260 char I cannot confirm.&lt;/p&gt;
&lt;p&gt;Note that it may be of significance weather vs code is installed in system or user mode. I have installed in system mode and this PATH is much longer than the user PATH. What a mess this is!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/385398?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 23:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1174714-b99c-47f7-8ece-e6a53d6f94f3</guid><dc:creator>ChrisInAtl</dc:creator><description>&lt;p&gt;Yes, &lt;code&gt;code&lt;/code&gt;&amp;nbsp;works fine from the command line.&amp;nbsp; I&amp;#39;ve used that to launch VS Code for years.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll play around with execsnoop, though.&amp;nbsp; Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/385387?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 20:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c193258-39fc-431d-a4c9-a1158351d38f</guid><dc:creator>AndreKR</dc:creator><description>&lt;p&gt;Can you run the command &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;code&lt;/span&gt; from a shell? Does it open VS Code? Then your PATH should be correct and the command that Toolchain Manager runs should succeed.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Process Monitor is a Windows thing, on MacOS you could try &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;execsnoop&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/385384?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 19:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae02ded-dc07-492f-91f4-8176eaa94087</guid><dc:creator>ChrisInAtl</dc:creator><description>&lt;p&gt;I&amp;#39;m seeing the same symptom on my macos install of nRF Connect for Desktop, v3.12.0.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried mucking around with the PATH to shorten (per the other comment below) and to try to make sure it is set somewhere fundamental to running processes like .zshenv.&amp;nbsp; No luck.&lt;/p&gt;
&lt;p&gt;How did you view the PATH of the executing Toolchain Manager?&amp;nbsp; I&amp;#39;m unfamiliar with Process Monitor, is that the app by the same name in the App Store?&amp;nbsp; Thank you for any help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/372432?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 15:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c8be44-c637-46b3-8f21-193cf4e5f303</guid><dc:creator>Nicholas Lee</dc:creator><description>&lt;p&gt;I too was wondering why VS code wasn&amp;#39;t detected by the Tool Chain Manager, even when I had specified that VS Code be added to the path.&lt;br /&gt;It turns out that if your windows PATH environment variable is already quite long, then, when it adds the VS Code directory to the PATH, that can take it over the limit of 260 characters, and then the Tool Chain Manager will fail to &amp;#39;detect&amp;#39; VS code.&lt;br /&gt;The solution in my case was to manually prune any obsolete directory entries from the PATH, then the Tool Chain Manager successfully detects and launches VS Code.&lt;br /&gt;(My thanks to AndreKR for identifying that it was path related issue in the first place)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/368993?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 11:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a7a1b92-4529-431c-acf3-bda3d263b8a8</guid><dc:creator>AndreKR</dc:creator><description>&lt;p&gt;Silly me, I just realized that of course the Toolchain Manager is open source, so it&amp;#39;s easy to see that the &amp;quot;detection&amp;quot; actually just &lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-toolchain-manager/blob/6c703dc27096eb63d69b4a0c7189c22b87a02d83/src/VsCodeDialog/vscode.ts#L139"&gt;tries to run &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;code --list-extensions&lt;/span&gt;&lt;/a&gt;. I confirmed with Process Monitor that this command is executed with an unmodified PATH, so VS Code would actually have to be in PATH. Since of course on my machine it is not, this mechanism will fail.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/368991?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 11:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1021b7b-d7f1-4eca-8a58-cbd63421f5f5</guid><dc:creator>AndreKR</dc:creator><description>&lt;p&gt;I have not tried upgrading because I had to downgrade from 3.8 to 3.7 as described&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81356/cannot-find-ppk2-after-upgrade-to-nrf-connect-for-desktop-v3-8-0/337426#337426"&gt;here&lt;/a&gt;&amp;nbsp;to make my PPK2 work.&lt;/p&gt;
&lt;p&gt;I only have one SDK installed (they are quite big), that is v1.9.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/368984?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 11:10:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3097a880-e275-440f-907d-14fa68c3d99c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Have you tried updating nRF Connect for Desktop and Toolchain Manager to the newest versions?&lt;br /&gt;&lt;br /&gt;In Toolchain Manager, from which nRF Connect SDK (NCS) version you cannot open VS Code? Do you get the same issue with other installed versions of NCS?&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: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/368979?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 10:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f98037f6-eeee-451c-b6cf-1882c1c0629b</guid><dc:creator>AndreKR</dc:creator><description>&lt;p&gt;Isn&amp;#39;t it clear from the screenshot? I have VS Code installed. I installed the Toolchain&amp;nbsp;Manager using nRF Connect for Desktop and I installed an SDK&amp;nbsp;using the Toolchain Manager. When I then click &amp;quot;Open VS Code&amp;quot; in the Toolchain Manager, I get &amp;quot;VS Code was not detected on your system&amp;quot;, even though VS Code is actually running at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VS Code was not detected on your system.</title><link>https://devzone.nordicsemi.com/thread/368937?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 08:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beb2f32b-6c4b-4687-8e60-82b7f4201517</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide more information about the issue?&lt;br /&gt;What did you try to do before error appeared?&lt;br /&gt;You could try updating nRF Connect for Desktop as well as Toolchain Manager.&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>