-
Notifications
You must be signed in to change notification settings - Fork 295
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
Tab autocomplete in a Cmdlet param context #2928
Comments
Note that, the prompt length is very important to reproduce this issue locally. Also, the prompt should be at the last line of the screen buffer to reproduce this issue. Repro steps:
Here is the GIF for reproducing this: The root cause of this issue lies at the following code: PSReadLine/PSReadLine/Completion.cs Lines 449 to 450 in 203d55c
In this case, the |
Nicely done. Impressive that you were able to find the nuanced conditions to reproduce this! |
@mavaddat Thank you for including so much details in your issue report! That's very helpful for us to fix those stability issues. |
🎉 This issue was addressed in 2949, which has now been successfully released in |
Prerequisites
Exception report
Screenshot
I attempted to tab here.
Environment data
Steps to reproduce
To get the error in the first place, I recalled the following into
Pwsh
without pressingenter
(by pressingup
arrow to recall last command):Nav back to the position at
reg
inside[reg] $env
and presstab
.Expected behavior
Autocomplete
regex
assembly inside square brackets.Actual behavior
System.ArgumentOutOfRangeException
The text was updated successfully, but these errors were encountered: