Description
Is your feature request related to a problem?
I'm trying to generate Java classes from proto file using edition="2023" syntax. It works with protoc when no plugin is enabled, but once I add java plugin I get this error:
./protoc-4.28.1-linux-x86_64.exe --plugin=protoc-gen-grpc-java=protoc-gen-grpc-java-1.66.0-linux-x86_64.exe --grpc-java_out=out --proto_path=proto test.proto
[libprotobuf ERROR google/protobuf/descriptor.cc:4199] Invalid proto descriptor for file "test.proto":
[libprotobuf ERROR google/protobuf/descriptor.cc:4202] test.proto: Unrecognized syntax: editions
--grpc-java_out: protoc-gen-grpc-java: Plugin failed with status code 1.
Is above behavior expected at this point or am I doing something wrong? I see support was added in this commit:
532241450
By the way, comment and preprocessor directive refer to protobuf version 5.27. Shouldn't it be 4.27?
Even if version typo is a culprit I suppose that it won't be enough because, if I understand correctly, grpc-java internally uses protobuf 21.7?
buildscripts/make_dependencies.sh:6:PROTOBUF_VERSION=21.7
https://github.com/grpc/grpc-java/blob/master/buildscripts/make_dependencies.sh#L6
Describe the solution you'd like
protoc-gen-grpc-java should support edition="2023" syntax.
Describe alternatives you've considered
I can use proto3 for now.
Additional context
(none)