Scala 3 ScriptEngine not supporting bindings or attributes
#14.262 aperta il 12 gen 2022
Metriche repository
- Star
- (6247 star)
- Metriche merge PR
- (Merge medio 18g 14h) (133 PR mergiate in 30 g)
Descrizione
This hello world example works fine in Scala 2: https://github.com/invesdwin/invesdwin-context/tree/master/invesdwin-context-parent/invesdwin-context-scala/src/test/java/de/invesdwin/context/scala/tests/hello Which internally uses this wrapper for the ScriptEngine: https://github.com/invesdwin/invesdwin-context/blob/master/invesdwin-context-parent/invesdwin-context-scala/src/main/java/de/invesdwin/context/scala/pool/WrappedScalaScriptEngine.java
But it seems to fail in Scala3 because its ScriptEngine does not use the bindings or context attributes: https://github.com/lampepfl/dotty/blob/8e1054e9fcc91cba8fc3910051377b4a019b9589/compiler/src/dotty/tools/repl/ScriptEngine.scala