Title: bug(?): tab completing [ causes an error to be logged · Issue #17542 · PowerShell/PowerShell · GitHub
Open Graph Title: bug(?): tab completing [ causes an error to be logged · Issue #17542 · PowerShell/PowerShell
X Title: bug(?): tab completing [ causes an error to be logged · Issue #17542 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17542
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(?): tab completing [ causes an error to be logged","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nGiven the full and only command line:\r\n\r\n`[`\r\n\r\nPressing tab at the end of the buffer (right after the bracket) causes an error to be logged to `$Error`.\n\n### Expected behavior\n\n```console\nNo error to be logged to `$Error`, even if no completion is produced.\n```\n\n\n### Actual behavior\n\n```console\nAn error is logged to `$Error` right after pressing tab.\n```\n\n\n### Error details\n\n```console\nType : System.Management.Automation.CmdletInvocationException\r\nErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.WildcardPatternException\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.ParentContainsErrorRecordException\r\n Message : The specified wildcard character pattern is not valid: \\[*\r\n HResult : -2146233087\r\n CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException\r\n FullyQualifiedErrorId : RuntimeException\r\n TargetSite : \r\n Name : Parse\r\n DeclaringType : System.Management.Automation.WildcardPatternParser, System.Management.Automation, Version=7.2.4.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\n Message : The specified wildcard character pattern is not valid: \\[*\r\n Source : System.Management.Automation\r\n HResult : -2146233087\r\n StackTrace : \r\n at System.Management.Automation.WildcardPatternParser.Parse(WildcardPattern pattern, WildcardPatternParser parser)\r\n at System.Management.Automation.WildcardPatternMatcher.MyWildcardPatternParser.Parse(WildcardPattern pattern, CharacterNormalizer characterNormalizer)\r\n at System.Management.Automation.WildcardPatternMatcher..ctor(WildcardPattern wildcardPattern)\r\n at System.Management.Automation.WildcardPattern.Init()\r\n at System.Management.Automation.LocationGlobber.IsChildNameAMatch(PSObject childObject, WildcardPattern stringMatcher, Collection`1 includeMatcher, Collection`1 excludeMatcher, String\u0026 childName)\r\n at System.Management.Automation.LocationGlobber.GenerateNewPSPathsWithGlobLeaf(List`1 currentDirs, PSDriveInfo drive, String leafElement, Boolean isLastLeaf, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PathIntrinsics.GetResolvedPSPathFromPSPath(String path, CmdletProviderContext context)\r\n at Microsoft.PowerShell.Commands.ResolvePathCommand.ProcessRecord()\r\n at System.Management.Automation.Cmdlet.DoProcessRecord()\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\n CategoryInfo : NotSpecified: (:) [Resolve-Path], WildcardPatternException\r\n FullyQualifiedErrorId : RuntimeException,Microsoft.PowerShell.Commands.ResolvePathCommand\r\n InvocationInfo : \r\n MyCommand : Resolve-Path\r\n HistoryId : 2\r\n InvocationName : Microsoft.PowerShell.Management\\Resolve-Path\r\n CommandOrigin : Internal\r\n ScriptStackTrace : at \u003cScriptBlock\u003e\u003cEnd\u003e, \u003cNo file\u003e: line 38\r\n PipelineIterationInfo : \r\n\r\n\r\n\r\nTargetSite : \r\n Name : Invoke\r\n DeclaringType : System.Management.Automation.Runspaces.PipelineBase, System.Management.Automation, Version=7.2.4.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\nMessage : The specified wildcard character pattern is not valid: \\[*\r\nInnerException : \r\n Type : System.Management.Automation.WildcardPatternException\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.ParentContainsErrorRecordException\r\n Message : The specified wildcard character pattern is not valid: \\[*\r\n HResult : -2146233087\r\n CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException\r\n FullyQualifiedErrorId : RuntimeException\r\n TargetSite : \r\n Name : Parse\r\n DeclaringType : System.Management.Automation.WildcardPatternParser, System.Management.Automation, Version=7.2.4.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\n MemberType : Method\r\n Module : System.Management.Automation.dll\r\n Message : The specified wildcard character pattern is not valid: \\[*\r\n Source : System.Management.Automation\r\n HResult : -2146233087\r\n StackTrace : \r\n at System.Management.Automation.WildcardPatternParser.Parse(WildcardPattern pattern, WildcardPatternParser parser)\r\n at System.Management.Automation.WildcardPatternMatcher.MyWildcardPatternParser.Parse(WildcardPattern pattern, CharacterNormalizer characterNormalizer)\r\n at System.Management.Automation.WildcardPatternMatcher..ctor(WildcardPattern wildcardPattern)\r\n at System.Management.Automation.WildcardPattern.Init()\r\n at System.Management.Automation.LocationGlobber.IsChildNameAMatch(PSObject childObject, WildcardPattern stringMatcher, Collection`1 includeMatcher, Collection`1 excludeMatcher, String\u0026 childName)\r\n at System.Management.Automation.LocationGlobber.GenerateNewPSPathsWithGlobLeaf(List`1 currentDirs, PSDriveInfo drive, String leafElement, Boolean isLastLeaf, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PathIntrinsics.GetResolvedPSPathFromPSPath(String path, CmdletProviderContext context)\r\n at Microsoft.PowerShell.Commands.ResolvePathCommand.ProcessRecord()\r\n at System.Management.Automation.Cmdlet.DoProcessRecord()\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\nSource : System.Management.Automation\r\nHResult : -2146233087\r\nStackTrace : \r\n at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\r\n at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)\r\n at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)\r\n at System.Management.Automation.PowerShellExecutionHelper.ExecuteCurrentPowerShell(Exception\u0026 exceptionThrown, IEnumerable input)\r\n```\n```\n\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.2.4\r\nPSEdition Core\r\nGitCommitId 7.2.4\r\nOS Microsoft Windows 10.0.19044\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/insomnimus","@type":"Person","name":"insomnimus"},"datePublished":"2022-06-19T23:12:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/17542/PowerShell/issues/17542"}
| 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:0b50d044-36dd-cf88-bf2e-e91b487102eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEB8:30A6D1:C4DEBE:11DCC34:6A562639 |
| html-safe-nonce | b4ba02580ef3436ae99fc02a44c88f4e5c8687703b663f5fade160961563f858 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUI4OjMwQTZEMTpDNERFQkU6MTFEQ0MzNDo2QTU2MjYzOSIsInZpc2l0b3JfaWQiOiIyNDkwNjAyNjMzMTEzMjA2MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf0a138582c6571a2f0dd9575df8096510a23ab1ad88b2f849dcd57abf6fe1c7 |
| hovercard-subject-tag | issue:1276191356 |
| 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/17542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdf3209bf0abc1b0cd1aae09c33de0a9f44b66936f01b853995f86420c801268/PowerShell/PowerShell/issues/17542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdf3209bf0abc1b0cd1aae09c33de0a9f44b66936f01b853995f86420c801268/PowerShell/PowerShell/issues/17542 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | insomnimus |
| hostname | github.com |
| expected-hostname | github.com |
| None | eeb71977be324ce2bc7c4afd597296b8e3527d8922ad94632edd7a7296f8031b |
| 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 | 3e7957744c8a44d05ff1e464dc5d119e60b98fae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width