Skip to content
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

Scala 2.11 cross-compilation & Slick upgrade to 3.2.0 final #17

Merged
merged 2 commits into from
Apr 18, 2017

Conversation

julien-lafont
Copy link
Contributor

Hello,

This PR aims to use your lib with Slick 3.2.0 with Scala 2.11.x. I've just enable the crossScalaCompilation in your build, and it seems to work (tested with + publishLocal).

A new release with this scala 2.11 compatibility would be highly appreciated :)

@codecov-io
Copy link

codecov-io commented Apr 17, 2017

Codecov Report

Merging #17 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #17   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files           1        1           
  Lines          16       16           
=======================================
  Hits           15       15           
  Misses          1        1
Impacted Files Coverage Δ
src/main/scala/slickless/HListShape.scala 93.75% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0c7e44...fda610e. Read the comment docs.

@@ -7,7 +7,7 @@ import slick.ast.MappedScalaType
import slick.lifted.{ Shape, ShapeLevel, FlatShapeLevel, MappedProductShape, MappedProjection }

final class HListShape[L <: ShapeLevel, M <: HList, U <: HList : ClassTag, P <: HList]
(val shapes: Seq[Shape[_, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] {
(val shapes: Seq[Shape[_<: ShapeLevel, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change required for 2.11, or... something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's related to slick version bump (to 3.2.0), the first commit.
The cross compilation seems transparent

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK: it was a change in Slick between M2 and final:

HListShape.scala:10: overriding value shapes in class ProductNodeShape of type Seq[slick.lifted.Shape[_ <: slick.lifted.ShapeLevel, _, _, _]];
[error]  value shapes has incompatible type
[error]     (val shapes: Seq[Shape[_, _, _, _]]) extends MappedProductShape[L, HList, M, U, P] {
[error]          ^
[error] one error found

@d6y d6y self-assigned this Apr 18, 2017
@d6y
Copy link
Contributor

d6y commented Apr 18, 2017

Thanks @StudioDev - I've left one question on a change, but great! Thank you... we'll get a build out as soon as we can and I'll post an update here.

Copy link
Contributor

@d6y d6y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks!

@davegurnell
Copy link
Contributor

This looks great! Thanks!

@d6y d6y merged commit 6ab41bb into underscoreio:master Apr 18, 2017
@d6y
Copy link
Contributor

d6y commented Apr 18, 2017

That's being pushed out to Maven central. Give it a couple of hours and it should be there as version 0.3.2

https://github.com/underscoreio/slickless/releases/tag/0.3.2

@julien-lafont
Copy link
Contributor Author

Perfect, thanks :)

@julien-lafont julien-lafont deleted the crosscompilation-2.11 branch April 18, 2017 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants