com-lihaoyi / Ammonite

Scala Scripting
http://ammonite.io
MIT License
2.61k stars 372 forks source link

Add support for Scala 3.4.3 & 3.5.0 #1533

Closed Gedochao closed 1 month ago

Gedochao commented 2 months ago
beyondpie commented 2 months ago

@Gedochao When I try ammonite under scala 3.5.0, I got the error. In my build.sbt file, I use

libraryDependencies += "com.lihaoyi" % "ammonite_3.4.2" % "3.0.0-M2-15-9bed9700"

It works at least during compiling.

But

libraryDependencies += "com.lihaoyi" %% "ammonite" % "3.0.0-M2-15-9bed9700" cross CrossVersion.full

is not workable for scala 3.5.0.

Then I start a ammonite REPL, and it has the error report below:

Welcome to the Ammonite Repl 3.0.0-M2-15-9bed9700 (Scala 3.4.2 Java 22.0.1-internal) @ error while loading scala, TASTy file scala/NamedTupleDecomposition.tasty could not be read, failing with: Forward incompatible TASTy file has version 28.5, produced by Scala 3.5.0-bin-nonbootstrapped, expected stable TASTy from 28.0 to 28.4. To read this TASTy file, use a Scala 3.5.0 compiler or newer. Please refer to the documentation for information on TASTy versioning: https://docs.scala-lang.org/scala3/reference/language-versions/binary-compatibility.html

Is this related with the issue you list here?

Thanks! Songpeng