We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently containingOneOfName returns something like: "Some(com.google.protobuf.Descriptors$OneofDescriptor@63eb32ed)"
The reason is because the oneof descriptor is being passed in instead of the name of the oneof descriptor.
https://github.com/trueaccord/ScalaPB/blob/a6cd42a9904ce1f8f9fa010df6da43676d0eeb66/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala
Line 790
Should be: val oneof = field.containingOneOf.map(s => s"""Some("${s.getName()}")""").getOrElse("None")
The text was updated successfully, but these errors were encountered:
Merge pull request #15 from xuwei-k/Scala-2.13.0-M2
30b846f
Scala 2.13.0-M2
Successfully merging a pull request may close this issue.
Currently containingOneOfName returns something like:
"Some(com.google.protobuf.Descriptors$OneofDescriptor@63eb32ed)"
The reason is because the oneof descriptor is being passed in instead of the name of the oneof descriptor.
https://github.com/trueaccord/ScalaPB/blob/a6cd42a9904ce1f8f9fa010df6da43676d0eeb66/compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtobufGenerator.scala
Line 790
Should be:
val oneof = field.containingOneOf.map(s => s"""Some("${s.getName()}")""").getOrElse("None")
The text was updated successfully, but these errors were encountered: