-
I have a proto file with this import: I run this grpc code from directory /api/proto/cards/ and get an error: How can I point to the annotations.proto file so that the import works? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I can't recreate the behavior. I have made up the following example.
proto < cards.proto
GRPC grpcb.in:9000/hello.HelloService/sayHello
{
"greeting": "world"
}
import "test/hello.proto";
syntax = "proto2";
package hello;
service HelloService {
rpc SayHello(HelloRequest) returns (HelloResponse);
}
message HelloRequest {
optional string greeting = 1;
}
message HelloResponse {
required string reply = 1;
} Is the annotations.proto present in the right place? Is the relative path to it correct? Can you possibly adjust my example so that it doesn't work. Maybe you must provide |
Beta Was this translation helpful? Give feedback.
I can't recreate the behavior. I have made up the following example.
prototest.zip
Is the annotations.proto present in the right place? Is the relative path to it correct? Can you possibly adjust my example so that it doesn't work. Maybe you must provide
includeDirs
to proto import.