Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scalapbc command line tool does not generate gRPC scala code. #91

Closed
ohardison opened this issue Mar 10, 2016 · 1 comment
Closed

scalapbc command line tool does not generate gRPC scala code. #91

ohardison opened this issue Mar 10, 2016 · 1 comment

Comments

@ohardison
Copy link

~/gradle-scalapb-test> cat src/main/proto/grpc.proto
syntax = "proto3";

option java_multiple_files = true;
option java_package = "io.grpc.examples.helloworld";
option java_outer_classname = "HelloWorldProto";
option objc_class_prefix = "HLW";

package helloworld;

// The greeting service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}
~/gradle-scalapb-test> /tmp/tmp/scalapbc-0.5.21/bin/scalapbc src/main/proto/grpc.proto --scala_out=flat_package,java_conversions:/tmp 
protoc-jar: protoc version: 300, detected platform: linux/amd64
protoc-jar: executing: [/tmp/protoc32136993427196798.exe, --plugin=protoc-gen-scala=/tmp/protocbridge1876931173376663101, src/main/proto/grpc.proto, --scala_out=flat_package,java_conversions:/tmp]
~/gradle-scalapb-test> find /tmp/io
/tmp/io
/tmp/io/grpc
/tmp/io/grpc/examples
/tmp/io/grpc/examples/helloworld
/tmp/io/grpc/examples/helloworld/HelloReply.scala
/tmp/io/grpc/examples/helloworld/HelloRequest.scala
/tmp/io/grpc/examples/helloworld/SrcMainProtoGrpcProto.scala

What is missing that you get with the sbt plugin is GreeterGrpc.scala.

@ohardison
Copy link
Author

Got it - use the correct options...
~/gradle-scalapb-test> /tmp/tmp/scalapbc-0.5.21/bin/scalapbc src/main/proto/grpc.proto --scala_out=flat_package,grpc,java_conversions:/tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant