Open osztenkurden opened 2 months ago
Hello there, thanks for your interest and issue.
Overall, love the generator, and the only thing that stumbled me was the fact that I can't generate zig files from protos without "package" directive.
I think we inherited this behaviour from the original generator that served as basis of this one. It was a go-based one, and it required packages. I'll take a look into it to know if i can find a workaround about this.
I have to also remove dots from the field types on messages
Looking a the proto language spec :
It would seem that a dot is allowed before a type name, for some reason. It's also allowed for inner messages, i think. I'll have to look into that, and handle at least properly the beginning dot.
Thank you again.
Thanks, ill try tweaking through the weekend and try to make a PR, but I dont think it will be fast
PR #58 created, still WIP, but I'd appreciate veryfing if it doesn't break existing protos
Overall, love the generator, and the only thing that stumbled me was the fact that I can't generate zig files from protos without "package" directive.
Currently working on game data parser, and protos look like this:
So, no package name. To make it work, Im adding package name by hand, and then I have to also remove dots from the field types on messages (so
optional .CSGOInterpolationInfoPB cl_interp = 12;
will becomeoptional CSGOInterpolationInfoPB cl_interp = 12;
). I'm trying currently to make it work on the fork of the project, but I'm quite new to zig, so it's not going super fast