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

Doesn't work anymore #51

Open
theoparis opened this issue Jul 7, 2024 · 1 comment
Open

Doesn't work anymore #51

theoparis opened this issue Jul 7, 2024 · 1 comment

Comments

@theoparis
Copy link

INFO[0000] no existing registry entry for external type  registry type=PFN_vkGetInstanceProcAddrLUNARG
INFO[0001] Running goimports                             file=struct.go
ERRO[0001] Failed to format source file                  error="exit status 2" goimports output="../../vk/struct.go:35180:15: expected operand, found ')'\n../../vk/struct.go:35182:3: expected ')', found 'return'\n../../vk/struct.go:35185:3: missing ',' in composite literal\n../../vk/struct.go:35186:8: missing ',' in composite literal\n../../vk/struct.go:35189:15: expected operand, found ')'\n../../vk/struct.go:35191:3: expected ')', found 'return'\n../../vk/struct.go:35194:1: missing ',' in composite literal\n../../vk/struct.go:35196:7: missing ',' in composite literal\n../../vk/struct.go:35200:1: missing ',' in composite literal\n../../vk/struct.go:35201:7: missing ',' in composite literal\n../../vk/struct.go:35210:3: missing ',' in composite literal\n" path=../../vk/struct.go
panic: runtime error: index out of range [1] with length 1

It seems to be generating invalid code here

...
MaxLevel : ()(s.maxLevel),
...
@spaghettifunk
Copy link

I made it work in PR #52. The solution to that error is to add the correct exception in the exception.json. But then there is another issue with a special VkExtent2D type in the XML that I'm not sure how to handle it properly. I skip that in the code to generate the whole new version of the go-vk. Anyway, I hope it helps 😄

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