Re: [protobuf] protogen golang - finding source line for diagnostics?

2022-11-07 Thread Steve Simon
great, that is the push in the right direction I needed. all sorted now. -Steve On Thursday, 3 November 2022 at 15:35:29 UTC acoz...@google.com wrote: > Things like comments and line numbers from the .proto file are represented > in the SourceCodeInfo message here >

Re: [protobuf] protogen golang - finding source line for diagnostics?

2022-11-03 Thread 'Adam Cozzette' via Protocol Buffers
Things like comments and line numbers from the .proto file are represented in the SourceCodeInfo message here . Unfortunately I'm not familiar enough with Go protos

[protobuf] protogen golang - finding source line for diagnostics?

2022-11-03 Thread Steve Simon
Hi, I am using protogen for go successfully. We are using extend google.protobuf.ServiceOptions { as we need to encode extra fields for our backend. When I find typos in the serviceOptions I am parsing I would like to generate diagnostics which reference the source proto file and line number.