Protocol Buffers (protobuf) are a way of encoding structured data in an efficient yet extensible format.
There's plugin for Netbeans, but I cannot find one for Eclipse. Does it exist? If yes, please, share the link.
Thanks.
Protocol Buffers (protobuf) are a way of encoding structured data in an efficient yet extensible format.
There's plugin for Netbeans, but I cannot find one for Eclipse. Does it exist? If yes, please, share the link.
Thanks.
I recommend using Google's "Protocol Buffers Development Tools". It is a plugin for Eclipse that features automagic regeneration and error checking with quick fixes, among other things. It's available here: https://github.com/google/protobuf-dt/blob/master/README.md .
It does not seem to be approved by Eclipse yet.
And the EMF project uses protobuf, but not as a plugin.
So for now, no there do not seem to be any Eclipse protobuf plugin.
I have tried protobuf-dt, that was the only plugin [on marketplace]. But it had some issues, so I created (November 2016) one that would fit protobuf and gRPC usage, that we have (generation inside maven build without waiting for issues to be solved)
Welcome minimalist editor for .proto files. Just 25KB, works in any Eclipse (latest protobuf-dt 3.2 requires Neon) Sources and notes are at https://github.com/Enide/polyglot-maven-editors#minimalist-proto-files-editor-for-protocol-buffers-and-grpc
It is already on Marketplace https://marketplace.eclipse.org/content/minimalist-proto-files-editor-protocol-buffers-and-grpc
Using m2eclipse and directions from Issue 81/Comment 6 for a a protobuf maven plugin, it works pretty well.
The only trick that doesn't work exactly is the "generated-sources/protobuf" will be created following the instructions is not automatically added to source folder in eclipse. Do this manually and you're g2g.
Related Stackoverflow Issues: