I recently updated the plugins suggested by IntelliJ and it started to throw error for my existing untouched code. However when I try to start the Vert.x server it just starts fine. In below code I am getting response from the eventbus
finalFuture.compose(result => {
val myresponse = /* my logic to pull data from context */
event.response().putHeader("Content-Type", "application/json")
.setStatusMessage("OK")
.setStatusCode(200)
.end(mapper.writeValueAsString(myresponse))
})
where finalFuture is Future[Message[List[MyClass]]]
The error is started to throw is below:
Type mismatch, expected Handler[Message[List[MyClass]]], actual: (Nothing)=>Unit