Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion io/native/src/main/scala/fs2/io/ioplatform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import scala.scalanative.unsigned._
private[fs2] trait ioplatform extends iojvmnative {

private[io] val PathStreamChunkSize =
1 // FIXME https://github.com/scala-native/scala-native/issues/4431
16

private[fs2] def fileDescriptorPoller[F[_]: LiftIO]: F[FileDescriptorPoller] =
IO.pollers
Expand Down
14 changes: 2 additions & 12 deletions io/shared/src/test/scala/fs2/io/file/FilesSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -545,18 +545,8 @@ class FilesSuite extends Fs2Suite with BaseFileSuite {
Stream
.resource(tempFile)
.flatMap { p =>
Files[IO].list(p).void.recover {
// java.io.UncheckedIOException is unavailable in Scala.js
case e: RuntimeException if isNative =>
e.getCause match {
case ex: NotDirectoryException =>
assertEquals(ex.getMessage, p.toString)
case other =>
fail(s"Unexpected error $other")
}

case ex: NotDirectoryException =>
assertEquals(ex.getMessage, p.toString)
Files[IO].list(p).void.recover { case ex: NotDirectoryException =>
assertEquals(ex.getMessage, p.toString)
}
}
.compile
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ val sbtTypelevelVersion = "0.8.1"
addSbtPlugin("org.typelevel" % "sbt-typelevel" % sbtTypelevelVersion)
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % sbtTypelevelVersion)
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.20.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.8")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.9")
addSbtPlugin("com.armanbilge" % "sbt-scala-native-config-brew-github-actions" % "0.4.0")
addSbtPlugin("io.github.sbt-doctest" % "sbt-doctest" % "0.12.2")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.8")
Expand Down