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

Fix compilation of AkkaHttpImplicits for Scala 2.11 #185

Merged
merged 1 commit into from Feb 9, 2019

Conversation

Projects
None yet
2 participants
@andreaTP
Copy link
Contributor

andreaTP commented Feb 5, 2019

The code generated for AkkaHttp is not compiling for Scala 2.11 The error is like following:

target/scala-2.11/src_managed/main/com/codacy/worker/api/specification/AkkaHttpImplicits.scala:92:46: missing parameter type for expanded function ((x$8) => {
[error]   <synthetic> <artifact> val x$9 = acc(value);
[error]   x$8.$colon$colon(x$9)
[error] })
[error]       accumulator.updateAndGet(acc(value) :: _)
[error]                                              ^
[error] one error found

Here you have the trivial fix.

@blast-hardcheese
Copy link
Collaborator

blast-hardcheese left a comment

In our repos I believe we were using -Xexperimental to get around this, but this is a better fix. Thank you!

@blast-hardcheese blast-hardcheese merged commit 6b42d17 into twilio:master Feb 9, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment