scala icon indicating copy to clipboard operation
scala copied to clipboard

Upgrade version of scala in build.sbt to 2.12.10

Open metterklume opened this issue 4 years ago • 7 comments

On Mac Os running 'sbt test' gave me a [error] java.io.IOError: java.lang.RuntimeException: /packages cannot be represented as URI

Suggested Fix In build.sbt:

scalaVersion := "2.12.8" --> scalaVersion := "2.12.10"

System details

sbt --version
sbt version in this project: 1.3.8
sbt script version: 1.3.8
java --version
  java 12 2019-03-19
  Java(TM) SE Runtime Environment (build 12+33)
  Java HotSpot(TM) 64-Bit Server VM (build 12+33, mixed mode, sharing)

metterklume avatar Apr 22 '20 05:04 metterklume

I wanted to give this issue a shoutout, because I had the exact same issue and the suggested fix worked wonders for me. Thanks !

anne-turpaud avatar Jul 03 '20 19:07 anne-turpaud

@metterklume @anne-turpaud Would one of you be interested in doing a PR to update the exercises to the suggested sbt version?

ErikSchierboom avatar Jul 07 '20 07:07 ErikSchierboom

I can't promise I'll do it extremely quickly because I've just discovered these Scala exercices, but yes, I can have a look into it.

anne-turpaud avatar Jul 08 '20 19:07 anne-turpaud

@anne-turpaud No rush! Take your time :)

ErikSchierboom avatar Jul 09 '20 11:07 ErikSchierboom

Does this only refer to the exercises themselves? If so, scala version in all tests seem to have been updated in commit 582a3f5752595ea087b8d84abfe70a69918ff06b to 2.13.6

If so, this can be closed. There is however in this project itself, a reference to scala 2.12.8: ./project/Build.scala

Should this be updated too?

LarsWestergren avatar Aug 18 '22 10:08 LarsWestergren

These files look unused since they are so out of date? https://github.com/exercism/scala/tree/main/project

I can update them if required, otherwise I will add PR to delete them, then this issue can be closed since the scala version for exercises have been updated to 2.13.6 (and a Scala 3 update is on the way).

LarsWestergren avatar Sep 02 '22 15:09 LarsWestergren

I think those files are no longer used. They used to be used in CI, but that now runs https://github.com/exercism/scala/blob/main/bin/test in which I don't see any reference to that project. Feel free to send a PR to remove those files.

ErikSchierboom avatar Sep 28 '22 09:09 ErikSchierboom