<?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>How does nRF Connect for VS Code determine the shell for default &amp;quot;Build&amp;quot; and &amp;quot;Flash&amp;quot; tasks?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99012/how-does-nrf-connect-for-vs-code-determine-the-shell-for-default-build-and-flash-tasks</link><description>I installed west and other additional Python dependencies in a Python virtual environment. Therefore, when I run the &amp;quot;Build&amp;quot; task from the Actions View, the task failed with an error message: 
 I know that the integrated terminal can activate the Python</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Apr 2023 07:41:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99012/how-does-nrf-connect-for-vs-code-determine-the-shell-for-default-build-and-flash-tasks" /><item><title>RE: How does nRF Connect for VS Code determine the shell for default "Build" and "Flash" tasks?</title><link>https://devzone.nordicsemi.com/thread/422437?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 07:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d75f72-517d-4ca0-8937-6d3e7d089e13</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try starting VS Code from within the environment where all PATHs are set to your wanted toolchain? This should help VS Code inherit the same environment.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does nRF Connect for VS Code determine the shell for default "Build" and "Flash" tasks?</title><link>https://devzone.nordicsemi.com/thread/422115?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 15:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e853a297-a128-4436-85ba-73f5b0428452</guid><dc:creator>stvnwn</dc:creator><description>&lt;p&gt;I tried setting the &lt;span style="font-family:courier new, courier;"&gt;$PATH&lt;/span&gt; environment variable in &lt;span style="font-family:courier new, courier;"&gt;.bashrc&lt;/span&gt;, as well as in &lt;span style="font-family:courier new, courier;"&gt;&amp;quot;nrf-connect.west.env&amp;quot;&lt;/span&gt; from &lt;span style="font-family:courier new, courier;"&gt;settings.json&lt;/span&gt;. Running the &amp;quot;Build&amp;quot; task from the Actions View still fails after performing either procedure with an error message:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/bin/sh: west: command not found&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I initially thought that nRF Connect for VS Code would, by default, use my default shell on my macOS computer, which is &lt;span style="font-family:courier new, courier;"&gt;/bin/zsh&lt;/span&gt;. It does for the nRF Connect terminal profile, but not for tasks in the Actions View (seems that they default to &lt;span style="font-family:courier new, courier;"&gt;/bin/sh&lt;/span&gt;). Is there a way to change the shell for tasks in the Actions View?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How does nRF Connect for VS Code determine the shell for default "Build" and "Flash" tasks?</title><link>https://devzone.nordicsemi.com/thread/422023?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 11:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6fb1861-5c20-4c6d-86dc-32fcba36f63b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF Connect for VS Code extension queries Bash for its environment by executing the ~/.bashrc file. Adding the path of west and other dependencies to ~./basrc should solve the issue. See &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/west_about.html#west-environment-on-macos-and-linux"&gt;West environment on macOS and Linux&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;You can also add environment variables to nrf-connect.west.env, so another solution is to set paths and environment variables not picked up by the extension in nrf-connect.west.env. See our documentation about this here: &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/reference/settings.html#nrf-connectwestenv"&gt;nrf-connect.west.env&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;nrf-connect.west.env&amp;quot;: {
    &amp;quot;$base&amp;quot;: &amp;quot;terminal&amp;quot;,
    &amp;quot;CUSTOM_ENV_VAR&amp;quot;: &amp;quot;custom value&amp;quot;,
    &amp;quot;OTHER_ENV_VAR&amp;quot;: &amp;quot;another value&amp;quot;,
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>