RE: [protobuf] Parsing of .desc fails for message with custom option

2021-02-12 Thread Marc Schafer
you read in exactly matches the file on disk (or at least do a quick check to verify that the length is the same). On Fri, Feb 12, 2021 at 1:37 PM Marc Schafer <space...@plunk.org> wrote:I am invoking protoc –descriptor_set_out on the .proto file with contents described below that include the d

RE: [protobuf] Parsing of .desc fails for message with custom option

2021-02-12 Thread Marc Schafer
oking protoc with -o or --descriptor_set_out, so just make sure to add the custom option .proto file as one of the command line arguments to protoc when you do that. On Tue, Feb 9, 2021 at 5:39 AM Marc Schafer <space...@plunk.org> wrote:Parsing fails on a .desc file generated from a message wi

[protobuf] Parsing of .desc fails for message with custom option

2021-02-09 Thread Marc Schafer
Parsing fails on a .desc file generated from a message with a custom option as shown below. I understand this is happening because the message defined in descriptor.proto doesn't know about my extension but I am not sure how to fix it. I'm using C++. Here is my .proto: syntax = "proto3";