Oops, something went wrong. Please report this bug with the details below.

Đang mở
#5,096 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
cli

Hướng nghiên cứu

Start by examining the PSConsoleReadLine rendering path named in the stack trace: InputLoop, Insert, ForceRender, and ReallyRender. Reproduce the failure using the reported PSReadLine, PowerShell, Windows, and console buffer versions; done means the same input no longer raises the console buffer-size exception.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Needs-Triage :mag:
Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.
Exception report
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new
### Environment
PSReadLine: 2.0.0
PowerShell: 5.1.26100.7705
OS: Microsoft Windows 10.0.26200
Last 200 Keys

 $ ? " Spacebar } Spacebar e l s e Spacebar { Spacebar e c h o Spacebar " 5 a b 8 c c b a d 4 9 f 4 8 f 9 a 7 8 c d 0 7 7 3 1 1 d 3 8 2 f = $ ? " Spacebar } Spacebar } Enter
 Ctrl+Enter t r y Spacebar { Spacebar d o t n e t Spacebar t e s t Spacebar W o r d s . W e b . T e s t s / W o r d s . W e b . T e s t s . c s p r o j Spacebar - - n o - b u i l d Spacebar - - v e r b o s i t y Spacebar n o r m a l Spacebar 2 > & 1 Spacebar } Spacebar f i n a l l y Spacebar { Spacebar i f Spacebar ( $ ? ) Spacebar { Spacebar e c h o Spacebar " f 1 c 1 9 9 e 8 5 9 a 7 4 b 9 0 8 d 1


### Exception

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 20.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
Screenshot
Image
Environment data
PS Version: 5.1.26100.7705
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0
PSReadLine EditMode: Windows
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 202
BufferHeight: 35
Steps to reproduce

N/A

Expected behavior

N/A

Actual behavior

N/A

Ngôn ngữ chính
C#
Star
4.4k
Fork
341
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/PSReadLine

Tất cả issue của PowerShell/PSReadLine

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.