Skip to content

failed to run zig fmt on windows #7654

Description

@wsdjeg

I am using latest version of zig, downloaded from https://ziglang.org/builds/zig-windows-x86_64-0.7.1+dfacac916.zip

the version is:

C:\Users\wsdjeg\Desktop>zig version
0.7.1+dfacac916

the test file is:

conststd=@import("std");
pubfnmain() !void {
conststdout=std.io.getStdOut().writer();
trystdout.print("Hello, {}!\n", .{"world"});
}

the result of zig run, zig test and zig fmt is:

C:\Users\wsdjeg\Desktop>zig run test.zig
Hello, world!
C:\Users\wsdjeg\Desktop>zig fmt test.zig
error: unable to open 'test.zig': error.Unexpected
C:\Users\wsdjeg\Desktop>zig test test.zig
Semantic Analysis [785/1153] No tests to run.

there is no extra useful information for debug this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft Windowszig fmt

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions