alexarchambault on 1.6.3
alexarchambault on master
lihaoyi on gh-pages
alexarchambault on master
Partly revert 84d48542 (#923) … (compare)
Any idea why I can't
@import $ivy.`org.typelevel::cats-core:2.1.1`, cats._, cats.data._, cats.implicits._ import $ivy.$ , cats._, cats.data._, cats.implicits._ @ val x = List(Some(1)) x: List[Some[Int]] = List(Some(1)) @ x.seq sequence sequence_ @ x.sequence cmd2.sc:1: Could not find an instance of Applicative for G val res2 = x.sequence ^ Compilation Failed
Some, only for
cs launch ammonite --scala-version 2.13.4
Ok. I think I want to try processing library for drawing.
For some reason I can't get ammonite to import it though.
seems to search maven for
instead of the address where things seem to actually exist:
Can I get this right somehow?
Or does this just mean my scala version is not supported.
::adds the scala version prefix, for java libraries you need to use
%%was used on this artifact instead of
Appit uses a crusty old feature called DelayedInit to capture the body of the object and create a
mainmethod out of it
$in their classname (I think in bytecode they're just classes with all static fields)
sudo, so I thought I would check.
> amm Loading... Welcome to the Ammonite Repl 2.3.8-124-2da846d2 (Scala 2.13.6 Java 11.0.10) @ import scala.util.Random error while loading NotGiven, Missing dependency 'Add -Ytasty-reader to scalac options to parse the TASTy in <path>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.0.0/scala3-library_3-3.0.0.jar(scala/util/NotGiven.class)', required by <path>/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.0.0/scala3-library_3-3.0.0.jar(scala/util/NotGiven.class)…
I'm having issues getting
ammonite-compiler-interface for scala 2.13.6. It should be available according to https://mvnrepository.com/artifact/com.lihaoyi/ammonite-compiler-interface but I keep getting
Error downloading com.lihaoyi:ammonite-compiler-interface_2.13:2.3.8-124-2da846d2 from SBT.
Also going to https://repo1.maven.org/maven2/com/lihaoyi/ammonite-compiler-interface_2.13/2.3.8-124-2da846d2/ammonite-compiler-interface_2.13-2.3.8-124-2da846d2.pom returns
404 Not Found.
Am I doing anything obviously wrong? Thank you :raised_hands:
The compiler interface has to be versioned for the full Scala version - you need to depend on it like this:
"com.lihaoyi" % "ammonite-compiler-interface" % "2.3.8-124-2da846d2" cross CrossVersion.full
As a rule of thumb - everything that fathomably interfaces with the compiler has to be compiled against exact version of it.
Scala compiler API has no guarantees even between patch versions, so things like ammonite (and parts of Almond) need to be cross-published against full scala version :) Just like many compiler plugins.