!EHpcRyNJdgGtwsEwtl:matrix.org

Scala CLI

415 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.org4 Servers

Load older messages


SenderMessageTime
20 Sep 2023
@_discord_295204838936150018:t2bot.iodaenyth certainly sounds like a bug 14:49:12
@_discord_228528632052711436:t2bot.ioj_mie6 I'll pop my reporting had on later today then! 14:51:12
21 Sep 2023
@_discord_632195619988963348:t2bot.ioChris Kipp how are you triggering the test? Make sure to not do scala-cli test List.test.scala since it won't take into account List.scala. Instead you'll want to do scala-cli test . 06:38:24
@_discord_583167330566275072:t2bot.iosethtisue pleased to see this landing soon https://github.com/VirtusLab/scala-cli/pull/2404 07:54:07
22 Sep 2023
@_discord_319488722892619778:t2bot.iodesavitsky changed their display name from desavitsky to desavitsky#0.11:54:35
@_discord_319488722892619778:t2bot.iodesavitsky changed their display name from desavitsky#0 to desavitsky.11:54:42
24 Sep 2023
@_discord_305362010374406144:t2bot.iomarouan28#0 changed their display name from marouan28 to marouan28#0.19:58:08
25 Sep 2023
@_discord_644849095785054218:t2bot.iobjornregnell
$ sdk install scala 3.3.1
We periodically need to update the local cache. Please run:

  $ sdk update


Downloading: scala 3.3.1

In progress...

######################################################################### 100,0%

Installing: scala 3.3.1
Done installing!

Do you want scala 3.3.1 to be set as default? (Y/n): Y

Setting scala 3.3.1 as default.
$ scala
Welcome to Scala 3.3.1 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli repl
Welcome to Scala 3.3.0 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli version
Scala CLI version: 1.0.4
Scala version (default): 3.3.0

Both scala and scala-cli was installed using sdk.
BUT scala-cli does not see the new scala...
Should I report this?
09:56:44
@_discord_644849095785054218:t2bot.iobjornregnell *
$ sdk install scala 3.3.1
Downloading: scala 3.3.1

In progress...

######################################################################### 100,0%

Installing: scala 3.3.1
Done installing!

Do you want scala 3.3.1 to be set as default? (Y/n): Y

Setting scala 3.3.1 as default.
$ scala
Welcome to Scala 3.3.1 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli repl
Welcome to Scala 3.3.0 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli version
Scala CLI version: 1.0.4
Scala version (default): 3.3.0

Both scala and scala-cli was installed using sdk.
BUT scala-cli does not see the new scala...
Should I report this?
09:57:05
@_discord_644849095785054218:t2bot.iobjornregnell *
$ sdk install scala 3.3.1
Downloading: scala 3.3.1

In progress...

######################################################################### 100,0%

Installing: scala 3.3.1
Done installing!

Do you want scala 3.3.1 to be set as default? (Y/n): Y

Setting scala 3.3.1 as default.
$ scala
Welcome to Scala 3.3.1 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli repl
Welcome to Scala 3.3.0 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli version
Scala CLI version: 1.0.4
Scala version (default): 3.3.0

Both scala and scala-cli was installed using sdkman.
BUT scala-cli does not see the new scala...
Should I report this?
09:57:32
@_discord_644849095785054218:t2bot.iobjornregnell *
$ sdk install scala 3.3.1
Downloading: scala 3.3.1

In progress...

######################################################################### 100,0%

Installing: scala 3.3.1
Done installing!

Do you want scala 3.3.1 to be set as default? (Y/n): Y

Setting scala 3.3.1 as default.
$ scala
Welcome to Scala 3.3.1 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli repl
Welcome to Scala 3.3.0 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli version
Scala CLI version: 1.0.4
Scala version (default): 3.3.0

Both scala and scala-cli was installed using sdkman.
BUT scala-cli does not see the new scala...
Should I report this?
09:57:44
@_discord_644849095785054218:t2bot.iobjornregnell *
$ sdk install scala 3.3.1
Downloading: scala 3.3.1

In progress...

######################################################################### 100,0%

Installing: scala 3.3.1
Done installing!

Do you want scala 3.3.1 to be set as default? (Y/n): Y

