Skip to content

Compiling returns an error in build.zig.zon "expected enum literal" #23104

Closed as not planned
@AFreeChameleon

Description

@AFreeChameleon

Zig Version

0.14.0

Steps to Reproduce and Observed Behavior

I'm not sure what happened, I booted up my computer and now I can't compile my code.
After running zig build, the only error message I'm getting is:

/path/to/folder/build.zig.zon:9:13: error: expected enum literal
    .name = "thing",

In the build.zig.zon file at the top line my LSP says:

.{ file cannot be a tuple

My build.zig.zon file is the default file created, I haven't made any changes to it.

Creating a new project and running zig build works so I'm curious if I've done something that overwrites some global default behaviour

Any clarity on what I can look for would be super helpful.
Thanks :)

Expected Behavior

I expected it to either compile or show me what I can do to make it compile.

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