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

Instructions how to run client and server #12

Open
chibby0ne opened this issue Dec 16, 2020 · 3 comments
Open

Instructions how to run client and server #12

chibby0ne opened this issue Dec 16, 2020 · 3 comments

Comments

@chibby0ne
Copy link

First of all, thank you for creating this repo. It has really helped me understand the usage of scala in grpc applications.

Nevertheless I've been struggling to get the HelloWorldServer and the HelloWorldClient to run. Although admittedly I'm a scala newbie, I think this repository would benefit with a description on how to do that, just like it is done in the case of the grpc-java examples: https://github.com/grpc/grpc-java/tree/master/examples#-to-build-the-examples.

I also tried running them in the interceptor branch but couldn't.

I tried running:

  • sbt run
  • sbt run io.grpc.examples.helloworld.HelloWorldServer
  • sbt "run-main io.grpc.examples.helloworld.HelloWorldServer"

Even though show compiledMainClasses finds these: io.grpc.examples.helloworld.HelloWorldServer and io.grpc.examples.helloworld.HelloWorldClient

Could you shed some light? Thanks in advance!

@chibby0ne chibby0ne changed the title Instructions how to runs client and server Instructions how to run client and server Dec 16, 2020
@SethTisue
Copy link

SethTisue commented Feb 4, 2022

there are two subprojects, grpcJavaSample and grpcScalaSample

so I would expect grpcScalaSample/run to work

but when I try it I get a ton of compilation errors, starting with:

[error] /Users/tisue/grpc-scala-sample/grpc-scala/src/main/scala/io/grpc/examples/helloworld/HelloWorldClient.scala:37:36: object helloworld is not a member of package io.grpc.examples.helloworld
[error] import io.grpc.examples.helloworld.helloworld.{HelloRequest, GreeterGrpc}
[error]                                    ^

@SethTisue
Copy link

in build.sbt I see:

in the build.sbt I see some stuff like

  val os = if (scala.util.Properties.isMac){
    "osx-x86_64"

I'm on an M1 Mac (not x86), so perhaps that's the problem.

@SethTisue
Copy link

@xuwei-k I see you committed to this repo 5 days ago, after a long hiatus. Are you working on bringing it up to date?

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

2 participants