grpc/grpc-dart

protobuf lib in example still at v2

kronthto opened this issue · 1 comments

Hi:

it looks like this was bumped to 3 recently and the docs also state to use the latest compiler version.

This is still at v2. The included generated files work, but once you regenerate them the latest version syntax is included and it errors:

$ protoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto
$ dart bin/server.dart
lib/src/generated/helloworld.pbgrpc.dart:22:6: Error: Couldn't find constructor 'GrpcServiceName'.
@$pb.GrpcServiceName('helloworld.Greeter')
     ^^^^^^^^^^^^^^^

// import 'package:protobuf/protobuf.dart' as $pb;

@mosuem
This issue has been resolved. thank you.