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

Stack traces don't get propagated through runSyncUnsafe() #1720

Open
jpanda109 opened this issue May 26, 2023 · 0 comments
Open

Stack traces don't get propagated through runSyncUnsafe() #1720

jpanda109 opened this issue May 26, 2023 · 0 comments

Comments

@jpanda109
Copy link

Example:

  def foo(): Task[Unit] = {
    Task.eval {
      throw new IllegalStateException()
    }
  }

  def bar(): Task[Unit] = {
    Task.eval {
      foo().runSyncUnsafe()
    }
  }

  def baz(): Unit = {
    bar().runSyncUnsafe()
  }

  // This only shows the stack trace up to `foo` rather than also showing `bar` and `baz`
  baz()

Is there any way to get the stack trace to be appended through the entire stack?

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

No branches or pull requests

1 participant