ConEmu / old-issues

Old issues for ConEmu project (import is pending)
http://conemu.github.io/
0 stars 1 forks source link

paste multiple lines loses some text #956

Open ConEmu opened 9 years ago

ConEmu commented 9 years ago

From jcol...@hcgprevision.com on February 22, 2013 10:42:39

Required information! OS version: Win7 SP? x64 ConEmu version: 130220 [64] Far version (if you are using Far Manager): n/a

Pasting multiple lines is losing some characters. Steps to reproduction 1. place this text into notepad++ port = 5232 sdl = server = null

url = "http://localhost:#{port} 1a. copy text from 1 to clipboard (all lines)

  1. in conemu, start coffeescript repl (coffee from command line)
  2. shift-ins to paste copied text into coffee console

Result:

coffee> port = 5232
5232
coffee> sdl = server = null
null
coffee> ocalhost:#{port}"
Error: In repl, Parse error on line 1: Unexpected '}'
at Object.parseError (c:\Users\jcollum\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee- script\parser.js:477:11)

Third line loses first 10 characters or so, causing pasted text to fail. This doesn't happen at a regular command line, so this might have something to do with ConEmu 's relationship to the REPL utility (coffee/node). Seems to be just the Coffeescript REPL, Node REPL isn't seeing this issue.

I tracked it down a bit more and it seems that blank lines are causing the issue:

This causes error: sdl = server = null port = 5232

url = "http://localhost:#{port}

While this does not: sdl = server = null port = 5232 url = "http://localhost:#{port}

The EOL chars are CRLF.

Original issue: http://code.google.com/p/conemu-maximus5/issues/detail?id=956

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on February 22, 2013 10:52:46

Two things

  1. What is coffee?
  2. Run this cofee in standard console window (no ConEmu ), call "paste" from window menu. What happens?

ATM, I believe that your tool eat up some characters while executing commands. ConEmu send text to console same way as you typing from keyboard. But faster of course.

ConEmu commented 9 years ago

From jcol...@hcgprevision.com on February 22, 2013 10:58:34

Coffee is the Coffeescript REPL.

I tried pasting those lines into the coffee repl in both windows cmd and git-bash. No problems, it worked as intended. Also tried pasting about 20 lines into coffee in git-bash with no issues.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on February 22, 2013 11:15:14

Link & version

ConEmu commented 9 years ago

From jcol...@hcgprevision.com on February 22, 2013 12:43:54

Version is in OP. What link do you need?

ConEmu commented 9 years ago

From jcol...@hcgprevision.com on February 22, 2013 12:48:14

Oh, maybe you need this: http://coffeescript.org/#installation

ConEmu commented 9 years ago

From jcol...@hcgprevision.com on February 22, 2013 12:49:46

I'm using coffeescript v 1.4.0

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on February 22, 2013 14:23:28

Ok, I'll take a look.

jahagirdar commented 8 years ago

Having same problem while pasting large text in vim, conEmu eat's up some of the text in the middle

Maximus5 commented 8 years ago

First of all, these old issues were created for histological purpose only.

https://conemu.github.io/en/MicrosoftBugs.html#BrokenText

ConEmu does not eat anything. But Windows has bugs.