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

print tab indentation in REPL #12545

Open
som-snytt opened this issue Mar 6, 2022 · 2 comments
Open

print tab indentation in REPL #12545

som-snytt opened this issue Mar 6, 2022 · 2 comments
Labels
Milestone

Comments

@som-snytt
Copy link

som-snytt commented Mar 6, 2022

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

@SethTisue SethTisue added the repl label Mar 6, 2022
@SethTisue SethTisue added this to the Backlog milestone Mar 6, 2022
@SethTisue
Copy link
Member

SethTisue commented Jan 22, 2024

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

@som-snytt
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants