Skip to content

Conversation

sluongng
Copy link
Contributor

@sluongng sluongng commented Mar 7, 2025

See
https://github.com/protocolbuffers/protobuf/blob/main/docs/implementing_proto3_presence.md#to-iterate-over-all-oneofs
for more info.

This helps silencing some error within simple proto3 files

syntax = "proto3";

package moo;

message Foo {
  optional int32 bar = 1;
}

which would yield

file_descriptor_walker.cc:262] Unexpected location vector [] while walking moo.proto

before this change.

See
https://github.com/protocolbuffers/protobuf/blob/main/docs/implementing_proto3_presence.md#to-iterate-over-all-oneofs
for more info.

This helps silencing some error within simple proto3 files

```
syntax = "proto3";

package moo;

message Bar {
  ...
  map<int32, int32> foo = 12;
}
```

which would yield
```
file_descriptor_walker.cc:262] Unexpected location vector [] while walking moo.proto
```

before this change.
@sluongng
Copy link
Contributor Author

sluongng commented Mar 7, 2025

Related c23d4d5

@varunmahajan
Copy link
Contributor

/gcbrun

@varunmahajan varunmahajan self-assigned this Mar 10, 2025
@sluongng
Copy link
Contributor Author

I just realized that I used the wrong example proto file. Fixed that in the description.

@varunmahajan
Copy link
Contributor

/gcbrun

@varunmahajan
Copy link
Contributor

/gcbrun

@varunmahajan varunmahajan merged commit d8c532d into kythe:master May 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants