scalaHome
support is bitrotted, requires workaround to use with Scala 2.13
#7477
Labels
scalaHome
support is bitrotted, requires workaround to use with Scala 2.13
#7477
(and lord knows whether it works at all with Scala 3!)
If
scalaHome
didn't already exist, I'm not sure we would add it today, as it's not hard to justpublishLocal
from one's Scala 2 checkout (a method that I expect would also work for Scala 3).I was able to get it partially working with Scala 2.13 by using a workaround, as follows.
I tried:
(the doc is silent about how to handle
scalaVersion
, but we need to get the binary version right, at least; using e.g.2.13.13-bin-SNAPSHOT"
seems to work just as well)but then
console
gives:there is no such
lib
directory in a Scala 2.13 checkout, but afterdist/mkPack
,build/pack/lib/scala-library.jar
exists, so I thought maybeln -s build/pack/lib
would fix it, and it does get past the first errorand it doesn't make
console
work:but it does make
compile
andrun
work:so, the support isn't as fully bitrotted as I'd feared!
anyway, opening this issue to document the current state, but who knows, someone might take an interest in fixing it, and/or perhaps even adding Scala 3 support
The text was updated successfully, but these errors were encountered: