Skip to content

Formatter exits without formatting anything on windows #2

@BoySanic

Description

@BoySanic

Before this was split out from the compiler into its own repo, it worked fine via zig build fmt -- file.zig

Now, if you run the standalone formatter on windows, it prints a newline as if it formatted a file but never prints its name, and it never formats the file:

Image

Since the only thing that changed was that we have a new main function realistically, I kind of suspect the issue lies in how the args are obtained/processed before passing to fmt.run.

I haven't dug too deep into the zig compiler's main to see how that differs

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