<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VSCode failed to build with error - could not determine build directory.. in MCUXpresso for VSCode</title>
    <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843603#M237</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I noticed from your files that you are using Windows. Windows has a limit for the length of the path (260 characters). So, if the path to where you created the project is long could you try to create it in a shorter path (like C:/work) and see if it helps?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dragos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 05:50:23 GMT</pubDate>
    <dc:creator>DragosMiloiu</dc:creator>
    <dc:date>2024-04-10T05:50:23Z</dc:date>
    <item>
      <title>VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1839432#M225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When building imported sample app rtos version of hello world cm33 vscode fails to build with error&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"Error: Could not determine the build directory for project mimxrt1180evk_hello_world_demo_cm33". SDk is 2.15, board is 1180 rev B, The build does not even start.&amp;nbsp; Is there any logs to see what is happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried a clean command (from vscode context menu) the log is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clean task started....
"C:\Program Files\CMake\bin\cmake.EXE" --build --config Debug --target clean --
Error: could not load cache
clean finished with error(s).&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;It seems that cmake tool does not get the path of project.&amp;nbsp; .vscode dir is attached. cmake is 3.28.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 14:00:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1839432#M225</guid>
      <dc:creator>arunkumar_g</dc:creator>
      <dc:date>2024-04-02T14:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1840164#M229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks so much for your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If not use the vscode, use the IDE, eg, mcuxpresso, whether it works on your side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Just the Vscode version meet issues, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am also testing this code on my side, will give you updated information later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 10:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1840164#M229</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-03T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1840279#M230</link>
      <description>&lt;P&gt;Yes mcuxpresso works ok. VScode is the one that shows this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: both are in different machines.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 17:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1840279#M230</guid>
      <dc:creator>arunkumar_g</dc:creator>
      <dc:date>2024-04-03T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843138#M232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I also test it on my side, I can build it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is my test result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1712659515938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/272728i2934901CAA70FF13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1712659515938.png" alt="kerryzhou_0-1712659515938.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_1-1712659521582.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/272729i9D76444DCAE0EC1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_1-1712659521582.png" alt="kerryzhou_1-1712659521582.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which VScode version you are using? I am using 1.87.0.&lt;/P&gt;
&lt;P&gt;my cmake version is:cmake version 3.21.0&lt;/P&gt;
&lt;P&gt;Your situation should caused by the repository import, which method you import the SDK?&lt;/P&gt;
&lt;P&gt;I am also using the SDK2.15.0, do you use all Toolchians:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_2-1712659699140.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/272731i9AD4BB0B2D2D274D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_2-1712659699140.png" alt="kerryzhou_2-1712659699140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can delete your vscode SDK, and import it again with the local method, whether it have improvement or not?&lt;/P&gt;
&lt;P&gt;Any updated information, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843138#M232</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-09T10:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843603#M237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I noticed from your files that you are using Windows. Windows has a limit for the length of the path (260 characters). So, if the path to where you created the project is long could you try to create it in a shorter path (like C:/work) and see if it helps?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dragos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 05:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1843603#M237</guid>
      <dc:creator>DragosMiloiu</dc:creator>
      <dc:date>2024-04-10T05:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1846485#M245</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp; i'm using vscode 1.88, cmake is 3.28.1. Yes all toolchains are enabled when i dowloaded (default selections for gcc toolchain)&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/145867"&gt;@DragosMiloiu&lt;/a&gt;&amp;nbsp; No file paths are not long "C:\code\mcuexpresso\code\demo\mimxrt1180evk_freertos_hello_cm33" and long paths setting are enabled in pc.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 14:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1846485#M245</guid>
      <dc:creator>arunkumar_g</dc:creator>
      <dc:date>2024-04-13T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1846734#M246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Path should not the issue on your side, as I also use the same deep path:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1713159427499.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273642iA881BA0AA66C315E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1713159427499.png" alt="kerryzhou_0-1713159427499.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you try to use the low cmake version, which is the same as my:3.21.0:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_1-1713159461944.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273644i10E57ECFDC253B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_1-1713159461944.png" alt="kerryzhou_1-1713159461944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think the vscode version should also not the issues.&lt;/P&gt;
&lt;P&gt;BTW, if you still have issues, do you also try to import the SDK again, whether any improvement or not?&lt;/P&gt;
&lt;P&gt;Any updated information, please kindly let me know.&lt;/P&gt;
&lt;P&gt;My windows system is win10.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 05:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1846734#M246</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-15T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1847475#M247</link>
      <description>&lt;P&gt;Cmake installed was from mcuxpresso installer. I uninstalled that and installed 3.21 and no change in behavior. Have installed the sdk mutiple times in different paths and has same observations.&lt;/P&gt;&lt;P&gt;I dont think this is related to cmake as mentioned in first post, somehow cmake does not get the build directory path. Is there a chance the plugin is passing empty path to cmake? From where the plugin gets the build path and how does it pass it to cmake?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 21:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1847475#M247</guid>
      <dc:creator>arunkumar_g</dc:creator>
      <dc:date>2024-04-15T21:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1847595#M248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Which MCUXpresso Installer you are using now?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I will also try your version, my current version is V1.0, I may try all the Installer, Vscode, cmake version totally the same as you again. Just to kick out the tool issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 02:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1847595#M248</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-16T02:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1848475#M249</link>
      <description>&lt;P&gt;The mcuxpresso tool is the one vscode plugin initiates. For me it is 1.2 b142 -and i install mcuxpresso sdk developer kit&lt;/P&gt;&lt;P&gt;Finally I was able to build vscode project, But for that I did multiple things&lt;/P&gt;&lt;P&gt;- Uninstall vscode, mcuxpresso tool app, mcuxpresso ide&lt;/P&gt;&lt;P&gt;- Delete vscode plugin directories and mcuxpresso cache and tool download dirs (from &amp;lt;user&amp;gt; folder as well as &amp;lt;appdata&amp;gt; folders&lt;/P&gt;&lt;P&gt;-Reinstalled back.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still believe the issue was cause by mangled configuration of mcuxpresso vscode plugin.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 21:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1848475#M249</guid>
      <dc:creator>arunkumar_g</dc:creator>
      <dc:date>2024-04-16T21:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: VSCode failed to build with error - could not determine build directory..</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1849671#M252</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216666"&gt;@arunkumar_g&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks so much for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I glad to hear you already make it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; From your newest information, really like what you mentioned, should still the plugin install abnormal cause this issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Anyway, final working is important!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;If your question is solved, please help to mark the correct answer, just to close this case.&lt;/P&gt;
&lt;P&gt;Any new issues, welcome to create the new question post, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 08:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VSCode-failed-to-build-with-error-could-not-determine-build/m-p/1849671#M252</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-04-18T08:13:45Z</dc:date>
    </item>
  </channel>
</rss>

