Zig extension vscode Aarch64 windows problem

Hi, I have been developing zig in my thinkpad for a while. Then, I just get a microsoft surface that works in aarch64 (ARM) but when I install zig extension for vscode this happens with ZLS:

The error indicates that tar is not installed. Is it installed?

1 Like

Thanks for the help.
No, it´s not installing. Maybe i could download from somewhere?

I would recommend scoop for installing command line tools on Windows:

https://scoop.sh/

And then scoop install busybox installs a package that has all the common UNIX cmdline tools (such as tar) working on the regular Windows cmdline (without a UNIX ‘emulator’ like mingw).

PS: still a bit strange that the VSCode Zig plugin depends on preinstalled cmdline tools though…

PPS: a better way may be to ‘preinstall’ Zig via ZVM: GitHub - tristanisham/zvm: zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig. … and then zvm install --zls [version]. That way the VSCode Zig plugin shouldn’t try to install its own ZSL.

4 Likes

scoop looks pretty neat, do you know if it’s possible to run it from a cmd.exe command-prompt? I spend most my time in that prompt.

Windows 10 has included tar.exe since at least 2018 so it’s strange that you’re getting this error in the first place. You should check whether C:\Windows\System32\tar.exe exists and also verify that C:\Windows\System32 is included in your %PATH% environment variable.

2 Likes

yes, scoop works fine on a vanilla cmd.exe (I also use that mostly instead of a bash or powershell)

1 Like

Thank you castholm, Thats it. I don´t know why C:\Windows\System32 wasn’t included in PATH on surface pro 11 by default. So then I included and Visual Studio extension worked.
Thank yall for support

Wow windows never ceases to amaze