3.9.1 FieldOptions cause an IndexOutOfRangeException when accessing the Descriptor in c# (works in 3.8.0)

20 views
Skip to first unread message

Pete Townsend

unread,
Aug 12, 2019, 7:32:03 AM8/12/19
to Protocol Buffers
If I use Version 3.9.1 of the Google.Protobuf and access the Descriptor for my message I get an IndexOutOfRangeException - however if I switch back to 3.8.0 it;s fine.

Example:

### File 1 "test.proto"
syntax = "proto3";

import "google/protobuf/wrappers.proto";
import "protos/myoption.proto";

message Test {
  string test_id = 1 [(myoption) = "test"];
}
### End File 1

### File 2 "myoption.proto"
syntax = "proto3";

import "google/protobuf/descriptor.proto";

extend google.protobuf.FieldOptions {
string myoption = 50782;
}
### End File 2






Reply all
Reply to author
Forward
0 new messages