sbt/main
eureka928 673789111b
[2.x] fix: Fix consoleProject for Scala 3
**Problem**
`consoleProject` does not work with Scala 3 because the compiler bridge
does not implement REPL binding injection (scala/scala3#5069).
The bindings `currentState`, `extracted`, and `cpHelpers` are never
injected into the REPL session, causing `Not found` errors.

**Solution**
Work around the missing binding support by storing the three runtime
objects in a static holder (`ConsoleProjectBindings`) before launching
the REPL, and generating `val` definitions via `initialCommands` that
read from the holder. The original `bindings` are still passed to
`Console` to preserve Scala 2 backward compatibility.

Fixes sbt/sbt#7722
2026-04-13 05:28:50 +02:00
..
src [2.x] fix: Fix consoleProject for Scala 3 2026-04-13 05:28:50 +02:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00