Setting scala 3.3.1 as default.
$ scala
Welcome to Scala 3.3.1 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli repl
Welcome to Scala 3.3.0 (17.0.6, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                
scala> 

$ scala-cli version
Scala CLI version: 1.0.4
Scala version (default): 3.3.0

Both scala and scala-cli was installed using sdkman.
BUT scala-cli does not see the new scala...
(It does not help to start a new terminal)
Should I report this?
09:58:22
@_discord_583167330566275072:t2bot.iosethtisue it’s https://github.com/VirtusLab/scala-cli/issues/2394 . sdkman isn’t relevant 10:10:49
@_discord_583167330566275072:t2bot.iosethtisue this will start to make a bit more sense when scala-cli replaces scala 10:12:27
@_discord_583167330566275072:t2bot.iosethtisue note the ticket I linked was closed but there isn’t a release yet 10:12:39
26 Sep 2023
@_discord_777499506895093780:t2bot.iombesida Hi, if I have several function annotated with @main in scala-cli project(functions are located in seperate files each), how can I build a runnable binary(either native image or just a runnable uber jar) in such a way that during build phase I set which main class/function to use? So when a binary is ready I run it without any additional args 10:41:09
@_discord_777499506895093780:t2bot.iombesida hm, how to set a main-class in case I use @main annotaion on a function? because I get an erro when I speciy a function name as main class arg
Error: Main entry point class 'myMainFunc' neither found on the classpath nor on the modulepath.
10:57:04
@_discord_777499506895093780:t2bot.iombesida by the way, AFAIK scala-cli uses coursier jvm index to resolve jvms. I looked at that index and found this
"21.0.0": "tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.0.0/graalvm-ce-java8-linux-amd64-21.0.0.tar.gz" (this is for graalvm https://github.com/coursier/jvm-index/blob/7b90842469b64cb1f46e9fa2f31dd5eb515f4bd7/index.json#L3052)
Is this jvm21 compatible or this is just java 8 and 21 is a version of graalvm itself?
11:00:09
@_discord_644849095785054218:t2bot.iobjornregnellDownload message.txt14:35:52
@_discord_644849095785054218:t2bot.iobjornregnell is this a known bug? can't find it 14:35:53
@_discord_644849095785054218:t2bot.iobjornregnell * scala-cli crashes when starting repl in a dir with only .java.
java.lang.RuntimeException: Expected Scala artifacts to be fetched
But if a .scala-file is added it works.
is this a known bug? can't find it - should I report?
14:37:44
@_discord_644849095785054218:t2bot.iobjornregnellDownload message.txt14:43:00
@_discord_644849095785054218:t2bot.iobjornregnell * scala-cli crashes when starting repl in a dir with only .java.
java.lang.RuntimeException: Expected Scala artifacts to be fetched
But if a .scala-file is added it works.
is this a known bug? can't find any similar issue - should I report?
14:43:57
@_discord_644849095785054218:t2bot.iobjornregnell * scala-cli crashes when starting repl in a dir with only .java.
java.lang.RuntimeException: Expected Scala artifacts to be fetched
But if a .scala-file is added it works.
is this a known bug? can't find any similar issue - I plan to report it if nobody objects?
14:44:22
@_discord_644849095785054218:t2bot.iobjornregnell * scala-cli crashes when starting repl in a dir with only .java-code.
java.lang.RuntimeException: Expected Scala artifacts to be fetched
But if a .scala-file is added it works.
is this a known bug? can't find any similar issue - I plan to report it if nobody objects?
14:44:45
@_discord_777499506895093780:t2bot.iombesida So now which version of graal in coursier index corresponds to java21? 17:48:29
27 Sep 2023
@_discord_644849095785054218:t2bot.iobjornregnell https://github.com/VirtusLab/scala-cli/issues/2430 16:49:56
29 Sep 2023
@_discord_644849095785054218:t2bot.iobjornregnell https://github.com/VirtusLab/scala-cli/pull/2431 12:36:16
@_discord_644849095785054218:t2bot.iobjornregnell (really nice when your students starts contributing to the tools they are using 🙂 says proud professor ) 12:39:03
@_discord_644849095785054218:t2bot.iobjornregnell * (really nice when students starts contributing to the tools they are using 🙂 says proud professor ) 12:39:35

There are no newer messages yet.


Back to Room ListRoom Version: 9