{"action":"opened","issue":{"url":"https://api.github.com/repos/sbt/sbt/issues/1850","labels_url":"https://api.github.com/repos/sbt/sbt/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt/issues/1850/comments","events_url":"https://api.github.com/repos/sbt/sbt/issues/1850/events","html_url":"https://github.com/sbt/sbt/issues/1850","id":57112485,"number":1850,"title":"Pasting to REPL does not always work","user":{"login":"mslinn","id":485818,"avatar_url":"https://avatars.githubusercontent.com/u/485818?v=3","gravatar_id":"","url":"https://api.github.com/users/mslinn","html_url":"https://github.com/mslinn","followers_url":"https://api.github.com/users/mslinn/followers","following_url":"https://api.github.com/users/mslinn/following{/other_user}","gists_url":"https://api.github.com/users/mslinn/gists{/gist_id}","starred_url":"https://api.github.com/users/mslinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mslinn/subscriptions","organizations_url":"https://api.github.com/users/mslinn/orgs","repos_url":"https://api.github.com/users/mslinn/repos","events_url":"https://api.github.com/users/mslinn/events{/privacy}","received_events_url":"https://api.github.com/users/mslinn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-10T00:29:11Z","updated_at":"2015-02-10T00:29:11Z","closed_at":null,"body":"Here is a transcript that does not produce output when replayed:\r\n````\r\nscala> var i = 1\r\ni: Int = 1\r\n\r\nscala> while (i<=3) {\r\n   println(s\"Hello, world #$i\")\r\n   i = i + 1\r\n }\r\nHello, world #1\r\nHello, world #2\r\nHello, world #3\r\n````\r\nThis is what is produced:\r\n````\r\nscala> scala> var i = 1\r\n\r\n// Detected repl transcript paste: ctrl-D to finish.\r\n\r\ni: Int = 1\r\n\r\nscala> while (i<=3) {\r\n   println(s\"Hello, world #$i\")\r\n   i = i + 1\r\n }\r\n// Replaying 2 commands from transcript.\r\n\r\nscala> var i = 1\r\ni: Int = 1\r\n\r\nscala> while (i<=3) {\r\n\r\n\r\nscala> scala> var i = 1\r\n\r\n// Detected repl transcript paste: ctrl-D to finish.\r\n\r\ni: Int = 1\r\n\r\nscala> while (i<=3) {\r\n   println(s\"Hello, world #$i\")\r\n   i = i + 1\r\n }\r\nHello, world #1\r\nHello, world #2\r\nHello, world #3\r\n// Replaying 2 commands from transcript.\r\n\r\nscala> var i = 1\r\ni: Int = 1\r\n\r\nscala> while (i<=3) {\r\n\r\n\r\nscala>\r\n````\r\nThe desired output is not generated when the transcript is replayed:\r\n````\r\nHello, world #1\r\nHello, world #2\r\nHello, world #3\r\n````"}}