bug icon indicating copy to clipboard operation
bug copied to clipboard

print tab indentation in REPL

Open som-snytt opened this issue 3 years ago • 2 comments

Reproduction steps

scala 2.13.7> 42
val res0: Int = 42

scala 2.13.7> 42 // print
                  42 // : Int(42)

Problem

scala 2.13.6> 42
val res0: Int = 42

scala 2.13.6> 42 // print
42 // : Int(42)
scala 2.13.6> 42 // print

Nicest of all would be for it to line up with the REPL input text.

Noticed on the forum

som-snytt avatar Mar 06 '22 22:03 som-snytt

effort might better be spent on a different design, maybe a :print command? magic tab completions aren't discoverable and are especially undiscoverable since we only have exactly one of them

note that the Scala 3 REPL doesn't have the feature at all, at present anyway

SethTisue avatar Jan 22 '24 01:01 SethTisue

Alternatively, reprint the current line with comment replaced with desired output!

Also alternatively, have fancy arrow graphics for this and for multi-errors on multi-line input!

This issue is really about nailing down REPL output.

som-snytt avatar Jan 22 '24 01:01 som-snytt