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

Use daemon thread instead of non-daemon thread which prevent JVM from exiting #606

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

lwronski
Copy link
Contributor

Fixes #540.
Based on comment #540 (comment)

@alexarchambault alexarchambault changed the title Use deamon thread instead of non-deamon thread which prevent JVM from exiting Use daemon thread instead of non-daemon thread which prevent JVM from exiting Nov 17, 2022
Copy link
Collaborator

@valencik valencik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing locally with a munitJVM/publishLocal and then the following in test.sc:

//> using scala "2.13"
//> using lib "org.scalameta::munit::1.0.0-M6+60-d2685fa2-SNAPSHOT"
class SanityTest extends munit.FunSuite {
  test("sanity") {
    assert(2 + 2 == 4)
  }
}

Ran with scala-cli test test.sc we see things properly terminate. Previous versions hang.

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 this pull request may close these issues.

Non-termination regression with scala-cli starting with 1.0.0-M2
3 participants