trpc-group / trpc-go

A pluggable, high-performance RPC framework written in golang
Other
742 stars 85 forks source link

google.protobuf.Empty unknown #154

Closed 44zs44 closed 6 months ago

44zs44 commented 6 months ago

Question

https://github.com/trpc-group/trpc-go/blob/main/restful/README.zh_CN.md The example in this document contains google.protobuf.empty. When I use trpc create to generate code, powershell gives an error: Execution err: parser.Parse during pre run err: parse IDL[protobuf] test.proto error: parseProtoFile err: test.proto:26:5: field test.HelloRequest.oneof_empty: unknown type google.protobuf.Empty Please run "trpc -h" or "trpc create -h" (or "trpc {some-other-subcommand} -h") for help messages.

Windows,Go1.19