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

REPL: pasting transcript doesn't work (regression since 2.13.3) #12263

Open
Jasper-M opened this issue Apr 7, 2020 · 0 comments
Open

REPL: pasting transcript doesn't work (regression since 2.13.3) #12263

Jasper-M opened this issue Apr 7, 2020 · 0 comments

Comments

@Jasper-M
Copy link
Member

Jasper-M commented Apr 7, 2020

scala> scala> val a = 42
     | val a: Int = 42
     | 
     | scala> def foo(b: Int) = a + b
     | def foo(b: Int): Int

// Detected repl transcript. Paste more, or ctrl-D to finish.


// Replaying 2 commands from transcript.

scala> val a = 42
val a: Int = 42

scala> def foo(b: Int) = a + b
def foo(b: Int): Int
     | 
     | 
       def foo(b: Int): Int
                           ^
On line 2: error: '=' expected but eof found.

Let's try something else.

scala> scala> val a = 42
     | val a: Int = 42

// Detected repl transcript. Paste more, or ctrl-D to finish.


// Replaying 1 commands from transcript.

scala> val a = 42
val a: Int = 42
       val a: Int = 42
           ^
On line 2: error: a is already defined as value a

IIUC he tries to interpret every pasted line, including the results.

@SethTisue SethTisue transferred this issue from scala/scala-dev Dec 8, 2020
@SethTisue SethTisue added the repl label Dec 8, 2020
@SethTisue SethTisue added this to the Backlog milestone Dec 8, 2020
@SethTisue SethTisue changed the title JLine 3: pasting REPL transcript doesn't work REPL: pasting transcript doesn't work (regression since 2.13.3) Dec 9, 2020
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