I’m sorry, I haven’t made any progress with this yet. I went to the scala-3-with-dotty-compat branch, then did a git clone https://github.com/alexarchambault/Ammonite.git
from there. Then I did:
cd Ammonite
git checkout scala-3-with-dotty-compat
In the readme.md
file there (and on that web page) it says to use this command to build and run the REPL:
./mill -i -w amm[2.12.6].run
That worked, but I can’t create something like an enum
in there. This also runs, but I can’t create an enum
in it, either:
./mill -i -w amm[2.13.4].run
This does not work:
./mill -i -w amm[3.0.0-M1].run
After some poking around I found this older WIP Scala 3 support branch, which shows that you can use this command to run the Scala 3 REPL:
./mill -i 'amm.cross[3.0.0-M2].run'
I tried various incarnations of that command like these on the scala-3-with-dotty-compat
branch, but they did not work:
./mill -i 'amm.cross[3.0.0-M1].run'
./mill -i 'amm.cross[3.0.0-M2].run'
./mill -i 'amm.cross[3.0.0-M3].run'
./mill -i 'amm.cross[2.12.6].run'
./mill -i 'amm.cross[2.13.4].run'
I also just looked at the scala-3.0.0-M3 branch, but that doesn’t show any different commands.
I also read the Scala decoupling PR, but I didn’t see a solution there.
I should add that I see this in the build.sc
file:
val special3Version = "3"
val actual3Version = "3.0.0-M1"
val cross2_3Version = "2.13.4"
But I’m not sure how to use it.
I’m sorry I haven’t made any progress here, but am I anywhere near the right ballpark?