-
Notifications
You must be signed in to change notification settings - Fork 305
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
Exception on autocomplete attempt for recalled Add-Type
cmdlet
#3073
Comments
Ok, as soon as I wrote that I was not able to reproduce the error, I reproduced it. Prerequisites
Exception reportEnvironment
Last 200 Keys:
Exception
ScreenshotJust before the exception: Environment data
Steps to reproduceUp-arrow to recall this command from history: (Get-Item (Join-Path (Split-Path (Get-Package SevenZipExtractor).Source) lib/netstandard*) |
Sort-Object { [version] ($_.Name -replace '^netstandard') })[-1] |
Get-ChildItem -Filter *.dll -Recurse |
ForEach-Object { Write-Host "Adding ``$($_.Name)``"; Add-Type -LiteralPath $_.FullName -Verbose} Left-arrow to place cursor just after Expected behaviorShow that there are switches starting with Actual behaviorException. |
This is a duplicate of #2928, which was fixed by #2949. See the GIF below. |
Prerequisites
Exception report
Screenshot
Just before the exception:
Just after the exception:
Environment data
Steps to reproduce
Up-arrow to recall this command from history:
Left-arrow to place cursor just after
-
and beforeVerbose
in the-Verbose
of the (lower) innermost command then tab to autocomplete.Expected behavior
Show that there are switches starting with
w
for theAdd-Type
cmdlet using the autocomplete suggestions.Actual behavior
Exception on tab-autocomplete attempt.
The text was updated successfully, but these errors were encountered: