Skip to content

AbstractMethodError using Scala 2 http4s library/withDottyCompat #10827

Closed
@rparree

Description

@rparree

Hi,

I'm trying to create a small service using http4s (0.21) on Scala 3, using withDottyCompat
Using 3.0.0-M3 (same results with M2), sbt-dotty@0.5.0

A very much stripped down version is available here: https://github.com/rparree/http4s-dotty

When running i'm getting the following error:

Receiver class LivenessRoutes$$anon$1 does not define or inherit an implementation of the resolved method 'abstract void org$http4s$dsl$impl$Methods$_setter_$GET_$eq(org.http4s.Method$Semantics$Safe)' of interface org.http4s.dsl.impl.Methods.

See full stacktrace here: https://gist.github.com/rparree/e19d5ff29c885160c17c18ac5bdc017b#file-rte

After posting this on the http4s gitter channel, @rossabaker suggested that this could potentially be a withDottyCompat related problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions