-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
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
gh : The term 'gh' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ gh repo clone microsoft/terminal
+ ~~
+ CategoryInfo : ObjectNotFound: (gh:String) [], CommandNot
FoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\nay_t\CascadeProjects> gh
gh : The term 'gh' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ gh
+ ~~
+ CategoryInfo : ObjectNotFound: (gh:String) [], CommandNot
FoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\nay_t\CascadeProjects> S C:\msys64\home\nay_t\cloudflare-tools> gh auth login
>> gh : The term 'gh' is not recognized as the name of a cmdlet, function,
>> script file, or operable program. Check the spelling of the name, or if
>> a path was included, verify that the path is correct and try again.
>> At line:1 char:1
>> + gh auth login
>> + ~~
>> + CategoryInfo : ObjectNotFound: (gh:String) [], CommandNot
>> FoundException
>> + FullyQualifiedErrorId : CommandNotFoundException
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 9 Keys:
Ctrl+v Enter
g h Enter
UpArrow UpArrow UpArrow UpArrow
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 -3.
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.HistoryRecall(Int32 direction)
at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo
key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\nay_t\CascadeProjects> S C:\msys64\home\nay_t\cloudflare-tools> gh auth login
>> gh : The term 'gh' is not recognized as the name of a cmdlet, function,
>> script file, or operable program. Check the spelling of the name, or if
>> a path was included, verify that the path is correct and try again.
>> At line:1 char:1
>> + gh auth login
>> + ~~
>> + CategoryInfo : ObjectNotFound: (gh:String) [], CommandNot
>> FoundException
>> + FullyQualifiedErrorId : CommandNotFoundException
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 16 Keys:
Ctrl+v Enter
g h Enter
UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow Ctrl+v UpArrow UpArrow UpArrow UpArrow
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 -3.
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.HistoryRecall(Int32 direction)
at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo
key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\nay_t\CascadeProjects> S C:\msys64\home\nay_t\cloudflare-tools> gh auth login
>> gh : The term 'gh' is not recognized as the name of a cmdlet, function,
>> script file, or operable program. Check the spelling of the name, or if
>> a path was included, verify that the path is correct and try again.
>> At line:1 char:1
>> + gh auth login
>> + ~~
>> + CategoryInfo : ObjectNotFound: (gh:String) [], CommandNot
>> FoundException
>> + FullyQualifiedErrorId : CommandNotFoundExceptionScreenshot
There was a request to report to report so I am reporting.
Environment data
ost ''\x0a};00x-x-x-x-xde
PS Version: 5.1.19041.6456PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 74
BufferHeight: 12Steps to reproduce
Pressing up arrow to recall gh auth login. Only gh.exe is in program directory after winget install using command: "winget install GitHub.cli" in Powershell.
Expected behavior
gh auth login interactive response.
Actual behavior
The above responses occur from pressing up arrow repeatedly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels