Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comptime dereference requires '[8]builtin.Type.StructField' to have a well-defined layout, but it does not. #122

Closed
Siphonay opened this issue Mar 30, 2024 · 2 comments

Comments

@Siphonay
Copy link

Hello, since recently, trying to build a project using clap encounters this error:

C:\Users\net\AppData\Local\zig\p\12200103e7b4a0cb162f2912df4fe97914024a25b5c9fcce6ea4119744f3f2a7f24e\clap.zig:927:19: error: comptime dereference requires '[8]builtin.Type.StructField' to have a well-defined layout, but it does not.
    return @Type(.{ .Struct = .{
                 ~^
C:\Users\net\AppData\Local\zig\p\12200103e7b4a0cb162f2912df4fe97914024a25b5c9fcce6ea4119744f3f2a7f24e\clap.zig:682:24: note: called from here
        args: Arguments(Id, params, value_parsers, .slice),
              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is on Windows, but it also happens on Windows. I’m not sure, but I think it might be related to changes brought by ziglang/zig#19414

Hejsil added a commit that referenced this issue Mar 30, 2024
@Hejsil
Copy link
Owner

Hejsil commented Mar 30, 2024

Can you check that the latest commit fixes the issue for you as well. This fixes the error for all the test.

@Siphonay
Copy link
Author

Siphonay commented Mar 30, 2024

This fixes the issue for me 😄 Thanks for your reactivity!

Siphonay added a commit to Siphonay/zcellterm that referenced this issue Mar 30, 2024
@Hejsil Hejsil closed this as completed Mar 30, 2024
Siphonay added a commit to Siphonay/zcellterm that referenced this issue Apr 7, 2024
Siphonay added a commit to Siphonay/zcellterm that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants