DerrickBrayanClayton / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

CS code generation fails #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please include an e-mail address if this might need a dialogue!
==============

What steps will reproduce the problem?
1. Create proto file with RPC call that contains more than one parameter 
separated by a comma
2. Run C:\Program Files\protobuf-net\protobuf-net-VS9>protogen -
i:RemoteProduct.proto -
o:RemoteProduct.cs -p:clientProxy -p:lightFramework -p:observable

What is the expected output? What do you see instead?
Expected: working CS file

Instead:
RemoteProduct.proto:147:60: Expected ")".
RemoteProduct.proto:149:59: Expected ")".
RemoteProduct.proto:153:48: Expected ")".
RemoteProduct.proto:154:36: Expected ")".
RemoteProduct.proto:158:42: Expected ")".
An error occurred parsing RemoteProduct.proto

What version of the product are you using? On what operating system?
The latest one available on Win2K3

Please provide any additional information below.

Original issue reported on code.google.com by esos...@gmail.com on 8 Sep 2009 at 8:18

GoogleCodeExporter commented 8 years ago
That is simply the way that .proto (the DSL created by google) works. To send 
multiple 
values, create a message that encapsulates the different options ("FooRequest", 
for 
example), and send that. Likewise, this can be used when returning values. Note 
that 
protobuf-net includes a separate RPC stack that can shim multiple arguments for 
compatibility with WCF, but this is unrelated to .proto files.

Original comment by marc.gravell on 11 Sep 2009 at 5:54