!EHpcRyNJdgGtwsEwtl:matrix.org

Scala CLI

411 Members
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!) scala-cli.virtuslab.org2 Servers

Load older messages


SenderMessageTime
20 Sep 2022
@_discord_632729825647525922:t2bot.ioekrich#7695 Ok, I tried uninstalling the brew version and installing via coursier but still the same error - is it my setup or is there no arm version? 20:33:51
@_discord_632729825647525922:t2bot.ioekrich#7695 I can dig deeper as needed. 20:40:44
21 Sep 2022
@_discord_724527419519926282:t2bot.ioŁukasz Wroński#8497 Nemoo Do you able do install java 17? and add to JAVA_HOME? it should help, because in this case scala-cli doesn't have to download java 17 which is required by fork of bloop. 07:00:08
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377unknown.png
Download unknown.png
20:40:02
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 So I tried to setup a scala-cli project while having no internet access - I think it screwed up something with file caches, because even after killing all java processes, when I try to connect to BSP it just hangs forever at 20:40:03
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 where does ScalaCLI/NewBloop hold its state so I can kill it? 20:40:13
@_discord_583167330566275072:t2bot.ioSethTisue#7418 🤷‍♂️, ~/Library/Caches is just MacOS-ese for ~/.cache, I wouldn't fault them for following OS guidelines 20:45:24
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 ffs, after removing coursier cache it's redownloading a JDK 17 - while I'm running a Graal 17. 20:45:35
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 aight, nuking rm -rf ~/Library/Caches/Coursier/ helped! 20:45:49
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 oh lawd, diagnostics! I see them again! So happy to see compiler errors. 20:47:42
22 Sep 2022
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 https://youforgotapercentagesignoracolon.com/#scala-cli 08:45:37
@tobiasroeser:matrix.orgTobias Roeser Is here someone who can initial a new release of using_directives library? 09:07:09
@tobiasroeser:matrix.orgTobias Roeser * Is here someone who can initiate a new release of using_directives library? 09:07:35
@_discord_392428121342869534:t2bot.iotgodzik#4885 Done, sorry about it! The job is running https://github.com/VirtusLab/using_directives/actions/runs/3106621736 15:21:01
@tobiasroeser:matrix.orgTobias Roeser
In reply to @_discord_392428121342869534:t2bot.io
Done, sorry about it! The job is running https://github.com/VirtusLab/using_directives/actions/runs/3106621736
Thank you! 🎉
15:23:24
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 Does anyone ever get this on Github actions when using scala-cli?

Error: Exception in thread "main" java.util.concurrent.TimeoutException: Future timed out after [30 seconds]
    at scala.concurrent.impl.Promise$DefaultPromise.tryAwait0(Promise.scala:248)
    at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:261)
    at scala.concurrent.Await$.$anonfun$result$1(package.scala:201)
    at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:62)
    at scala.concurrent.Await$.result(package.scala:124)
    at scala.build.blooprifle.internal.Operations$.timeout(Operations.scala:499)
    at scala.build.blooprifle.internal.Operations$.about(Operations.scala:477)


It's quite intermittent
19:02:07
23 Sep 2022
@_discord_622176027023769640:t2bot.ioalexarchambault velvetbaldmime Do you know what version of Scala CLI this is supposed to be running? 09:45:55
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 Checked the logs - this was using a bootstrap script, which seems to have downloaded 0.1.14 09:47:11
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 For now I switched to the dedicated github action setup which seems to be more stable, but I wouldn't trust that given I've only had like 5 builds 09:48:29
@_discord_734849617820254331:t2bot.iovelvetbaldmime#6377 does the action do anything special? 09:48:34
@_discord_583167330566275072:t2bot.ioSethTisue#7418 not sure — I think not, but I'd suggest you try searching the GitHub repo, and if nothing comes up, open a ticket 14:43:50
@_discord_637247864162222091:t2bot.ioromanowski#4599 We have a experimental target directives: https://scala-cli.virtuslab.org/docs/reference/directives#scala-version-1
Those directives directives specify if given source should be use, so if you put using target.scala 3 it will be used only for Scala 3, not for Scala 2
18:54:01
25 Sep 2022
@_discord_77574388035100672:t2bot.iozetashift#2536 Can one use dependency directives in scala worksheets? 10:37:17
@_discord_637247864162222091:t2bot.ioromanowski#4599 Scala CLI recognises .worksheet.sc as standard Scala Scripts so when run with scala-cli worksheets would behave as scala scripts. Using directives are not seen in Metals. Not sure how hard would it be to support it, Tomasz Godzik maybe you can shed some light here? 13:29:34
@_discord_392428121342869534:t2bot.iotgodzik#4885 Worksheets will be always recognised only as worksheets, they are special cased. I don't think there is a need to use scalacli for them. You can use ammonite dependency Imports currently. Using directives could be supported in mdoc If needed. 13:36:17
@_discord_77574388035100672:t2bot.iozetashift#2536 Is there an example of the ammonite dependency imports? Something like this?
import $ivy.{
  `com.typesafe.play::play:2.5.0`,
  `com.typesafe.play::play-netty-server:2.5.0`,
  `com.lihaoyi::requests:0.2.0`
}
16:00:21
@_discord_392428121342869534:t2bot.iotgodzik#4885 There should be some examples on the ammonite website and on metals one 16:09:55
@_discord_392428121342869534:t2bot.iotgodzik#4885 https://scalameta.org/metals/docs/editors/vscode#using-dependencies-in-worksheets 16:11:15
@_discord_77574388035100672:t2bot.iozetashift#2536 ah I see, I had the code snippet from the ammonite website 😛 16:57:39
27 Sep 2022
@_discord_622176027023769640:t2bot.ioalexarchambault That looks like a bug, feel free to open an issue about it. 21:33:02

There are no newer messages yet.


Back to Room List