Closed aesteve closed 1 year ago
To fix the compilation issues: https://github.com/aesteve/vertx-scala-g8-reproducer/compare/feat/try-fix-compile
(I'll try to submit a PR here)
+HttpVerticleSpec is broken (because of changes to the HttpClient futurised API), giving it a look.
EDIT: can't find any way to make it work properly with HttpClient.getFuture, maybe I'm missing something obvious. My expectation would be for this:
httpClient
.getFuture(...)
.flatMap(_.bodyFuture())
to work.
Unfortunately, it fails with an "IllegalStateException: body has already been written". I think it already happened to me in Java with Vert.x 4.0.0-milestone4, so I'm guessing the new futurised APIs of this lib are broken, or at least not fully usable at the moment. I've switched the test to using the web client, and it works perfectly.
Other topics:
Questions
Fresh g8 installation => compilation fails
Version
Latest g8 template version, just running
sbt test
.Context
Do you have a reproducer?
Here's the generated project for reference: https://github.com/aesteve/vertx-scala-g8-reproducer (if I try to makes fixes, I'll do this on other branches, to let the main branch reflect the project as it's been generated)
Steps to reproduce
See above.
Extra