You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala 2.13.3> scala>f"${0}%%%%%d"// Detected repl transcript. Paste more, or ctrl-D to finish.valres13:String=%%0// Replaying 1 commands from transcript.
scala>f"${0}%%%%%d"^error: conversions must follow a splice; use %%for literal %, %n for newline
scala 2.13.3>f"${0}%%%%%d"^error: conversions must follow a splice; use %%for literal %, %n for newline
problem
The transcript of the replayed transcript should look normal, with caret pointing at the error.
I expected a special replay> prompt, as happens with :replay command, or maybe paste>.
Error reporting has to factor in the current prompt of whatever width.
This may seem like niche behavior, but cut/pasting example snippets is job Nr 1 in REPL. Some work has gone into getting everything to line up, so by the sunk cost fallacy, we should sink more.
The text was updated successfully, but these errors were encountered:
The old way was also a bit funky, in that the echoed text doesn't align with anything before it.
scala 2.12.12> scala> f"${0}%%%%%d"
// Detected repl transcript. Paste more, or ctrl-D to finish.
// Replaying 1 commands from transcript.
scala> f"${0}%%%%%d"
<console>:12: error: conversions must follow a splice; use %% for literal %, %n for newline
f"${0}%%%%%d"
^
reproduction steps
using Scala (add version here),
problem
The transcript of the replayed transcript should look normal, with caret pointing at the error.
I expected a special
replay>
prompt, as happens with:replay
command, or maybepaste>
.Error reporting has to factor in the current prompt of whatever width.
This may seem like niche behavior, but cut/pasting example snippets is job Nr 1 in REPL. Some work has gone into getting everything to line up, so by the sunk cost fallacy, we should sink more.
The text was updated successfully, but these errors were encountered: