Skip to content

Tab completion don't work for $error #3373

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

Closed
iSazonov opened this issue Mar 20, 2017 · 5 comments · Fixed by #7924
Closed

Tab completion don't work for $error #3373

iSazonov opened this issue Mar 20, 2017 · 5 comments · Fixed by #7924
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-Fixed The issue is fixed. WG-Interactive-IntelliSense tab completion
Milestone

Comments

@iSazonov
Copy link
Collaborator

Steps to reproduce

5/0
$error[0].<tab>

Expected behavior

Tab completion substitutes property names (CategoryInfo, Exception ...)

Actual behavior

Tab completion don't work.

Environment data

All (Windows and Windows Core) PowerShell versions.

@iSazonov iSazonov added WG-Interactive-IntelliSense tab completion Issue-Enhancement the issue is more of a feature request than a bug labels Mar 20, 2017
@SteveL-MSFT SteveL-MSFT added this to the 6.0.0-beta2 milestone Mar 20, 2017
@SteveL-MSFT SteveL-MSFT self-assigned this Apr 14, 2017
@SteveL-MSFT
Copy link
Member

Workaround is:

$global:error[0].<tab>

Did some debugging, command completion finds another variable named Error in a lower scope which is empty so nothing to tab complete. Still investigating.

@iSazonov
Copy link
Collaborator Author

iSazonov commented Oct 1, 2018

@powercode Could you please confirm that the Issue was fixed in #7231?

@SteveL-MSFT @adityapatwardhan Make sense to add explicit test for the case to avoid a regression?

@SteveL-MSFT
Copy link
Member

On master branch, tab completion appears to work. @iSazonov I agree we should add some tests.

@SteveL-MSFT SteveL-MSFT added the Resolution-Fixed The issue is fixed. label Oct 1, 2018
@vexx32
Copy link
Collaborator

vexx32 commented Oct 1, 2018

Does this also resolve #7828, @SteveL-MSFT ?

@SteveL-MSFT
Copy link
Member

@vexx32 no, that one isn't resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-Fixed The issue is fixed. WG-Interactive-IntelliSense tab completion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants