php-protobuf icon indicating copy to clipboard operation
php-protobuf copied to clipboard

Error when trying to compile proto file

Open bretwalker opened this issue 13 years ago • 6 comments

I get the following error when trying to compile a proto file from Google:

Proto file missformed

bretwalker avatar Sep 13 '13 01:09 bretwalker

protoc-php.php implements most of proto file syntax but not all of it. I have plans to use one provided by Google.

hjagodzinski avatar Sep 16 '13 10:09 hjagodzinski

Hi,

I have tried to parse https://raw.githubusercontent.com/xemul/criu/master/protobuf/rpc.proto The errors caused by:

  1. Parsing semicolon or ;
  2. Parsing /* comment */ comment

awakmu avatar Jan 10 '15 10:01 awakmu

Proto file missformed here also https://github.com/egirault/googleplay-api/raw/master/googleplay.proto

BaseMax avatar Jul 06 '15 17:07 BaseMax

I also encounter the same error. Have to replace all the block comments with line comments.

tonyliu-minted avatar Jan 29 '16 23:01 tonyliu-minted

I also encounter the same question when parse openrtb.proto https://github.com/google/openrtb/blob/master/openrtb-core/src/main/protobuf/openrtb.proto

keyboard1989 avatar May 21 '16 10:05 keyboard1989

Fixed in #74.

hjagodzinski avatar Jul 18 '16 06:07 hjagodzinski