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

Aperta
#5,096 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.