Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-9791

Repl pick up where you left off after crash

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.12.0-M3
    • Fix Version/s: Backlog
    • Component/s: Repl / Interpreter
    • Labels:

      Description

      Probably folks have seen the crash message in REPL:

      That entry seems to have slain the compiler.  Shall I replay
      your session? I can re-run each line except the last one.
      [y/n]
      Abandoning crashed session.
      

      I had a version once that asked [y/n/q] to quit directly, and save keystrokes. But now I wonder, is it better just to say, Type :replay to re-run each line except the last. I have a separate idea for :replay -all -Xprint:typer to also replay the last line.
      That means if they don't replay, then reset before continuing.

      Retronym: What we really ought to do is start a new compiler with the compilation products of the crashed compiler on the classpath. Should be no need to replay.
      The tab completion works in this way every time you hit TAB.

      Also Retronym: We could even have a mode of the REPL that uses a new Global for every line.

        Attachments

          Activity

            People

            • Assignee:
              apm A. P. Marki
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: