mirror of https://github.com/sbt/sbt.git
**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 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||