Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL needs a compilation wrapper #11545

som-snytt opened this issue May 24, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 24, 2019

You'd like to say, $intp.setCompilationWrapper("reflect.runtime.universe.reify").

A :show or :print command to turn that on and off would work. :show off.

REPL needs a compilation wrapper to complement the execution wrapper, which wraps the wrong text. After writing a macro that forwards to reify, I realized it was capturing the wrong thing:

scala> $intp.setExecutionWrapper("q.r")

scala> 42
  "res2: Int = ".$plus(ScalaRunTime.replStringOf($read.res2, 1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.