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

Powershell integrated console command input errors (System.ArgumentOutOfRangeException) #49594

Closed
msftrncs opened this issue May 10, 2018 · 1 comment
Assignees
Labels
terminal General terminal issues that don't fall under another label

Comments

@msftrncs
Copy link

Issue Type: Bug

Fill the PowerShell integrated console buffer (DIR \WINDOWS\SYSTEM32 for instance) and then proceed to type a command longer than the console window so that it has to scroll, and an error will occur "System.ArgumentOutOfRangeException": The value must be greater than or equal to zero and less than the console's buffer
size in that dimension.
Parameter name: top
Actual value was 3000.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
I found this while trying to use the 'F8' run selection, as it would trigger this. This happens right away in a new instance of VSCode with integrated PowerShell console. It also happens when trying to recall previous commands that are longer than the console window is wide. This is made worse if the current path is pretty long, making the command prompt take up most of the line. Running "clear" allows the command to finally be entered without receiving the error.
There are also some text display overwrite issues when recalling commands longer than the window is wide, specially if the number of lines of the recalled command is more than the number of lines visible in the console window.

VS Code version: Code 1.23.0 (7c7da59, 2018-05-03T16:44:55.614Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i5 CPU U 430 @ 1.20GHz (4 x 1197)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Memory (System) 3.68GB (1.54GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
mssql ms- 1.3.1
PowerShell ms- 1.7.0
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label May 10, 2018
@Tyriar
Copy link
Member

Tyriar commented May 11, 2018

This is either an issue with the powershell extension (https://github.com/PowerShell/vscode-powershell) or winpty (see #45693)

@Tyriar Tyriar closed this as completed May 11, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

2 participants