-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
Right-click paste drops characters #1314
Comments
I've tried with all the combinations of settings that seemed relevant in Mark/Copy and Paste. This occurs on two separate laptops running Windows 10 Pro. |
Not sure if my issue is exactly the same, but it seems quite close, maybe similar causes. ConEmu Build: 161206 stable x64 Description of Problem When copying from external source (browser, another console, text editor, etc), and then attempting to paste into ConEmu running Bash on Windows (WSL), results in malformed pastes. Some observations (all tested with right-click, ctrl+v, insert):
Maybe there is an issue transferring clipboard contents between windows / other applications and ConEmu?
|
Same thing happening to me with ConEmu 171109 preview on Windows 10 Build 17035.1000 (windows insider fast ring). |
Further troubleshooting is required from you
|
For my situation:
I will review your further troubleshooting and follow up. |
Just created test build of connector. With
It's intersting what would you see in the log after consequtive Perpahs this issue is related to gh-1311. |
Update servers are working again so I've pulled the latest preview build (171109). (I wasn't able to run the file with my existing stable build, it complained about not having I don't seem to have Incidentally, my clear screen macro works in there as well, so it seems likely the two problems are related. |
So, your problem was in the stable build. I suggested to update it previously. |
Yes, I was reporting a bug in the latest stable build (161206). The problem still occurs in the latest preview build (171109) as well. Does the fact that you've closed it mean it's fixed in an alpha build? |
You should define what an I, and I'm sure many others, read that as old meaning "older than current Maybe another system for versioning is in order if In any case, this issue relates to all the builds up through current |
Sorry, I rely on ConEmu so much for daily productivity that I'm generally not prepared to be running anything but stable builds. This may be my own misunderstanding of what is meant by "stable", but I generally take the same approach with all of my critical tools; I'm already very uncomfortable running an insider version of Windows. Also yes, I interpreted "old builds" to mean anything older than the latest stable build. I've tested this problem with both the latest stable and preview builds, and the problem occurs in both cases. Only when running bash using the file you sent (above) was the problem resolved, but I experienced a far worse problem (freeze) which prevents me from using it. Is this problem fixed in an alpha build? |
But there is the definition in the screenshot (issue template).
But that is not confirmed. Or do you mean freezes?
That's clear and that's why I recommend to use Preview builds. Personally I'm using Alpha ;)
I believe that if you take connector from the Preview and use Default task
At the moment there are no build newer than Preview. |
I see the same issues with copy/paste in the preview build, as noted in my earlier comment. If it matters, I'm using an msys bash shell that's part of mozilla-build ( https://wiki.mozilla.org/MozillaBuild ). |
If you don't use connector, it's not a ConEmu issue. |
Sorry, I'm confused. I don't use the connector executable. I'm sure this is a dumb question, but the pasting issue doesn't occur when running the exact same shell "normally". That is, it's a bat file, I double-click the bat file in windows explorer, copy/paste works correctly in the resulting shell. I start the bat file as the only command that makes up a shell setup in ConEmu, and copy/paste doesn't work correctly with the result being mangled as described in this issue. Why wouldn't that be a ConEmu issue? |
It depends on many factors. When you run some application without ConEmu, you see the conhost window and all input (Windows WM_CHAR and others) is translated into console events internally by Windows kernel (conhost) without using WinAPI. Second. When you run application in ConEmu, I have absolutely no other way to post key sequences into console input buffer than Windows console API (conhost doesn't use it). Moreover, there are many ways to read that input and it depends on the console application which API function is use. Third. In the issue there are confirmations that in some configurations there is no input loss (freezes is offtopic here). So it can't be obvious ConEmu bug, because I always use one way (defined console API) to post keypresses in the console input queue. If the console application can't read correct input, that means the queue is broken inside conhost. Fourth, when you don't use connector (why? all cygwin/msys/wsl default tasks created by ConEmu use it), I have less control over console processes. Actually, when you run WSL without connector - absolutely no control. At last. I'm not sure, comments are messed up, but seems like messed input was detected in the last insider builds of Windows 10. And the issues doesn't depends on ConEmu build (stable was released about a year ago). All these reasons make me almost sure, that this is a Microsoft bug, like this known and reported. |
In response to your question about the connector, I've tried setting it up several times but have never understood the documentation enough to know what to do with it. I found it difficult to understand what I need to download and where to put those things. I also don't understand what it does. For these reasons the minor benefit it got me (allowing me to list the directory in the tab name) didn't seem worth the couple of hours I've already sunk into trying to make it work (and often breaking my ConEmu in the process). |
No need to download anything. Connector is included in the latest builds and default tasks are created for you. |
I tried the code in https://github.com/Maximus5/ms-bug-2 on Windows 10 17039 (in my team's branch, not RS_PRERELASE) this morning with the v2 console and it doesn't repro. Is that what you wanted me to check? |
Nope. As I understand, current issue is occurred with ConEmu and bash for Windows. To check further we need the command, the versions and the steps.
|
Apologize for absent details on my part. I will test this shortly and update my comment. |
For what it's worth, I was experiencing a very similar issue when running zsh in WSL in conemu. Actually before discovering this bug I did a repair install and the problem seems to have just gone away - I'll keep a close eye on it. |
Edit: for formatting / styling clean-up Note: for all testing below I used ONLY some combination of the following 4 inputs: Alright, I've tested some more, first starting with the (most recently) requested.
Test string used for pasting (I made absolutely sure it was plain text, no special encoding, chars, etc): Exact steps done:
$ ting
$ tingg
$ tinggim
$ tinggimdustry.
$ tinggimdustry.inting
$ tinggimdustry.inting
$
$ tinggimdustry.inting
$ stry.
$ tinggimdustry.inting
$ stry.ypesetting
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ imp.
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ imp.ndustry.ingLoreetting
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ imp.ndustry.ingLoreetting
$ tingsetting textingrintingimpltypesetting ingettingiextIpsngintingimplyypesettingngttingimxtgntingLopesettinggtingimp
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ imp.ndustry.ingLoreetting
$ tingsetting textingrintingimpltypesetting ingettingiextIpsngintingimplyypesettingngttingimxtgntingLopesettinggtingimp
$ tingLorsetting textingrintingimpltypesetting ingLoreettingiextngintingimplyypesettingngLoremsttingimxtgntingpesettinggting (Note: last line starts with a space)
$ tinggimdustry.inting
$ stry.ypesettingLorsettingstry.
$ imp.ndustry.ingLoreetting
$ tingsetting textingrintingimpltypesetting ingettingiextIpsngintingimplyypesettingngttingimxtgntingLopesettinggtingimp
$ tingLorsetting textingrintingimpltypesetting ingLoreettingiextngintingimplyypesettingngLoremsttingimxtgntingpesettinggting
$ intingimplyLypesettingngoremttingimxtgntingLopesettinggtingimpttingesettingsingprintingimplingLoresettingextngrintingimplyypesettingngLoremettingixtgintingimply LpesettinggLorem ttingimtntingesettingtingimp tingLorsetting textingrintingimpltypesetting ndustry. It appears to me the relationship between rate of pasted text is linear with time when holding the Next I test:
|
So the following fixed pasting for me:
This resulted WSL starting correctly ,and This was tested in few different environments:
Edit: I also tried to get |
Build 171117 has been released. |
I've installed that version. My
It still has the problem. I'm afraid I don't really understand what you mean when you say "why don't you use the connector" - I installed ConEmu and used the built-in Using the command line pasted above in a new, custom task fixes the problem:
I previously ran the file you pasted above in dropbox; this created the |
I believe using the For example, you say you have for your task I, personally, replaced everything in my I believe this does use the connector and is how I'm now using the bash terminal on windows. If there is no reason to not use the connector, I would say just replace your bash task with the custom task commands and run that way instead of the default |
ConEmu recreates default tasks on demand only |
@ronindesign's suggestion is working well for me on build 171117. |
Using @ronindesign and @conan's suggestions on build 171117, I've found that pasting now works but keyboard input lags noticeably. Has anyone else experienced that? |
@rymanske My understanding was this is a windows issue in general I experience lag but in my case it's the same as what I experience with 'Bash on Ubuntu on Windows' directly I believe. Latency was reduced by removing extra features from my |
@rymanske check if you experience same lag in regular, non-ConEmu I went through the pain of diagnosing the "prompt lag", that I believe @ltomes is describing. The issue with the prompt is very noticeable each time the prompt loads for a new line, might take .5 - 2 seconds to load the prompt (even when simply via |
@ronindesign @ltomes The lag is not very noticeable when typing a single letter. It just gets choppy when I type at a reasonable speed. I've attached a video demonstrating the lag. It's a bit subtle so I also including a video without lag for comparison: LagClips.zip I only started experiencing the lag in ConEmu after replacing everything in my I see no lag when using the typical |
@Maximus5 I just installed build If that is not supposed to be fixed in |
@ltomes My issue is resolved in build 171203. |
@ltomes If you run |
There's a lot of talk here about "connector" and I have no idea what that is. Someone please give a clear explanation on how to fix this for someone who has used Unix and Linux exclusively and is just touching Windows for the first time now that it has WSL. |
I believe clear explanation exists in docs. Have you read them? |
TLDR;
|
This issue still happens in the latest, stable version -- not sure why this issue is closed (found @ the top of Google). If I were to paste this:
The result pasted is:
|
The issue is closed because when you use properly generated tasks it's fixed. |
Versions
ConEmu build: 161206 Stable x64
OS version: Windows 10 Build 17025.rs_prerelease.171020-1626 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): Bash for Windows
Problem description
Copy/pasting with mouse left click/right click doesn't seem to work consistently; only the end of the selected text is pasted, rather than the whole selection. Selecting and pasting the same text multiple times results in a different number of characters from the end of the selection pasted each time (between around 4 to 15).
I noticed at the same time this began happening, a user macro I have that runs
print("\e echo -e '\0033\0143' \n")
started only writingecho -e '\0033
to the console (it's meant to clear the screen, hence the newline at the end). This behaviour is consistent though, so may be unrelated.Steps to reproduce
Actual results
Last few characters are pasted (number of pasted characters varies each time, but is consistent for each selection)
Expected results
Selected text is pasted
Additional files
The text was updated successfully, but these errors were encountered: