DanSimon / scalene

Fast, lightweight Scala Http framework
MIT License
53 stars 3 forks source link

Compilation error when using sbt 1.4.2 #10

Open mfirry opened 3 years ago

mfirry commented 3 years ago

Hi, not sure what's going on but "just" changing I get project/build.properties to sbt.version=1.4.2

[info] compiling 21 Scala sources to /Users/olajuwon/forks/scalene/scalene-routing/target/scala-2.13/classes ...
[error] /Users/olajuwon/forks/scalene/scalene-routing/src/main/scala/PathExtractor.scala:100:79: type mismatch;
[error]   CellParser[RequestContext, AOut]|CellComponent[RequestContext, ?]
[error]  Note: implicit method pathExtendRouteBuilder is not applicable here because it comes after the application point and it lacks an explicit result type
[error]     def apply(a: A, b: B): Out = RouteBuilder.cons(RouteBuilder.one(CellParser(asA(a))), CellParser(asB(b)))
[error]                                                                               ^
[error] /Users/olajuwon/forks/scalene/scalene-routing/src/main/scala/PathExtractor.scala:100:100: type mismatch;
[error]   CellParser[RequestContext, BOut]|CellComponent[RequestContext, ?]
[error]  Note: implicit method pathExtendRouteBuilder is not applicable here because it comes after the application point and it lacks an explicit result type
[error]     def apply(a: A, b: B): Out = RouteBuilder.cons(RouteBuilder.one(CellParser(asA(a))), CellParser(asB(b)))
[error]                                                                                                    ^
[error] /Users/olajuwon/forks/scalene/scalene-routing/src/main/scala/PathExtractor.scala:108:72: type mismatch;
[error]   RouteBuilder[L]|RouteBuilder[?]
[error]  Note: implicit method pathExtendRouteBuilder is not applicable here because it comes after the application point and it lacks an explicit result type
[error]     def apply(builder: RouteBuilder[L], a: A): Out = RouteBuilder.cons(builder, CellParser(asA(a)))
[error]                                                                        ^
[error] /Users/olajuwon/forks/scalene/scalene-routing/src/main/scala/PathExtractor.scala:108:91: type mismatch;
[error]   CellParser[RequestContext, AOut]|CellComponent[RequestContext, ?]
[error]  Note: implicit method pathExtendRouteBuilder is not applicable here because it comes after the application point and it lacks an explicit result type
[error]     def apply(builder: RouteBuilder[L], a: A): Out = RouteBuilder.cons(builder, CellParser(asA(a)))
[error]                                                                                           ^
[error] four errors found
[error] (scalene-routing / Compile / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Nov 11, 2020, 1:01:15 PM

Have you tried?

DanSimon commented 3 years ago

Haven't tried yet but I'll give it a look.

mfirry commented 3 years ago

Did you find the time to try this?