Scala 3 ScriptEngine not supporting bindings or attributes
#14.262 geöffnet am 12. Jan. 2022
Repository-Metriken
- Stars
- (6.247 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 18T 14h) (133 gemergte PRs in 30 T)
Beschreibung
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