Closed zhengcan closed 1 year ago
Thanks for letting us know, strange that it didn't surface in the integration tests.
This is not specific to Java as I ran into the same issue with Play Scala - it looks like Play codegen is not covered by any integration test in this repo actually.
There are tests in play-grpc
though, and I was confused to see the play-grpc
0.5.0 green, but I realized versions were not aligned across repos even though the 0.5.0 tags came almost at the same time.
Is the plan to move the Play twirl templates over there somehow?
Yeah, there is some work in progress on that. @dwijnand I think you know the status best, maybe you could fill in something here?
It wasn't in progress originally as I thought we were trying to move away from having "Play-specific" things.
However more recently we've decided to unburden the akka-grpc repo of Play things.
Unfortunately there's some very long lived PRs that are blocking that progress, see https://github.com/akka/akka-grpc/issues/517.
@johanandren Do you understand the status of this issue? Can we close it here?
Play gRPC is no longer a part of this repo, so I think we can close.
Akka gRPC Version: 0.5.0
The PR #502 and #511 introduce some conflict changes between
akka-grpc/codegen/src/main/twirl/templates/PlayJavaServer/Router.scala.txt
andakka-grpc/runtime/src/main/scala/akka/grpc/javadsl/GrpcExceptionHandler.scala
. These conflict changes haven't been fixed in 0.5.0, which make akka-grpc generate invalid code for play-java.For example, in
Router.scala.txt
:GrpcExceptionHandler.defaultMapper()
will returnFunction<ActorSystem, Function<Throwable, Status>>
instead ofFunction<Throwable, Status>
super(..)
must be first line in ctor