Skip to content

Commit 0d510a4

Browse files
committed
warn when running console instead of repl
1 parent 9a79c14 commit 0d510a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project/Build.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,10 @@ object Build {
21402140
repl := (`scala3-compiler-bootstrapped` / repl).value,
21412141
).
21422142
settings(
2143+
(Compile / console) := (Compile / console).dependsOn(Def.task {
2144+
import _root_.scala.io.AnsiColor._
2145+
streams.value.log.warn(s"${BOLD}`console` uses the reference Scala version. Use `repl` instead.$RESET")
2146+
}).value,
21432147
publish / skip := true
21442148
)
21452149

0 commit comments

Comments
 (0)