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 #863

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

REPL needs a compilation wrapper #863

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

Comments

@som-snytt
Copy link

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
Expr[String]({
  $read.$iw;
  "res2: Int = ".$plus(ScalaRunTime.replStringOf($read.res2, 1000))
})
@SethTisue SethTisue transferred this issue from scala/bug Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant