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

Paste limited to 50 chars when run in Docker container on Windows #38

Closed
dhirschfeld opened this issue Dec 14, 2017 · 18 comments
Closed
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase Resolution-Fix-Available It's available in an Insiders build or a release
Milestone

Comments

@dhirschfeld
Copy link

When pasting text into powershell in a Windows container the text is truncated at 50 characters which makes for a very frustrating and unproductive user experience.

This effect is most notable in powershell becaue of an unfortuante interaction with PSReadline however unusual/undersirable behaviour is also observed in a plain cmd terminal leading to (IIUC) the conclusion that the underlying problem is with the console itself.

This issue has been previously opened in 3 separate repositories:

...however I'm opening it here as all those issues have been closed under the assumption that the problem lies with the console itself

@dhirschfeld
Copy link
Author

In the PSReadline issue @jstarks commented:

Agreed that this is annoying. We're hoping to improve the console API compatibility in windowsservercore in the next Windows release, which I suspect will resolve this and several other issues. Currently I don't have any plans to debug this with the current set of images, unfortunately.

My main goal in opening the issue here it so I can follow any progress in fixing the problem, and in particular if there is any estimated timeline for a fix being released.

@zadjii-msft
Copy link
Member

This is technically an issue with Docker on Windows, but yes, we're working on a solution.

@zadjii-msft zadjii-msft added the Work-Item It's being tracked by an actual work item internally. (to be removed soon) label Dec 18, 2017
@flupkede
Copy link

flupkede commented Jan 23, 2018

It's just amazing that something as trivial as this is simply not working. Welcome old fashioned DOS!

@cblackuk
Copy link

@zadjii-msft Cannot wait for this to be fixed... it is so annoying... Any workaround in the interim?

@dhirschfeld
Copy link
Author

See PowerShell/PSReadLine#460 (comment) for a workaround.

@cblackuk
Copy link

@dhirschfeld Saved my life! Thanks a lot!

@cblackuk
Copy link

@dhirschfeld This allows me to paste fine but now you cannot go back a character or word it just deletes everything if you want to edit whatever you typed or pasted. Any workaround for that?

@zadjii-msft
Copy link
Member

I'll defer back to @jstarks who is more familiar with Windows containers and might be able to share more information on the subject.

@DougPlumley
Copy link

No updates on this huh? Still seems to be an issue.

@zadjii-msft
Copy link
Member

Actually @jstarks might be able to comment on this. There should be a fix going in to CExecSvc (which powers docker server on windows) to fix this, but I'm not really sure about their release schedule.

@jsturtevant
Copy link

This is fixed on the Windows 2019 preview image. You can try it out on azure:

image

@dhirschfeld
Copy link
Author

Will that fix make it to 1803 or 1809?

@zadjii-msft
Copy link
Member

I'd presume it's only for 1809. I don't think the Docker team was able to use our work for #57 in 1803.

@zadjii-msft zadjii-msft added Resolution-Fix-Available It's available in an Insiders build or a release Resolution-External For issues that are outside this codebase and removed Work-Item It's being tracked by an actual work item internally. (to be removed soon) labels Jul 30, 2018
@zadjii-msft zadjii-msft added this to the RS5 milestone Jul 30, 2018
@malcolm-boden
Copy link

Is there any of this working on 1607 ?

@zadjii-msft
Copy link
Member

@malcolm-boden Nope, conpty support was only added in 1809 (October 2018 release), so you'll have to upgrade to a newer version to get the fix.

@robe070
Copy link

robe070 commented Feb 20, 2019

Still in 1809 👎

@triynko
Copy link

triynko commented Apr 25, 2021

2021, latest version of docker and CANNOT PASTE A SINGLE FULL COMMAND INTO DOCKER. Where did this 50 character limit come from? It makes no sense.

@DHowett
Copy link
Member

DHowett commented Apr 26, 2021

We’ve pretty well proven that the issue isn’t in this repository or in the console or the terminal, so somebody is going to have to report the issue wherever it truly belongs.

@microsoft microsoft locked and limited conversation to collaborators Apr 26, 2021
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

10 participants