Menu

only can use "Compiled Proto" as Type of Definition to Browse and Edit

Webber
2016-06-28
2016-07-02
  • Webber

    Webber - 2016-06-28

    Thank you for your great work.

    But, I experienced an issue.
    When trying build in sample pb, I only can use "Compiled Proto" as Type of Definition to Browse and Edit
    When I use .proto format, the editor show message below.
    You must enter a valid Proto File:
    Cannot run program "protoc": CreateProcess error=2

    What I do for this issue? or how could I conver my .proto to .protocomp?

    My OS is W7x64
    i tried both ProtocolBuffer_Editor_0.97l_Installer_pb_3.0beta.exe and ProtocolBuffer_Editor_0.92_pb_2.5.0a.jar

     
    • Webber

      Webber - 2016-06-28

      i found out that
      for .proto,
      i need steps below
      1 unzip protoc-2.6.1-win32.zip for protoc.exe
      2 config protoc command to the path of protoc.exe

      for compiled proto
      i need command below
      protoc.exe --proto_path="D:\pb" --descriptor_set_out=msg.protocomp D:\pb\msg.proto

       
  • Bruce Martin

    Bruce Martin - 2016-07-02

    Thats correct; The protobufeditor needs to have protoc installed. The protoc.exe can either be on the path or you can update the command by:

    • Edit primary menu
    • Edit Options option at the bottom of the menu
    • Select the ProtoBuf tab
    • Enter the exact protoc command
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.