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

Updates for fs2 v3 #132

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

rehanone
Copy link
Contributor

  • Updated scala-2.13 from 2.13.1 to 2.13.5

Dependencies Updates

  • Updated fs2 dependency from 2.5.0 to 3.0.2
  • Updated scala-collection-compat dependency from 2.3.2 to 2.4.3
  • Updated commons-net dependency from 3.7.2 to 3.8.0

Plugin Updates

  • Updated sbt-scoverage plugin from 1.6.1 to 1.7.0
  • Updated sbt-sonatype plugin from 3.9.5 to 3.9.7

@rehanone rehanone changed the title *Scala Language Updates* Updates for fs2 v3 Apr 29, 2021
@@ -72,19 +70,17 @@ final private class UnsecureFtp[F[_]: ConcurrentEffect: ContextShift](
)

def execute[T](f: JFTPClient => T): F[T] =
blocker.delay[F, T](f(unsafeClient))
Sync[F].delay(f(unsafeClient))
Copy link
Owner

Choose a reason for hiding this comment

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

Sync[F].delay is not equivalent to blocker.delay

please use Sync[F].blocking()

Copy link
Owner

@regis-leray regis-leray left a comment

Choose a reason for hiding this comment

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

great thank you :)

@rehanone
Copy link
Contributor Author

@regis-leray , Fixed the Sync[F].blocking. Their is one readFile test failing which I am not sure why. Any insight on that would be much helpful. Thanks!

@regis-leray
Copy link
Owner

@rehanone thank you maybe a bug in fs2 ? try to open a bug
i found a reference to this problem
typelevel/fs2#1161 (comment)

[info]   java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [B ([Ljava.lang.Object; and [B are in module java.base of loader 'bootstrap')
[info]   at fs2.Chunk.toByteBuffer(Chunk.scala:327)

@regis-leray
Copy link
Owner

@rehanone please try new release https://github.com/typelevel/fs2/releases/tag/v3.0.3
it should work now.
thank you

- Updated `scala-2.13 ` from 2.13.1 to 2.13.5

*Dependencies Updates*
- Updated `fs2` dependency from 2.5.0 to 3.0.3
- Updated `scala-collection-compat` dependency from 2.3.2 to 2.4.3
- Updated `commons-net` dependency from 3.7.2 to 3.8.0

*Plugin Updates*
- Updated `sbt-scoverage` plugin from 1.6.1 to 1.7.0
- Updated `sbt-sonatype` plugin from 3.9.5 to 3.9.7
@rehanone
Copy link
Contributor Author

@regis-leray , I have updated the PR, please review. Thanks.

@regis-leray regis-leray merged commit 85a7248 into regis-leray:master May 14, 2021
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.

2 participants