You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Using the 'services' keyword as a field name causes ProtoGen to generate
bugged C# code.
2. Reproducible using the attached protobuf definitions file (test.proto)
3. Also attached are the .protobin file generated using Google's protoc
compiler and the resulting C# code produced by ProtoGen.
What is the expected output? What do you see instead?
Expect the C# code generated by ProtoGen to compile correctly. Instead, get the
following error:
Test.cs(94,50): error CS0103: The name `ServicesList' does not exist in the
current context
What version of the product are you using? On what operating system?
Ubuntu Linux, ProtoGen version 2.4.1.521, protoc 3.0.0-alpha-1, Mono C# compiler
Please provide any additional information below.
Manually renaming the ServicesList variable in the generated C# code to
Service_List fixes the problem.
Original issue reported on code.google.com by alexjcol...@gmail.com on 16 Apr 2015 at 10:31
Please note that this project will be going away (I need to update the wiki).
See https://github.com/jskeet/protobuf-csharp-port which is a clone of the code
here, but new code will be in the main Google protobuf repo.
Original comment by jonsk...@google.com on 16 Apr 2015 at 10:34
Original issue reported on code.google.com by
alexjcol...@gmail.com
on 16 Apr 2015 at 10:31Attachments:
The text was updated successfully, but these errors were encountered: