-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enum definitions and ruby constants clashing #326
Comments
@onethirtyfive Hi, thanks for the issue. We should get this documented, but you can set the |
Yep sorry for not looking deeper into the code! Thanks!
|
No worries, we need to add documentation for this! Closing this out. |
I just wanted to add that this change doesn't appear to be in the released version of 3.6.9, although it is definitely in Thought I'd let you know! |
CC @film42 about releases |
Sorry for the delay, I've been AFK for the last week. There is a pre-release that has already been published to rubygems: https://rubygems.org/gems/protobuf/versions/3.7.0.pre1. If you set your Gemfile to be greater than |
Hello!
I'm writing a parser for Dota 2 game replay files, which are just game data over time stored as protobufs.
I get my definitions from upstream reverse engineering projects, and their contents don't agree with ruby constantizing rules. Consequently, I have to preprocess them often. Here's the issue for me:
Protobuf is using
const_set
to define these constants, so the lib barfs with uncapitalized constants. It seems like it might be good to have the code generator be more tolerant of bad input. Maybe:Right now, I'm having to
sed
all the files to handle all this bad input:If you have a preference for how to deal with this, I'd be happy to whip up a PR. :)
Thanks!
The text was updated successfully, but these errors were encountered: