alexarchambault on 1.6.3
alexarchambault on master
1.6.3 (compare)
lihaoyi on gh-pages
5ad9ae5538f23cab92ccd8c6b1617d8… (compare)
alexarchambault on master
Partly revert 84d48542 (#923) … (compare)
browse
@ browse("hello")
cmd0.sc:1: could not find implicit value for parameter pp: pprint.PPrinter
val res0 = browse("hello")
^
Compilation Failed
.ammonite
dir)
-P
option.
scala -version
I get Scala code runner version 3.1.2 -- Copyright 2002-2022, LAMP/EPFLbut if I run
ammit says it's using
Scala 2.13.8 Java 18`. Why is that? Perhaps my assumptions are wrong, but I thought Ammonite would use the scala version I had available?
amm
binary for every (supported) Scala version per release: https://github.com/com-lihaoyi/Ammonite/releases
amm
binary needs is a (recent enough) Java VM in PATH
cs launch scalac -- -version
and it prints out Scala compiler version 3.1.2 -- Copyright 2002-2022, LAMP/EPFL
but if I try to do cs launch amm -- --version
I get Cannot find app amm in channels io.get-coursier:apps
.
amm
application probably from https://github.com/coursier/apps/blob/master/apps/resources/ammonite.json
cs launch com.lihaoyi:ammonite_3.1.0:2.5.3 -M ammonite.Main
foo.worksheet.sc
and I want to import bar.worksheet.sc
into scope, is there a special syntax I am missing? import $file.bar.worksheet.sc
does not seem to work because it tries to look inside a non-existant directory of ./bar/
Thank you in advance for your help! (edit, could not seem to get the backquotes to escape properly here, but hopefully you understand what I mean)