Title: Tab completion attempt at `@` returns no result, `@?` crashes PSReadLine, or provides invalid result · Issue #10243 · PowerShell/PowerShell · GitHub
Open Graph Title: Tab completion attempt at `@` returns no result, `@?` crashes PSReadLine, or provides invalid result · Issue #10243 · PowerShell/PowerShell
X Title: Tab completion attempt at `@` returns no result, `@?` crashes PSReadLine, or provides invalid result · Issue #10243 · PowerShell/PowerShell
Description: Steps to reproduce Attempt tab completion/intellisense of splats: @
Open Graph Description: Steps to reproduce Attempt tab completion/intellisense of splats: @
X Description: Steps to reproduce Attempt tab completion/intellisense of splats: @<CTRL SPACE> @?<CTRL SPACE> # CRASH PSReadLine @?<TAB> # results in `@{$}` which is unusable as it tries to make...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10243
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tab completion attempt at `@` returns no result, `@?` crashes PSReadLine, or provides invalid result","articleBody":"# Steps to reproduce\r\n\r\nAttempt tab completion/intellisense of splats:\r\n\r\n```PowerShell\r\n@\u003cCTRL SPACE\u003e\r\n@?\u003cCTRL SPACE\u003e # CRASH PSReadLine\r\n@?\u003cTAB\u003e # results in `@{$}` which is unusable as it tries to make a hashtable\r\n```\r\n`tabexpansion2` also provides no results for ( `'@' 1`).\r\n\r\n# Environment data\r\n\r\nBelieved to occur in all versions, tested in 7.0.0-preview2 and Windows PowerShell on Win 10 Insiders.\r\n\r\n# Insights\r\n\r\nI believe the example of `@?` crashing PSReadLine is related to the expansion to `@{$}`, and while it probably shows a bug in PSReadLine, PR #10226 would fix the completion (though its likely to be a new problem with the new @@ splats being worked on.\r\n\r\nI am not sure yet why `@` alone cannot start a completion, I'm trying to consider what the completion code can do about offering completions that wont work. I don't think there is currently a syntax that works for splatting variables with complex names, and I didn't see it in the RFC for Enhanced Splatting.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-07-29T02:45:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/10243/PowerShell/issues/10243"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:afa7ba4c-7855-1fcf-c0d4-1ce42e218e35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF76:B33BC:115B305:173289B:6A59B797 |
| html-safe-nonce | 87301ada9c47d971f93b1800d81db12f9ae2d16d149150de1c7a651abcc327c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjc2OkIzM0JDOjExNUIzMDU6MTczMjg5Qjo2QTU5Qjc5NyIsInZpc2l0b3JfaWQiOiIzMjU3MDgwNzE5NzY0NzMxNzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e2924f2344b33bee97e33e1f729e7c7203f486f3224b74f7e62e100dedbd74ac |
| hovercard-subject-tag | issue:473823986 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/10243/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64081e1a94cba15f3b2b2bb426a5d85c5db4e1da349db1558ba25e2823481679/PowerShell/PowerShell/issues/10243 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64081e1a94cba15f3b2b2bb426a5d85c5db4e1da349db1558ba25e2823481679/PowerShell/PowerShell/issues/10243 |
| og:image:alt | Steps to reproduce Attempt tab completion/intellisense of splats: @ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width