protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Warning type and the struct are automatically generated

Open ken-kost opened this issue 9 months ago • 1 comments

I'm getting a lot of warnings:

warning: Since v0.10.0 of the :protobuf library, the t/0 type and the struct are automatically generated for modules that call "use Protobuf" if they are Protobuf enums or messages. Remove your explicit definition of both of these or regenerate the files with the latest version of the protoc-gen-elixir plugin. This warning will become an error in version 0.11.0+ of the :protobuf library.

But I'm using latest protobuf version 0.14.1 and I removed all @type and defstruct and the new generated version did not have them which is good.

Also, shouldn't this warning be error since it's 1.14?

I can't figure out from where the warnings are coming from. 🤔

ken-kost avatar Apr 14 '25 12:04 ken-kost

Hi, @ken-kost.

I'm not able to reproduce it myself. If you could provide an example application where this happens, I'd be happy to try to solve it.

v0idpwn avatar Apr 18 '25 13:04 v0idpwn