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

Aperta
#5,129 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
28/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
csharp, powershell

Direzione di ricerca

Start with the exception stack trace, especially ReallyRender, ForceRender, and ProcessOneKey. Try reproducing the reported key sequence in PSReadLine 2.0.0 on the stated PowerShell and Windows environment. Done means the same interaction no longer raises ArgumentOutOfRangeException, but the report provides no reliable reproduction or named source file.

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.8115
OS: Microsoft Windows 10.0.26200
Last 200 Keys

 UpArrow UpArrow Enter
 b u i Tab Tab Tab Tab Escape b u i Tab Tab Tab Enter
 UpArrow UpArrow Enter
 UpArrow UpArrow UpArrow DownArrow Enter
 UpArrow UpArrow Enter
 b u i Tab Tab Tab Enter
 c o d e _ Tab Tab Enter
 b u i Tab b u i Tab Escape b u i Tab Enter
 b u i Tab Tab Enter
 b u i Tab Enter
 b u i Tab Enter
 b u i Tab Tab Enter
 b u i Tab Tab Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 b u i Tab Tab Tab Enter
 r u n Tab Enter
 b u i Tab Enter
 b u i Tab Tab Enter
 r u n Tab Escape r u n Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 UpArrow UpArrow Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 r u n Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Escape


### 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 57.
   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.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
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.8115
OS: Microsoft Windows 10.0.26200
Last 200 Keys

 UpArrow UpArrow Enter
 b u i Tab Tab Tab Tab Escape b u i Tab Tab Tab Enter
 UpArrow UpArrow Enter
 UpArrow UpArrow UpArrow DownArrow Enter
 UpArrow UpArrow Enter
 b u i Tab Tab Tab Enter
 c o d e _ Tab Tab Enter
 b u i Tab b u i Tab Escape b u i Tab Enter
 b u i Tab Tab Enter
 b u i Tab Enter
 b u i Tab Enter
 b u i Tab Tab Enter
 b u i Tab Tab Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 b u i Tab Tab Tab Enter
 r u n Tab Enter
 b u i Tab Enter
 b u i Tab Tab Enter
 r u n Tab Escape r u n Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 UpArrow UpArrow Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 r u n Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Enter
 c o d e _ Tab Tab Escape


### 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 57.
   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.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)
Steps to reproduce

It happened only once

Expected behavior

It happened only once

Actual behavior

It happened only once

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.