Replies: 2 comments 4 replies
-
Related: #1686. The difference to |
Beta Was this translation helpful? Give feedback.
-
We had a discussion about this in the Scala CLI team and we decided against it. One concern is consistency. Taking the current working directory (or It's easier to decide to do things this way in tools like SBT, where the project structure is required to be defined in a configuration file. While Scala CLI does have a convention for the TL;DR it seems like we want to stick to requiring the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
scala-cli compile
, I mustscala-cli compile .
scala-cli run
, I mustscala-scli run .
I can't tell you how many times I have typed these commands, and it errors, and I sigh and supply the
.
. Countless times.Ironically, it's more ceremony than sbt. I can
sbt compile
orsbt run
🔥This came up today in discussion with @Kordyjan, @sjrd, and @dwijnand.
Paweł thought the current behavior might be for consistency with
scala-cli repl
, akascala-cli
because it defaults to opening a REPL, akascala
because it will soon be the default runner.Is it too surprising that if I just
scala
, it would compile files in the current directory and put them in the classpath?Even if we decide that's okay, do we need a way to definitely only just open a REPL?
scala-cli repl --standalone
or something...?Beta Was this translation helpful? Give feedback.
All reactions