Skip to content

V panic: v Files\v_windows\v\blog\mk\coreutils/bin/arch: unknown command #89

Open

Description

@zhihau

I execute the command v run build.vsh in Git Bash on Windows 10. It output the following message. Does anyone know how to fix this error?

User@DESKTOP MINGW64 /d/Program Files/v_windows/v/blog/mk/coreutils (main)
compiling arch...
failed    cmd: v -Wimpure-v -o D:\Program Files\v_windows\v\blog\mk\coreutils/bin/arch ./arch
failed   code: 1
V panic: v Files\v_windows\v\blog\mk\coreutils/bin/arch: unknown command
Run  v help  for usage.

v hash: d0a11f5
C:/Users/User/AppData/Local/Temp/v_0/build.4116815423438212709.tmp.c:7239: at _v_panic: Backtrace
C:/Users/User/AppData/Local/Temp/v_0/build.4116815423438212709.tmp.c:15208: by os__execute_or_panic
C:/Users/User/AppData/Local/Temp/v_0/build.4116815423438212709.tmp.c:16298: by main__main
C:/Users/User/AppData/Local/Temp/v_0/build.4116815423438212709.tmp.c:16681: by wmain
0046e408 : by ???
0046e56b : by ???
7ff8a71f7034 : by ???

Activity

  1. metif12 commented on Oct 6, 2026

    @metif12
    Contributor

    Fixed by #228. The build script passed the output path as one word in a command string, so the space in \D:\Program Files...\ split it. It now uses \os.exec_or_panic\ with an argument array, where each argument is passed as it is and a path with a space needs no quoting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions