dcarp / protobuf-d

Protocol Buffers Compiler Plugin and Support Library for D
Boost Software License 1.0
38 stars 9 forks source link

empty message error. #9

Closed zhangyuchun closed 5 years ago

zhangyuchun commented 5 years ago

protobuf-0.3.1/protobuf/src/google/protobuf/common.d(147,5): Error: static assert: "Definition of 'LeaseLeasesRequest' has no Proto field"

message LeaseLeasesRequest { }

sometimes empty message is useful , for example used in grpc.

zhangyuchun commented 5 years ago

i‘m implementing neton like etcd. using empty message. https://github.com/etcd-io/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto

dcarp commented 5 years ago

Fixed in v0.4.0.

dcarp commented 5 years ago

Thank you for reporting this issue. Please test it and give feedback if this works for you now.

zhangyuchun commented 5 years ago

it works!