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 transcript paste can't be saved #9214

scabug opened this Issue Mar 11, 2015 · 1 comment


None yet
2 participants
Copy link

scabug commented Mar 11, 2015

If a SO answer is in REPL transcript form, people want to be able to copy/paste it to their REPL and save the session.

That's not currently possible, although the transcript can be edited from history (but they could have pasted directly to their editor at that point).

A session is not exactly valid code, so it would be nice if save command had an option to fix things up a bit.

scala> scala> import PartialFunction._

// Detected repl transcript paste: ctrl-D to finish.

import PartialFunction._

scala> // more transcript and ctrl-D
// Replaying 3 commands from transcript.

scala> import PartialFunction._
import PartialFunction._

scala> // more

scala> :save useful.script
No replay commands in session

scala> "abc"
res2: String = abc

scala> .length
res3: Int = 3

scala> :save useful.script

The script from the last commands looks like:


This comment has been minimized.

Copy link

scabug commented Mar 11, 2015

Imported From:
Reporter: @som-snytt
Affected Versions: 2.11.6

@SethTisue SethTisue added this to the Backlog milestone Mar 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment