-
Notifications
You must be signed in to change notification settings - Fork 7
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
Parse Error: Field name same as Message/Enum Name #57
Comments
andrewhickman
added a commit
that referenced
this issue
Apr 3, 2024
Thanks for the report, this should be fixed by andrewhickman/prost-reflect#100 in prost-reflect version 0.13.1 |
Wow. That was an insanely quick turnaround. Thanks for closing this too. I meant to backlink the other ticket, but it must have slipped my mind. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
There appears to be a bug in the parser. If a field name is identical to a message/enum name, the parsing fails. The official
protoc
compiler does not fail on this.I am trying to compile moby/buildkit/solver/pb/ops.proto, but
protox
fails on some of the fields.Expected Behavior:
protox
compiler has parity with officialprotoc
compiler. Field names can be any valid identifier, including other message/enum type names.Actual Behavior:
protox
fails to compile fields that have identical names as defined message/enum types.Minimal Reproduction Case:
protos/minimal.proto
build.rs
Output
I have not been able to find where the particular diagnostic is being generated from, but will file a PR if I can find and fix.
The text was updated successfully, but these errors were encountered: