<?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>Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86608/configuring-a-dependent-task-in-vscode</link><description>I have the nrfConnect task that builds my project in vscode. 
 I need to add a script to execute before the nrfConnect task. 
 I added a task to my tasks.json but the task that I need to execute before the nrfConnect build, does not execute;; 
 I even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Apr 2022 14:18:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86608/configuring-a-dependent-task-in-vscode" /><item><title>RE: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/362638?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 14:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4afd2af-334b-4644-9bb0-bab090cbcf33</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;When using &amp;quot;Build&amp;quot; or &amp;quot;Pristine Build&amp;quot;&amp;nbsp; from VS Code, it is not necessarily intended for the content of the tasks.json to be executed. However, it should be possible to execute the task using general VS Code functionality, but this is then not related to the 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: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/362424?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 16:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af634613-4e47-4b1a-95d6-f9573ba5083a</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you! Much appreciated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/362385?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8bd05da-1ceb-4d63-924a-1306075f35fb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have invoked build from VS Code. I used Windows 10. However, I have run into some inconsistent behavior. Therefore, I reported the issue internally.&lt;br /&gt;I&amp;#39;ll come back to you when I get more information.&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: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/362152?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 15:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d4abe28-f560-4e74-bb86-e1852cb1615a</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I tried using full path. My tasks.json looks exactly like yours but when I click build or pristine build the subtask does not execute.&lt;/p&gt;
&lt;p&gt;How do you invoke your build?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you on Mac or Windows?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/361983?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 08:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd2cdd5-4d58-4673-89c1-11f89ec4c036</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This is how I did it. I built asset_tracker_v2 example. One small difference from your tasks.json is that I have entered the full path to the build folder in the &amp;quot;config&amp;quot; section.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
    &amp;quot;version&amp;quot;: &amp;quot;2.0.0&amp;quot;,
    &amp;quot;tasks&amp;quot;: [
        {
            &amp;quot;label&amp;quot;: &amp;quot;subtask1&amp;quot;,
            &amp;quot;type&amp;quot;: &amp;quot;shell&amp;quot;,
            &amp;quot;command&amp;quot;: &amp;quot;echo I AM A SUBTASK&amp;quot;
        },
        {
            &amp;quot;type&amp;quot;: &amp;quot;nrf-connect-build&amp;quot;,
            &amp;quot;config&amp;quot;: &amp;quot;c:\\path_to_the_project\\asset_tracker_v2\\build&amp;quot;,
            &amp;quot;runCmake&amp;quot;: false,
            &amp;quot;problemMatcher&amp;quot;: [
                &amp;quot;$gcc&amp;quot;,
                &amp;quot;$cmake&amp;quot;,
                &amp;quot;$kconfig&amp;quot;,
                &amp;quot;$kconfig_syntax&amp;quot;,
                &amp;quot;$kconfig_syntax_files&amp;quot;,
                &amp;quot;$dts&amp;quot;,
                &amp;quot;$dts_syntax&amp;quot;
            ],
            &amp;quot;group&amp;quot;: &amp;quot;build&amp;quot;,
            &amp;quot;label&amp;quot;: &amp;quot;nRF Connect: Build asset_tracker_v2/build (active)&amp;quot;,
            &amp;quot;dependsOrder&amp;quot;: &amp;quot;sequence&amp;quot;,
            &amp;quot;dependsOn&amp;quot;: [
                &amp;quot;subtask1&amp;quot;
            ],
        }
    ]
}

&lt;/pre&gt;&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: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/361888?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 14:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c728fc-88ba-4c66-814d-90f23c07af0b</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Adding dependsOrder did not help my issue. What I want to happen is when I click &amp;quot;build&amp;quot; or &amp;quot;pristine build&amp;quot;&amp;nbsp; the &amp;quot;subtask1&amp;quot; executes first and the nRF connect task. How can that be accomplished?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/361763?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 08:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50affd4b-bac8-4a44-9375-b9f940c433aa</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have made my own test on this and I can see &amp;quot;I AM A SUBTASK&amp;quot; in the VS Code Terminal.&lt;br /&gt;You need to add the following line &amp;lt;&lt;em&gt;&amp;quot;dependsOrder&amp;quot;: &amp;quot;sequence&amp;quot;,&lt;/em&gt;&amp;gt;. You can put this line just before &amp;quot;dependsOn&amp;quot; line.&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: Configuring a dependent task in vscode</title><link>https://devzone.nordicsemi.com/thread/361626?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 22:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf1aa04-94f6-4797-ad6b-3c9e5ddb1e71</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I can execute my &amp;quot;subtask1&amp;quot; task by selecting &amp;quot;terminal-&amp;gt;run build task&amp;quot; but not together with the nrf-connect build task&lt;/p&gt;
&lt;p&gt;I set the default task to be subtask1&amp;quot; .But when I select &amp;quot; build&amp;quot; or &amp;quot;pristine build&amp;quot; vscode still bypasses &amp;quot;subtask1&amp;quot; and executes the&amp;nbsp;nrf-connect&amp;quot; build task. How can I make them run one after another - first &amp;quot;subtask1&amp;quot; THEN &amp;quot;nrf-connect-build&amp;quot; task??&lt;br /&gt;Everything is so complicated in vscode even the simplest things. Very frustrating&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>