Skip to content

protobuf lib in example still at v2 #654

Open
@kronthto

Description

@kronthto

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;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions