Error: “FATAL ERROR: command exited with status 128: update-ref -m ‘west update: moving to v2.4.2^{commit}’ refs/heads/manifest-rev ’v2.4.2^{commit}”

  • Tried new setup from empty folder.
  • Checked repo to make sure 2.4.2 exists.
  • Installing west globally.
  • updated west.
  • Not sure how to get logs.
    I am not sure what it is trying to find or how to resolve this issue.
    If you could please help I’d really appreciate it. Thank you,
    Jerrad

Hi @jhox616

Are you setting up a new machine? I thought you had a working setup already?

Nevertheless, what command are you running to get this error:

Error: “FATAL ERROR: command exited with status 128: update-ref -m ‘west update: moving to v2.4.2^{commit}’ refs/heads/manifest-rev ’v2.4.2^{commit}”

Details about your computer and setup would be helpful:

OS:
VSCode version:
Extension version:
Other extensions installed (having other python type extensions enabled is not recommended)

Installing west globally.
updated west.

Doing this globally is not recommended. I would remove it.

Not sure how to get logs.
If you’re using my extension when you run commands like Zephyr Tools: Setup and Zephyr Tools: Init a window should pop up with a console. You can select all and paste it into this convo.

The error was during running Init. Maybe installing west globally is the issue.
I’ll try fixing that and get you a console log.
Thanks!

19 days later

Hi Jared, I reinstalled windows on my machine and upgraded to Windows 11. I started the project fresh and was able to bypass the original error but now I am getting this error as someone else that posted about it a while ago
https://community.circuitdojo.com/d/51-error-whilst-compiling-blinky/18

The error I am getting is similar and I tried following a bit and unfortunately I still get the same error

PS C:\Users\Jerrad\Documents\SmartCollar\nfed\samples\blinky> west build -b circuitdojo_feather_nrf9160ns
ninja: error: loading 'build.ninja': The system cannot find the file specified.

FATAL ERROR: command exited with status 1: 'C:\Users\Jerrad\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' --build 'C:\Users\Jerrad\Documents\SmartCollar\nfed\samples\blinky\build'
PS C:\Users\Jerrad\Documents\SmartCollar\nfed\samples\blinky> cd build
PS C:\Users\Jerrad\Documents\SmartCollar\nfed\samples\blinky\build> west build -b circuitdojo_feather_nrf9160ns
ninja: error: loading 'build.ninja': The system cannot find the file specified.

FATAL ERROR: command exited with status 1: 'C:\Users\Jerrad\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' --build 'C:\Users\Jerrad\Documents\SmartCollar\nfed\samples\blinky\build'

my Python version is 3.10. I did install 3.9 but still was getting the same error with build.ninja
CMake version is 4.0.2

    jhox616 it’s not clear how you got your setup running.

    This is still the supported method for the nRF9160 Feather: https://docs.circuitdojo.com/nrf9160-feather/sdk-setup-windows.html

    The closer to C:\ the better since that rules out any issues with spaces in the file structure. Though it appears you’re good in that department.

    If you did follow the steps I have seen some cases where you have to run Zepyhyr Tools: Setup twice to register all your dependencies.

    I started over with the guide and ran Setup. It is telling me it can’t find the root zephyr directory and gives me a “Configure” button to set it.

    My friend was helping me so I haven’t tried this in over a year so I would appreciate your patience.

    @jhox616 I’d need your console output.

    Also a list of all other plugins that you’ve enabled.

    Terms and Conditions | Privacy Policy