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

Failed IOs hang the runner on JS #724

Closed
kubukoz opened this issue Jan 24, 2024 · 0 comments · Fixed by #725
Closed

Failed IOs hang the runner on JS #724

kubukoz opened this issue Jan 24, 2024 · 0 comments · Fixed by #725

Comments

@kubukoz
Copy link
Member

kubukoz commented Jan 24, 2024

package demo

import cats.effect.IO
import weaver._

object DemoTest extends SimpleIOSuite {

  test("this should fail rather than hang") {
    IO.unit *> IO.raiseError(new Throwable("woop woop")).as(success)
  }
}

This appears to hang on JS on both Scala 2.13.12 and 3.3.1.

Other versions involved:

  • sbt: 1.9.8
  • scala.js: 1.15.0
  • weaver: 0.8.3

I will confirm whether this is a Weaver problem specifically or a regression in the other releases.

Full repro, with crossproject for comparison against the JVM: https://github.com/kubukoz/demos/tree/repro-js-fail-hang

Update: this seems to have started between 0.7.15 and 0.8.0. Diff: v0.6.15...v0.8.0

Update 2: bisected down to #563.

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 a pull request may close this issue.

1 participant