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

@fieldParentPtr() - error: expected 3 arguments, found 2 #128

Closed
James-Riordan opened this issue Apr 22, 2024 · 2 comments
Closed

@fieldParentPtr() - error: expected 3 arguments, found 2 #128

James-Riordan opened this issue Apr 22, 2024 · 2 comments

Comments

@James-Riordan
Copy link

I see that recent changes were made to the @fieldParentPtr code in generator/build_integration.zig lines 77 & 171 in this commit. @igaryhe I'm not sure if this commit is related to my issue, but I seem to get this error when compiling with zig version 0.12.0-dev.3180+83e578a18.

/.cache/zig/p/12203dd92af51de24d95545584c376f2d76698ff0b73d5e5b1cf0e1e12bba2ca4d48/generator/build_integration.zig:171:42: error: expected 3 arguments, found 2
        const self: *ShaderCompileStep = @fieldParentPtr("step", step);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Did you run into something similar?

@igaryhe
Copy link
Contributor

igaryhe commented Apr 22, 2024

Hi James,
Can you try compiling with zig 0.12.0? This commit was intended to fix a breaking change made upstream: ziglang/zig#19470

@James-Riordan
Copy link
Author

@igaryhe hopped outta bed to test real quick, yep, it works for 12.0 and 0.13.0-dev.4+c7ffdbcd4, but breaks for 0.12.0-dev.3180+83e578a18. How weird! All good, I'll close the issue

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