-
Notifications
You must be signed in to change notification settings - Fork 510
Read-Host paste dropping letters after F8/F5 #2741
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
Comments
I'm also struggling with same issue, I believe it is related: pasting text to integrated PS console keeps dropping/replacing characters. I copy credentials from password app, and use right mouse click to paste. In the image at the left you see GUID pasted to PS integrated console and the beginning is strangely messed up, haven't figured out any logic what it is doing there. Next I pasted it into Notepad and that is correct. If I paste to PS integrated console, then backspace to remove the incorrect string, and paste again, it pastes correctly. There isn't a constant repro, as usually it works. I haven't been able to figure out what triggers this, but I feel it is happening more often on fresh consoles. Killing console and opening a new one doesn't guarantee a repro, though. When the issue occurs, I also see the missing characters outputted at the end on the blank command line, as in OP video. |
@jpalo Yes looks like the same thing. 100% reproducible for me also with |
Bug regression - this was fixed in stable in 2020-2021 but is happening again in PowerShell Preview (tested on v2022.3.0) |
@ili101 Can you test the build I just posted in #3876 (comment)? I'm not sure if this is the fix for this issue, but would like to see... |
I don't think that build is going to fix your issue, it seems separate. Like, I just repro'd it. Very strange. |
How big an issue is this for you @ili101, is it blocking any scenarios or can you just call |
Feels like a repeat of #2291 |
...that's a brilliant idea. We'd need to rewire Read-Host to send a message over LSP to ask for input, and then handle that in the client...but doable. @SeeminglyScience add this to the list of ideas! I think it'd make for a really nice UX. |
Hi there, we just released v2022.4.0-preview! Could you please try PowerShell Preview for VS Code and verify this is fixed? It seemed to be in my testing, so marking as resolved, but please let me know if it's still occurs (or if new bugs show up)! |
It happened!!! |
This issue has been marked as fixed. It has been automatically closed for housekeeping purposes. |
Issue Type: Bug
This is similar to fixed bug #2291
On the original issue it was happening every time
Read-Host
was used.Apparently now it happens only if you F8 or F5 (Run anything doesn't matter) then F8 or F5 again this time with
Read-Host
and paste something.Random characters from the string pasted will be missed.
If you Enter/Ctrl+C between the 2 actions this doesn't happen.
Extension version: 2020.6.0
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 10.0.17763
1591194302-8adf92aa-6105-406f-97ea-3c9013c8ba161591191688507.zip
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: disabled_off
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: