ruby-protobuf
ruby-protobuf copied to clipboard
package name cannot be message
In the .proto file, the package name cannot be 'message', otherwise, it throws parsing error
racc/parser.rb:347:in on_error': (Racc::ParseError) parse error on value :message ("message") from proto.y:194:in
scan'
from racc/parser.rb:152:in _racc_yyparse_c' from racc/parser.rb:152:in
yyparse'
from proto.y:175:in parse' from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/lib/protobuf/compiler/compiler.rb:23:in
block in create_message'
from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/lib/protobuf/compiler/compiler.rb:22:in open' from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/lib/protobuf/compiler/compiler.rb:22:in
create_message'
from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/lib/protobuf/compiler/compiler.rb:13:in compile' from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/lib/protobuf/compiler/compiler.rb:9:in
compile'
from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/gems/ruby_protobuf-0.4.11/bin/rprotoc:40:in <top (required)>' from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/bin/rprotoc:19:in
load'
from /Users/hzr/.rvm/gems/ruby-1.9.2-p180@goldfish/bin/rprotoc:19:in `