-
Notifications
You must be signed in to change notification settings - Fork 5
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
Generated code is invalid for well-known types #70
Comments
This seems like a bug, I think we may have prefixed with root which ends up wrong. 🤔 |
I have a fix for this in #72, but unfortunately more things are broken for well-known types 😕 For example this generated code is broken: _root_.org.http4s.grpc.codecs.ScalaPb.codecForGenerated(_root_.scala.Long) |
Actually it's not clear to me at all how to use a |
ScalaPB seems to be unwrapping into |
Yes, to be clear, I'm saying we should still keep |
Just confirming, #72 isn't fully ready to merge due to the issue mentioned here, right? |
Ugh, yeah. ScalaPB does it so presumably we should be able to copy/adapt their approach. |
do we need a lookup table for these well-known types ? |
Based on my experiments, if a message contains a well-known type, http4s-grpc produces invalid code. For example, this protobuf:
produces the following code:
Notice how the return type has the invalid type prefix
_root_._root_
.ScalaPB seems to handle these alright. Will some additional sbt configuration make this work or is this a bug?
The text was updated successfully, but these errors were encountered: