-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
protoc: strange inconsistency in message literals in custom options for when a colon is needed #9551
Comments
I expect to find this in the EBNF but I don't: https://developers.google.com/protocol-buffers/docs/reference/proto3-spec If we follow that spec, none of this is allowed. We probably need to update that spec. |
Yeah, it does not go into the format for message literals. The implementation actually relies on the Also relevant: |
Realistically, this language blemish is something we have to live with. Fixing this is a significant breaking change that we're unlikely to have staffing to drive. |
While I understand that changing the text format could be a significant effort, I think it might be simpler to just patch As far as this only effecting This alternate way to address might be small enough for a contributor to look into a pull request, instead of marshaling the resources of Google's protobuf team. |
What version of protobuf and what language are you using?
3.19.0
What operating system (Linux, Windows, ...) and version?
OS X
What runtime / compiler are you using (e.g., python version or gcc version)
N/A, just using
protoc
to compile descriptorsWhat did you do?
I tried to compile the following file, via
protoc -o /dev/null test.proto
:What did you expect to see
Success
What did you see instead?
An error that a colon is required on that last example value:
If I add a colon just to that last one (
ss
) or comment out that line, the file is accepted.Anything else we should know about your project / environment
Nope
The text was updated successfully, but these errors were encountered: