Open openmindw opened 5 months ago
"protobuf_generate": {:hex, :protobuf_generate, "0.1.2", "45b9a9ae8606333cdea993ceaaecd799d206cdfe23348d37c06207eac76cbee6", [:mix], [{:protobuf, "~> 0.12", [hex: :protobuf, repo: "hexpm", optional: false]}], "hexpm", "55b0ff8385703317ca90e1bd30a2ece99e80ae0c73e6ebcfb374e84e57870d61"},
Try: mix protobuf.generate --output-path=./lib --include-path=./priv/protos./priv/protos/test.proto
env: Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
Mix 1.16.3 (compiled with Erlang/OTP 24)
wsl2-arch
when i use the commad: mix protobuf.generate --output-path=./lib --include-path=./priv/protos helloworld.proto it will report:
`
mix protobuf.generate --output-path=./lib --include-path=./priv/protos helloworld.proto
==> protobuf_generate Compiling 9 files (.ex) Generated protobuf_generate app ==> elixir_grpc Generated elixir_grpc app ** (FunctionClauseError) no function clause matching in ProtobufGenerate.CodeGen.generate/3
`
the helloword file code: ` syntax = "proto3";
package helloworld;
// The request message containing the user's name. message HelloRequest { string name = 1; }
// The response message containing the greeting message HelloReply { string message = 1; }
// The greeting service definition. service Greeter { // Greeting function rpc SayHello (HelloRequest) returns (HelloReply) {} }
`