Stream: contributing

Topic: Expected Enum Literal Compiler Error for zig 0.14.0


view this post on Zulip John Konecny (Mar 05 2025 at 14:12):

FYI it looks like there were breaking changes make to the build.zig.zon file for zig v0.14.0.

When you run zig build you'll get an compiler error.

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

Someone made a git issue asking about it too

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:15):

Looks like we just need to remove the quotes from the name field

view this post on Zulip John Konecny (Mar 05 2025 at 14:19):

It also looks like they added a .fingerprint field too. It's probably quick to fix, but I did quite a bit of cursing this morning so I figured I should make everyone aware of the issue. :laughing:

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:20):

Thanks for that! I have no plans to move to 0.14.0 until it's our minimum version

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:31):

Actually, this might make me change my mind

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:32):

Would be very useful since zls is so useless

view this post on Zulip John Konecny (Mar 05 2025 at 14:34):

Does the new version have a built in language server?

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:50):

No

view this post on Zulip Anthony Bullard (Mar 05 2025 at 14:50):

ZLS is still a separate project

view this post on Zulip Brendan Hansknecht (Mar 05 2025 at 16:40):

We also need to update roc-bootstrap and our other depa before we can update to 0.14.0

view this post on Zulip Brendan Hansknecht (Mar 05 2025 at 16:41):

Though I don't expect that to take too long

view this post on Zulip Anthony Bullard (Mar 06 2025 at 10:34):

Just realized I didn't paste the link to the section that excited me - which is incremental compilation for zig check workflow

view this post on Zulip John Konecny (Mar 06 2025 at 10:36):

I was wondering what I was missing :laughing:

view this post on Zulip Luke Boswell (Mar 06 2025 at 10:43):

You're killing me Anthony...

view this post on Zulip Luke Boswell (Mar 06 2025 at 10:44):

https://ziglang.org/download/0.14.0/release-notes.html#Incremental-Compilation

view this post on Zulip Luke Boswell (Mar 06 2025 at 10:44):

Found it

view this post on Zulip Anthony Bullard (Mar 06 2025 at 10:54):

Oh thanks Dude! Didn't expect you to link it, but I appreciate it

view this post on Zulip Anthony Bullard (Mar 06 2025 at 10:54):

I think uptaking that will really pay off as the compiler grows

view this post on Zulip Brendan Hansknecht (Mar 06 2025 at 16:47):

zig build check is that option in our compiler currently

view this post on Zulip Brendan Hansknecht (Mar 06 2025 at 16:48):

Theoretically in 0.14.0 zls also can run that step to understand your code and comp time types better


Last updated: Jul 06 2025 at 12:14 UTC