-
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
Incorrect code generated with type names #28
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling a single proto file that imports another, the referenced types don't seem to be correct:
sub.proto
:main.proto
:Compiled with:
protoc --elm_out=. main.proto sub.proto
Produces incorrect code:
Compiler error for reference:
It seems as though the package name is incorrectly being added to the name of the type.
As a workaround, if I comment out the package name from both proto files it seems to generate correct code.
I don't know if this falls into the unsupported 'Packages' listing in the main README.md, since it didn't list details as to why it wasn't supported.
Interestingly, this is very similar to a bug I just reported in the other Elm protoc project: eriktim/protoc-gen-elm#7
The text was updated successfully, but these errors were encountered: