Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I can't reproduce this with the current github code. For example, here's a 
proto:

  enum MyEnum {
    FOO = 0;
    BAR = 1;
  }

  message OtherMessage {
    required MyEnum required_field = 0;
    optional MyEnum optional_field = 1;
  }

That builds absolutely fine for me. Could you test that for yourself, and if it 
works, provide a similar but *failing* example?

Original comment by jonathan.skeet on 1 Apr 2011 at 4:52

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
The generated .cs with the problem is attached,i used your example,but had to 
change 
required MyEnum required_field = 0; to required MyEnum required_field = 1;
and 
optional MyEnum optional_field = 1; to optional MyEnum optional_field = 2;
since i got an error:
test.proto:7:37: Field numbers must be positive integers.

Original comment by [email protected] on 1 Apr 2011 at 5:00

Attachments:

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Doh - looks like I did as well. Not sure why I changed that *after* cutting and 
pasting. Naughty Jon - sorry.

Okay, well it looks like this was probably one of the things that was fixed in 
the big changes a while ago.

Are you able to pull from github and build that way? I'd rather not do a 
release *right* now as there are still problems with running the benchmarking 
under the new build system... but I'll get onto fixing that.

Original comment by jonathan.skeet on 1 Apr 2011 at 5:09

from protobuf-csharp-port.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024

Original comment by [email protected] on 27 May 2011 at 1:00

  • Changed state: Fixed

from protobuf-csharp-port.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.