-
Notifications
You must be signed in to change notification settings - Fork 134
Description
Hi,
Im'm trying to generate the helper class for PHP but I have the errors with different version of the tool protoc.
protoc --version
libprotoc 32.0
protoc --php_out=src sparkplug_b.proto
--php_out: Can't generate PHP code for closed enum org.eclipse.tahu.protobuf.DataType. Please use either proto3 or editions without enum_type = CLOSED.
protoc --version
libprotoc 3.21.12
protoc --php_out=src sparkplug_b.proto
sparkplug_b.proto:91:41: Extension ranges are not allowed in proto3.
sparkplug_b.proto:100:41: Extension ranges are not allowed in proto3.
sparkplug_b.proto:118:29: Extension ranges are not allowed in proto3.
sparkplug_b.proto:124:45: Extension ranges are not allowed in proto3.
sparkplug_b.proto:131:45: Extension ranges are not allowed in proto3.
sparkplug_b.proto:152:52: Extension ranges are not allowed in proto3.
sparkplug_b.proto:159:41: Extension ranges are not allowed in proto3.
sparkplug_b.proto:164:42: Extension ranges are not allowed in proto3.
sparkplug_b.proto:183:41: Extension ranges are not allowed in proto3.
sparkplug_b.proto:212:25: Extension ranges are not allowed in proto3.
sparkplug_b.proto:221:37: Extension ranges are not allowed in proto3.
protoc --php_out=src sparkplug_b.proto
--php_out: Can only generate PHP code for proto3 .proto files.
Please add 'syntax = "proto3";' to the top of your .proto file.
How can I solve it ?
thanks in advance to anyone can help me to solve the problem.