<?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: VS code build error - ninja: error: loading 'build.ninja': in MCUXpresso for VSCode</title>
    <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201374#M475</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57117"&gt;@fsl_jason_yu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This is all I see.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dan_ash_0-1762742293975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364551i74405B9B58F69154/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dan_ash_0-1762742293975.png" alt="dan_ash_0-1762742293975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;No ninja.build, but it was there before when things works.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 02:39:16 GMT</pubDate>
    <dc:creator>dan_ash</dc:creator>
    <dc:date>2025-11-10T02:39:16Z</dc:date>
    <item>
      <title>VS code build error - ninja: error: loading 'build.ninja':</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201285#M473</link>
      <description>&lt;P&gt;I was happily using VS Code building RT700 code using mcuxsdk repo 25.12.00.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the sudden my projects would not build and I saw message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Workspace is /c:/projects/mcuxsdk/mcuxsdk/examples/demo_apps/hello_world&lt;BR /&gt;build task started....&lt;BR /&gt;"C:\Program Files\CMake\bin\cmake.EXE" --build C:/projects/mcuxsdk/mcuxsdk/examples/demo_apps/hello_world/debug --target all --&lt;BR /&gt;ninja: error: loading 'build.ninja': The system cannot find the file specified.&lt;/P&gt;
&lt;P&gt;I am sure I did something.&lt;/P&gt;
&lt;P&gt;I removed the repo and re-cloned. Reimported core0 hello world.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas? Thank you.&lt;/P&gt;
&lt;P&gt;Still same.&lt;/P&gt;
&lt;P&gt;I saw community post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/I-have-a-problem-to-run-a-project-and-gave-me-an-Error-to-build/m-p/2068732" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/I-have-a-problem-to-run-a-project-and-gave-me-an-Error-to-build/m-p/2068732&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The post states the files need the following variables set properly&lt;BR /&gt;&lt;BR /&gt;1)&amp;nbsp;mcux_include.json -&amp;nbsp;&lt;SPAN&gt;ARMGCC_DIR&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;My file: "ARMGCC_DIR"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"C:/NXP/MCUXpressoIDE_25.6.136/ide/tools"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;.vscode\mcuxpresso-tools.json -&amp;nbsp;&lt;SPAN&gt;toolchainPath&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My file: "toolchainPath"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"C:/NXP/MCUXpressoIDE_25.6.136/ide/tools"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Nov 2025 17:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201285#M473</guid>
      <dc:creator>dan_ash</dc:creator>
      <dc:date>2025-11-09T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: VS code build error - ninja: error: loading 'build.ninja':</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201360#M474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/204615"&gt;@dan_ash&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I didn't see this issue before. Could you please confirm:&lt;/P&gt;
&lt;P&gt;1. The new cloned repo is clean.&lt;/P&gt;
&lt;P&gt;2. The imported project folder is clean.&lt;/P&gt;
&lt;P&gt;3. When you see the error, does the file "ninja.build" exist?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fsl_jason_yu_0-1762741557665.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364544i7C363F9C79CC7B37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fsl_jason_yu_0-1762741557665.png" alt="fsl_jason_yu_0-1762741557665.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 02:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201360#M474</guid>
      <dc:creator>fsl_jason_yu</dc:creator>
      <dc:date>2025-11-10T02:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: VS code build error - ninja: error: loading 'build.ninja':</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201374#M475</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57117"&gt;@fsl_jason_yu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This is all I see.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dan_ash_0-1762742293975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364551i74405B9B58F69154/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dan_ash_0-1762742293975.png" alt="dan_ash_0-1762742293975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;No ninja.build, but it was there before when things works.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 02:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201374#M475</guid>
      <dc:creator>dan_ash</dc:creator>
      <dc:date>2025-11-10T02:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: VS code build error - ninja: error: loading 'build.ninja':</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201426#M476</link>
      <description>&lt;P&gt;After chatting with Jason, I realized I had not seen the first error which was missing yaml.&lt;/P&gt;
&lt;P&gt;What happened was I had some other issue and installed Python (3.13) from VS Code (extensions), but I already had a working 3.14 I installed in Windows, which had yaml. I had also copied west.exe to that Python folder. And my path had the 3.14 folder.&lt;/P&gt;
&lt;P&gt;Once I uninstalled (Windows settings apps uninstall) the 3.13 I installed from VS code everything worked again.&lt;/P&gt;
&lt;P&gt;Long story, 3.13 did not have yaml, but I decided to simply remove it and rely on the original 3.14 I had.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sorry I went back more in the build and found&lt;BR /&gt;&lt;BR /&gt;-- Ninja version: 1.13.1&lt;/P&gt;
&lt;P&gt;CMake Error at C:/projects/mcuxsdk/mcuxsdk/cmake/extension/mcux_module.cmake:74 (message):&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&lt;BR /&gt;File "C:\projects\mcuxsdk\mcuxsdk\scripts\misc\mcux_module.py", line 28, in &amp;lt;module&amp;gt;&lt;/P&gt;
&lt;P&gt;import yaml&lt;BR /&gt;&lt;BR /&gt;ModuleNotFoundError: No module named 'yaml'&lt;BR /&gt;&lt;BR /&gt;Call Stack (most recent call first):&lt;/P&gt;
&lt;P&gt;c:/projects/mcuxsdk/mcuxsdk/cmake/extension/mcux.cmake:279 (include)&lt;/P&gt;
&lt;P&gt;CMakeLists.txt:5 (project)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Configuring incomplete, errors occurred!&lt;/P&gt;
&lt;P&gt;Configure finished with return code 1&lt;BR /&gt;&lt;BR /&gt;* The terminal process terminated with exit code: 1.&lt;/P&gt;
&lt;P&gt;* Terminal will be reused by tasks, press any key to close it.&lt;BR /&gt;&lt;BR /&gt;* Executing task: CMake: build&lt;BR /&gt;&lt;BR /&gt;Workspace is /c:/projects/mcuxsdk/mcuxsdk/examples/demo_apps/hello_world&lt;/P&gt;
&lt;P&gt;build task started....&lt;/P&gt;
&lt;P&gt;"C:\Program Files\CMake\bin\cmake.EXE" --build C:/projects/mcuxsdk/mcuxsdk/examples/demo_apps/hello_world/debug --target all --&lt;/P&gt;
&lt;P&gt;ninja: error: loading 'build.ninja': The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;build finished with error(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 10 Nov 2025 03:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/VS-code-build-error-ninja-error-loading-build-ninja/m-p/2201426#M476</guid>
      <dc:creator>dan_ash</dc:creator>
      <dc:date>2025-11-10T03:31:42Z</dc:date>
    </item>
  </channel>
</rss>

