-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Get java.util.concurrent.CancellationException with org.creativescala::doodle:0.24.0 #176
Comments
Thanks. I'll look into it. |
Alright, I think I've fixed it. I'm not going to close this report immediately, as there might still be issues. I'll make a release soon to allow further testing. |
v0.25.0 will be out as soon as CI has finished. |
:) Fixed for the two examples I have just tried. |
There is probably other issues (although not sure at 100%), for example with this animated script is frozen : // ---------------------
//> using scala "3.5.1"
//> using dep "org.creativescala::doodle:0.25.0"
// ---------------------
import cats.effect.IO
import doodle.core.*
import doodle.syntax.*
import doodle.syntax.all.*
import doodle.interact.*
import doodle.interact.syntax.*
import doodle.interact.syntax.all.*
import doodle.java2d.*
import doodle.java2d.effect.*
import fs2.Stream
import cats.effect.unsafe.implicits.global
import scala.concurrent.duration.{FiniteDuration, MILLISECONDS}
import cats.instances.all._
import cats.syntax.all._
val frame: Frame = Frame(
size = Size.fixedSize(600, 600),
title = "Photos",
center = Center.atOrigin,
background = Some(Color.midnightBlue),
redraw = Redraw.clearToBackground
)
val ball =
-100.0
.upTo(100.0)
.map(x =>
Picture
.circle(30)
.fillColor(Color.chartreuse)
.strokeWidth(3.0)
.at(x, 0.0)
)
.forSteps(100)
.repeatForever
ball
.animate(frame)
scala.io.StdIn.readLine("Enter to exit...") // required when run as a script |
The thread dump :
|
The following script executed using scala-cli 1.4.0 :
works well with doodle:0.23.0 but crashes with doodle:0.24.0. (I can briefly see the window during less than 1 second)
The text was updated successfully, but these errors were encountered: