Re: [protobuf] Nested extensions generate invalid code

2017-09-25 Thread Tomoyuki Saito
Thank you for your response. Filed up an issue in GitHub: https://github.com/golang/protobuf/issues/433 On Monday, September 25, 2017 at 11:20:21 PM UTC+9, Josh Humphries wrote: > > That looks like a clear-cut bug in protoc-gen-go to me: > https://github.com/golang/protobuf/issues/new > > I

Re: [protobuf] Nested extensions generate invalid code

2017-09-25 Thread Josh Humphries
That looks like a clear-cut bug in protoc-gen-go to me: https://github.com/golang/protobuf/issues/new I suspect there's some issue where it recognizes it is inside a proto3 message, so it generates scalar fields without a pointer. But only proto2 messages are allowed to have extensions (in this

[protobuf] Nested extensions generate invalid code

2017-09-25 Thread Tomoyuki Saito
When trying to use extensions with a parent message, a build error happens with a message like "cannot convert nil to type bool." In generator.go , I'm expecting the