What version of Scala should "sbt console" use when outside of a project?

heathermiller http://contributors.scala-lang.org/users/heathermiller
January 30

Things I personally think would be nice: (maybe no one agrees with me…)

  1. You can do sbt console or sbt repl or something and get a Scala
    REPL with some more up-to-date version of Scala
  2. If you called sbt console etc in a folder without a project, it
    would be nice if there was no target directory created in the current
    directory. (Maybe sbt could check if there’s an sbt project in the current
    directory, and if not, use some scratch target directory elsewhere that the
    user doesn’t have to bother with)

Another possiblity is that when SBT exits, if it didn’t generate anything
useful (e.g., it was only used for a repl session), it cleans up after
itself.
Not sure which is simpler to implement. Also it’s possible this could be
solved at the bash script level.

1 Like