-
Notifications
You must be signed in to change notification settings - Fork 1.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
Manually parsing options
returns an empty array
#1547
Comments
options
returns a blank stringoptions
returns an emptty array
options
returns an emptty arrayoptions
returns an empty array
Hey @factoidforrest I tried saving your https://gist.github.com/factoidforrest/95ded881160638dbb024de43dd764b93 into repro_test.go, but cannot run it:
Can you please provide steps to reproduce that are complete and tested? Also, I noticed your code is importing Thanks |
I am attempting to extend my proto files using a custom option. However, when parsing out the option from the AST using
getUninterpretedOptions
, I get an empty array. Serializing it with .String() does however return what you would expect.And here is the line that is returning an empty array
Here is the full parser code in case more context is needed
https://gist.github.com/factoidforrest/95ded881160638dbb024de43dd764b93
Does anyone have any sample code of parsing and using custom options with this library?
The text was updated successfully, but these errors were encountered: