Oops, something went wrong. Please report this bug with the details below.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- csharp, powershell
- Domain
- cli, operating-systems
Research direction
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.
Written by the indexing model from the issue text.
Description
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
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
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 341
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PowerShell/PSReadLine
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PowerShell/PSReadLine#5205 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
PowerShell/PSReadLine#5195 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PowerShell/PSReadLine#5121 ·
-
Needs-Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
PowerShell/PSReadLine#5045 ·
-
Area-CommandHelp Issue-Enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PowerShell/PSReadLine#3470 · 3 reactions ·
All issues in PowerShell/PSReadLine
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
azurenoops/spin_agent#975 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·