Scala 2.13 support#823
Conversation
It seems this is a regression in Scala, see: #786 (comment) |
alexandru
left a comment
There was a problem hiding this comment.
Thanks a lot for taking this @guymers, lets see it merged.
I've got these suggestions for you (also see comments):
- switch to
Iterablewherever we usedTraversableorTraversableOnce - don't do the
CanBuildFromtrait - don't expose non-private stuff in the
internalpackage
For defining type aliases, we can work with a monix.execution.compat package, I'd be fine with it.
Replace `BuildFromCompat` trait with `BuildFromCompat` type def Ensure every method and type in `monix.execution.internal.compat` is `private[monix]` Replace all occurences of `Traversable` and `TraversableOnce` with `Iterable`.
Renamed `BuildFromCompat` to `BuildFrom` and move it to `monix.execution.compat`
|
@guymers the build is failing, probably due to the Mima binary compatibility checks, which need to be updated. |
Ignore mima problems
alexandru
left a comment
There was a problem hiding this comment.
This looks pretty good, just some minor nitpicks with that internal object, otherwise it seems ready for merging.
Make `compat.internal` object private instead of its members
|
We've got a failing test in |
|
Yeap, do you want me to comment out the 2.13 tests; they can be re-enabled when M6/RC1 comes out? |
|
I ignored that test only if the version is 2.13.0-M5 |
|
Cool, for now we should have the build pass. |
|
We have a:
It's probably better to run the tests locally, since Travis takes a long time to run. Use |
Ignore test that fails due to regression in 2.13.0-M5
|
|
|
Probably another regression in Scala's library. |
|
Btw @guymers, in that test we are testing if |
|
I'll fix it. |
|
Fixed in #831 |
Added a
BuildFromCompatabstraction to handleCanBuildFromon Scala <=2.12 andBuildFromon Scala >=2.13.Added types and functions for Scala <=2.12 and Scala >=2.13 to
monix.execution.internal.compatto avoid deprecation errors. Is there a better package to put this?JVM tests are failing due to MiMa. Scala 2.13 tests are failing due to the following change in behaviour:
Closes #786