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

(UndefinedFunctionError) function ProtobufGenerate.Plugins.Enum.template/1 is undefined or private #4

Closed
kevinkl3 opened this issue Jun 6, 2024 · 1 comment

Comments

@kevinkl3
Copy link

kevinkl3 commented Jun 6, 2024

Hi, I get the following error while trying to generate the code for a couple of proto files.

mix protobuf.generate --generate-descriptors=true --output-path ./lib/ --plugin=ProtobufGenerate.Plugins.GRPC --include-path ./proto/ ./proto/*.proto

** (UndefinedFunctionError) function ProtobufGenerate.Plugins.Enum.template/1 is undefined or private. Did you mean:

      * template/0

    (protobuf_generate 0.1.2) ProtobufGenerate.Plugins.Enum.template(%{})
    (protobuf_generate 0.1.2) lib/protobuf_generate/code_gen.ex:51: ProtobufGenerate.CodeGen.eval/2
    (protobuf_generate 0.1.2) lib/protobuf_generate/code_gen.ex:33: anonymous fn/3 in ProtobufGenerate.CodeGen.eval/2
    (elixir 1.14.5) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
    (protobuf_generate 0.1.2) lib/protobuf_generate/code_gen.ex:33: ProtobufGenerate.CodeGen.eval/2
    (protobuf_generate 0.1.2) lib/protobuf_generate/code_gen.ex:33: anonymous fn/3 in ProtobufGenerate.CodeGen.eval/2
    (elixir 1.14.5) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
    (protobuf_generate 0.1.2) lib/protobuf_generate/code_gen.ex:33: ProtobufGenerate.CodeGen.eval/2

Environment:

Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:32:32] [ds:32:32:10] [async-threads:1] [jit:ns]
IEx 1.14.5 (compiled with Erlang/OTP 24)
Mix 1.14.5 (compiled with Erlang/OTP 24)
Elixir 1.14.5 (compiled with Erlang/OTP 24)

I am new to elixir/otp so I am not sure if I am doing anything wrong.

Thanks in advance

@drowzy
Copy link
Owner

drowzy commented Sep 18, 2024

Fixed in #7

@drowzy drowzy closed this as completed Sep 18, 2024
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