Skip to content

Compilation failed with Scala 2.12.5 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mkotsur opened this issue Apr 17, 2018 · 2 comments
Closed

Compilation failed with Scala 2.12.5 #16

mkotsur opened this issue Apr 17, 2018 · 2 comments

Comments

@mkotsur
Copy link
Owner

mkotsur commented Apr 17, 2018

[info] Compiling 4 Scala sources to /Users/kotsurm/Projects/aws-lambda-scala/target/scala-2.12/classes ...
[error] /Users/kotsurm/Projects/aws-lambda-scala/src/main/scala/io/github/mkotsur/aws/handler/Lambda.scala:65:51: could not find implicit value for parameter gen: shapeless.Generic[io.github.mkotsur.aws.proxy.ProxyRequest[T]]
[error]   def GenericProxyRequestOf[T] = shapeless.Generic[ProxyRequest[T]]
[error]                                                   ^
[error] /Users/kotsurm/Projects/aws-lambda-scala/src/main/scala/io/github/mkotsur/aws/handler/Lambda.scala:75:30: could not find implicit value for parameter gen: shapeless.Generic[io.github.mkotsur.aws.proxy.ProxyRequest[String]]
[error]         val reqList = Generic[ProxyRequest[String]].to(decodedRequestString)
[error]                              ^
[error] /Users/kotsurm/Projects/aws-lambda-scala/src/main/scala/io/github/mkotsur/aws/handler/Lambda.scala:76:16: could not find implicit value for parameter gen: shapeless.Generic[io.github.mkotsur.aws.proxy.ProxyRequest[T]]
[error]         Generic[ProxyRequest[T]].from((bodyOption :: reqList.reverse.tail).reverse)
[error]                ^
[error] /Users/kotsurm/Projects/aws-lambda-scala/src/main/scala/io/github/mkotsur/aws/handler/Lambda.scala:79:46: could not find implicit value for parameter canDecode: io.github.mkotsur.aws.handler.CanDecode[io.github.mkotsur.aws.proxy.ProxyRequest[String]]
[error]       for (decodedRequest$String <- CanDecode[ProxyRequest[String]].readStream(is);
[error]                                              ^
[error] /Users/kotsurm/Projects/aws-lambda-scala/src/main/scala/io/github/mkotsur/aws/handler/Lambda.scala:104:29: could not find implicit value for parameter encoder: io.circe.Encoder[io.github.mkotsur.aws.proxy.ProxyResponse[String]]
[error]       output.write(response.asJson.noSpaces.getBytes)
[error]                             ^
[error] 5 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 6 s, completed 17 Apr 2018, 13:57:02

Also impossible to use the library with projects on 2.12.5...

@mkotsur mkotsur changed the title Compilation failed with Scala 2.15 Compilation failed with Scala 2.12.5 Apr 17, 2018
@thunderkid
Copy link

"Also impossible to use the library with projects on 2.15..."
(I assume you mean 2.12.5 as your title change indicates.)

I'm not quite sure what this means. I'm not compiling your source, but I'm using the library in a 2.12.5 project. My build.sbt contains this and seems to work fine:

scalaVersion := "2.12.5"
libraryDependencies ++= Seq(
    ....
    "io.github.mkotsur" %% "aws-lambda-scala" % "0.0.13",
}

@mkotsur
Copy link
Owner Author

mkotsur commented May 5, 2018

@thunderkid hm... that's strange. I definitely get compilation errors when using it in a 2.12.5 project. But the good news are, that in 2.12.6 it the library and the project with the library both compile fine. 2.12.5 is known for this severe issue. They are not necessarily correlated, but anyway closing since everything works fine now :-)

@mkotsur mkotsur closed this as completed May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants