-
Notifications
You must be signed in to change notification settings - Fork 312
Readline crashes with ThrowForEmptyQueue #3292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi PS > Get-Module PSReadLine
Oops, something went wrong.
Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.
Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yaml
Thank you!
### Environment
PSReadLine: 2.2.3
PowerShell: 2022.4.2
OS: Microsoft Windows 10.0.22000
BufferWidth: 169
BufferHeight: 19
Last 200 Keys:
RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow RightArrow LeftArrow Spacebar | Spacebar S e Ctrl+a Ctrl+c Ctrl+@ Ctrl+c Ctrl+@ Ctrl+c Ctrl+c Ctrl+@ $ c s v Spacebar = Spacebar Ctrl+v Enter
Ctrl+@ $ c s v [ ] LeftArrow 0 Enter
Ctrl+@ UpArrow . t a g s Tab Enter
Ctrl+@ UpArrow Spacebar - r e p l a c e Spacebar Ctrl+v Enter
Ctrl+@ UpArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow RightArrow \ RightArrow RightArrow RightArrow \ RightArrow RightArrow \ Enter
Ctrl+@ Ctrl+c Ctrl+@ c l s Enter
Ctrl+@ g e t - m o d u Tab Spacebar p s r e Tab
### Exception
System.InvalidOperationException: Queue empty.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Queue`1.Dequeue()
at Microsoft.PowerShell.PSConsoleReadLine.ReadKey()
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus) |
Same Issue here. Seems to happen on repeated key presses at the cmd line Oops, something went wrong. EnvironmentPSReadLine: 2.2.3 Last 200 Keys: = Spacebar C o n v e r t - Backspace f r o m - Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace ExceptionSystem.InvalidOperationException: Queue empty. |
@andschwa @SeeminglyScience, we started to get more reports about the "Queue empty" exception from VSCode recently, and I believe this is due to the |
Yeah I agree 100%. I believe #3294 will fix these as well though. |
🎉 This issue was addressed in 3294, which has now been successfully released in |
Prerequisites
Exception report
Screenshot
Environment data
Steps to reproduce
I was editing this expression when the crash happened:
The text was updated successfully, but these errors were encountered: