Eclipse plugin for working with protobuf

后端 未结 4 1847
囚心锁ツ
囚心锁ツ 2021-02-01 21:31

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.

相关标签:
4条回答
  • 2021-02-01 22:00

    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.

    0 讨论(0)
  • 2021-02-01 22:01

    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 .

    0 讨论(0)
  • 2021-02-01 22:08

    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

    0 讨论(0)
  • 2021-02-01 22:18

    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:

    • how-do-i-get-support-for-gpb-in-eclipse
    • integrate-protocol-buffers-into-maven2-build
    0 讨论(0)
提交回复
热议问题