VirtusLab / scala-cli

Scala CLI is a command-line tool to interact with the Scala language. It lets you compile, run, test, and package your Scala code (and more!)
https://scala-cli.virtuslab.org
Apache License 2.0
540 stars 128 forks source link

Bloop server hangs when using Scala-CLI with system JVM on Github ubuntu-22.04 runner #3054

Open jackkoenig opened 1 month ago

jackkoenig commented 1 month ago

Version(s)

Default version from https://github.com/VirtusLab/scala-cli-setup, currently seems to be v1.4.1.

Describe the bug

Running Scala-CLI hangs (and then times out):

Exception in thread "main" java.util.concurrent.TimeoutException: Future timed out after [30 seconds]

To Reproduce

I've created a repo with a minimal reproduction: https://github.com/jackkoenig/scala-cli-github-runners-issue

It includes an example workaround

Expected behaviour

I would expect using the system Java 17 to work. It's nice using the system version instead of downloading it because it makes my workflows using Scala CLI quite a bit faster and the caches quite a bit smaller.

Gedochao commented 1 month ago

Related, as its workaround is included in the repro: