-
Notifications
You must be signed in to change notification settings - Fork 28
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
name collisions #8
Comments
The compiler errors:
|
This is an issue for me as well. I created a simplified proto file that exhibits this problem:
All of the files to reproduce this bug are uploaded here: Running elm-reactor and navigating to http://localhost:8000/src/Bad.elm reproduces the problem. Error output
Workaround: Changing the proto file to the following fixes the problem
|
Thanks for the comments! I think the correct thing to do here would be to rename the generated types to contain the parent message name. I will give it a try and post updates here. Thanks for your patience! |
Here's some protobuf for which the elm protobuf generator results in elm code that fails to compile. For one, the
MATCH
enum value and thematch
oneof field collide. And after fixing that, I get collisions between for example theChange
message type alias and thechange
oneof field.I can get around this for now by renaming things (and I realize the README checklist lists oneof as unsupported), but seems worth addressing at some point? And I hope a "real-world" test case might be good to have around anyway.
The text was updated successfully, but these errors were encountered: