Replies: 2 comments
-
Thanks for the question! It seems that the program ends and closes the window. It seems to work ok if I add This seems a correct behaviour though, since there is nothing for the program to wait for. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. It must be the UI is running in a daemon thread, the existence of which doesn't stop the JVM from exiting. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My Doodle / Java2D applications don't render their output when they are run via the Metals code lens. They run just fine using the sbt
run
command. A simple example is at https://github.com/creativescala/creative-scala-templateI might be able to debug this if I understood how Metals runs a project. Is there an explanation somewhere I can read? My initial guess is that the Java2D / Swing code runs in a daemon thread and Metals is not waiting for that thread to finish before it exits the program.
Beta Was this translation helpful? Give feedback.
All reactions