question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Read-Host paste dropping letters after F8/F5

See original GitHub issue

Issue Type: Bug

This is similar to fixed bug https://github.com/PowerShell/vscode-powershell/issues/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.

Read

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
Item Value
CPUs Intel® Core™ i7-4770 CPU @ 3.40GHz (2 x 3392)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 2.00GB (0.43GB free)
Process Argv
Screen Reader no
VM 100%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ili101commented, Mar 22, 2022

@andschwa Did some more testing (with the build you mentioned). No problem when using terminal directly without F8/F5. With F8/F5 when typing it will miss the first letter. With F8/F5 when pasting unpredictable.

I think it’s maybe related to https://github.com/PowerShell/vscode-powershell/issues/3881

1reaction
andschwacommented, Apr 12, 2022

Rewrite part 2 coming up?

It happened!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

need to supply multiline input from a copy/paste - TechNet
Hello,. I would like to write a script that prompts for input (like using read-host), but I need to be able to copy/paste...
Read more >
Powershell - Allow and Parse Multiple Line Paste
Read -Host inherently supports only one line of input, so you have the following options: Make your users copy and paste a single-line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found