protobuf-ruby / beefcake

A sane Google Protocol Buffers library for Ruby
MIT License
276 stars 46 forks source link

The code generator doesn't properly handle some field names #19

Open dshaffer opened 12 years ago

dshaffer commented 12 years ago

if you create a message with certain names for fields the code generator fails.

message Msg
{
    optional int32  value = 1;
    optional int32 time = 2;
    optional int32 xtime = 3;
}

I don't know if there are any other names that cause problems.

bmizerany commented 12 years ago

Interesting. Can you help me narrow down where the problem is?

dshaffer commented 12 years ago

I'm afraid I don't have any time to work on this, but it seems that the field names may be conflicting with names used inside the code generator itself.

bmizerany commented 12 years ago

OK. I too don't have much time for this. If someone else comes across this problem, I hope they can make a patch.

On Wed, Feb 22, 2012 at 12:21 PM, dshaffer reply@reply.github.com wrote:

I'm afraid I don't have any time to work on this, but it seems that the field names may be conflicting with names used inside the code generator itself.


Reply to this email directly or view it on GitHub: https://github.com/bmizerany/beefcake/issues/19#issuecomment-4120751