Skip to content

In REPL history's multi-line code different from the new multi-line code's behavior #3693

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

Closed
scabug opened this issue Jul 22, 2010 · 4 comments
Assignees

Comments

@scabug
Copy link

scabug commented Jul 22, 2010

when you type a new multi-line code, the REPL will auto wrap line when the code is longer than the Console's line width.

scala> val this_is_a_very_long_var_def = """aaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccdddddddd
dddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffff
ffffffffffffffffffff"""
this_is_a_very_long_var_def: java.lang.String = aaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccdddd
dddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefff
ffffffffffffffffffffffff

but when you load this code from REPL's history, the behavior is different, when I delete some charactors cause the 4 lines to 3 lines, the code will be display error and when I continue type very long code it will not grown into next line.

scala> val this_is_a_very_long_var_def = """aaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccdddddddd
dddddddddddddddddddddddddddeeeeeeeeefffffffffffffffffffffffffffffffffff
fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"""  "
this_is_a_very_long_var_def: java.lang.String = aaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccdddd
dddddddddddddddddddddddddddddddeeeeeeeeefffffffffffffffffffffffffffffff
fffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffffffffffff
fffffffffffffffffffffffff these code I create by type them in REPL and 
delete some 'f' charactors, these will be invisible fffffff

@scabug
Copy link
Author

scabug commented Jul 22, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3693?orig=1
Reporter: Xiaopeng Shan (sxpcrazy)
Attachments:

  • 1.png (created on Jul 22, 2010 1:38:48 AM UTC, 50039 bytes)
  • 2.png (created on Jul 22, 2010 1:39:03 AM UTC, 54952 bytes)

@scabug
Copy link
Author

scabug commented Jul 22, 2010

Xiaopeng Shan (sxpcrazy) said:
the first code

@scabug
Copy link
Author

scabug commented Jul 22, 2010

Xiaopeng Shan (sxpcrazy) said:
the second code

@scabug
Copy link
Author

scabug commented Jul 22, 2010

@harrah said:
dup: #2547, #1067

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

No branches or pull requests

2 participants