Title: Assertion failure in type inference while using completions · Issue #15885 · PowerShell/PowerShell · GitHub
Open Graph Title: Assertion failure in type inference while using completions · Issue #15885 · PowerShell/PowerShell
X Title: Assertion failure in type inference while using completions · Issue #15885 · 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/15885
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assertion failure in type inference while using completions","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\n```powershell\r\ntrap { wait-debugger }\r\nthrow 'bad'\r\n```\r\n\r\nIn the debugger:\r\n```console\r\n> $_.Ex\u003cTab>\r\n```\n\n### Expected behavior\n\n```console\nCompletes to $_.Exception\n```\n\n\n### Actual behavior\n\n```console\n[DBG]: PS C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell>> $_.ExProcess terminated. Assertion failed.\r\ncaller to verify arguments\r\n at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen, String detailMessage) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\utils\\assert.cs:line 202\r\n at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\utils\\assert.cs:line 134\r\n at System.Management.Automation.Language.AstSearcher.FindAll(Ast ast, Func`2 predicate, Boolean searchNestedScriptBlocks) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\AstVisitor.cs:line 410\r\n at System.Management.Automation.TypeInferenceVisitor.InferTypeFrom(VariableExpressionAst variableExpressionAst, List`1 inferredTypes) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\TypeInferenceVisitor.cs:line 1934\r\n at System.Management.Automation.TypeInferenceVisitor.System.Management.Automation.Language.ICustomAstVisitor.VisitVariableExpression(VariableExpressionAst ast) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\TypeInferenceVisitor.cs:line 630\r\n at System.Management.Automation.Language.VariableExpressionAst.Accept(ICustomAstVisitor visitor) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\ast.cs:line 9252\r\n at System.Management.Automation.TypeInferenceContext.InferType(Ast ast, TypeInferenceVisitor visitor) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\TypeInferenceVisitor.cs:line 400\r\n at System.Management.Automation.AstTypeInference.InferTypeOf(Ast ast, TypeInferenceContext context, TypeInferenceRuntimePermissions evalPersmissions) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\parser\\TypeInferenceVisitor.cs:line 103\r\n at System.Management.Automation.CompletionCompleters.CompleteMember(CompletionContext context, Boolean static) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CompletionCompleters.cs:line 5637\r\n at System.Management.Automation.CompletionAnalysis.GetResultForIdentifier(CompletionContext completionContext, Int32& replacementIndex, Int32& replacementLength, Boolean isQuotedString) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CompletionAnalysis.cs:line 2021\r\n at System.Management.Automation.CompletionAnalysis.GetResultHelper(CompletionContext completionContext, Int32& replacementIndex, Int32& replacementLength, Boolean isQuotedString) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CompletionAnalysis.cs:line 419\r\n at System.Management.Automation.CompletionAnalysis.GetResults(PowerShell powerShell, Int32& replacementIndex, Int32& replacementLength) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CompletionAnalysis.cs:line 380\r\n at System.Management.Automation.CommandCompletion.CompleteInputImpl(Ast ast, Token[] tokens, IScriptPosition positionOfCursor, Hashtable options) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CommandCompletion.cs:line 579\r\n at System.Management.Automation.CommandCompletion.CompleteInput(String input, Int32 cursorIndex, Hashtable options) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CommandCompletion.cs:line 102\r\n at CallSite.Target(Closure , CallSite , Type , String , Int32 , Hashtable )\r\n at System.Management.Automation.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\DynamicInstructions.Generated.cs:line 218\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\Interpreter.cs:line 105\r\n at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\LightLambda.Generated.cs:line 81\r\n at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\runtime\\CompiledScriptBlock.cs:line 2350\r\n at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\runtime\\CompiledScriptBlock.cs:line 2287\r\n at System.Management.Automation.CommandProcessorBase.Complete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 596\r\n at System.Management.Automation.CommandProcessorBase.DoComplete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 642\r\n at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 603\r\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 514\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 400\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 591\r\n at System.Management.Automation.Runspaces.LocalPipeline.StartPipelineExecution() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 236\r\n at System.Management.Automation.Runspaces.PipelineBase.CoreInvoke(IEnumerable input, Boolean syncCall) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\pipelinebase.cs:line 543\r\n at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\pipelinebase.cs:line 385\r\n at System.Management.Automation.Runspaces.Pipeline.Invoke() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\Pipeline.cs:line 528\r\n at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 5630\r\n at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4607\r\n at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4788\r\n at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4536\r\n at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 2750\r\n at System.Management.Automation.PowerShell.InvokeWithDebugger(IEnumerable`1 input, IList`1 output, PSInvocationSettings settings, Boolean invokeMustRun) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 2247\r\n at System.Management.Automation.ScriptDebugger.ProcessCommand(PSCommand command, PSDataCollection`1 output) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 2373\r\n at System.Management.Automation.CommandCompletion.ProcessCompleteInputCommand(Command cmd, Debugger debugger) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CommandCompletion.cs:line 410\r\n at System.Management.Automation.CommandCompletion.CompleteInputInDebugger(String input, Int32 cursorIndex, Hashtable options, Debugger debugger) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CommandCompletion.cs:line 351\r\n at System.Management.Automation.CommandCompletion.CompleteInput(String input, Int32 cursorIndex, Hashtable options, PowerShell powershell) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandCompletion\\CommandCompletion.cs:line 163\r\n at Microsoft.PowerShell.PSConsoleReadLine.\u003c>c__DisplayClass25_0.\u003cMicrosoft.PowerShell.Internal.IPSConsoleReadLineMockableMethods.CompleteInput>b__0() in Microsoft.PowerShell.PSReadLine2.dll:token 0x60004a0+0x0\r\n at PlatformWindows.CallPossibleExternalApplication[T](Func`1 func) in Microsoft.PowerShell.PSReadLine2.dll:token 0x600000d+0x1f\r\n at Microsoft.PowerShell.PSConsoleReadLine.CallPossibleExternalApplication[T](Func`1 func) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000e3+0x25\r\n at Microsoft.PowerShell.PSConsoleReadLine.Microsoft.PowerShell.Internal.IPSConsoleReadLineMockableMethods.CompleteInput(String input, Int32 cursorIndex, Hashtable options, PowerShell powershell) in Microsoft.PowerShell.PSReadLine2.dll:token 0x600002b+0x30\r\n at Microsoft.PowerShell.PSConsoleReadLine.GetCompletions() in Microsoft.PowerShell.PSReadLine2.dll:token 0x600003a+0x40\r\n at Microsoft.PowerShell.PSConsoleReadLine.Complete(Boolean forward) in Microsoft.PowerShell.PSReadLine2.dll:token 0x600003b+0x0\r\n at Microsoft.PowerShell.PSConsoleReadLine.TabCompleteNext(Nullable`1 key, Object arg) in Microsoft.PowerShell.PSReadLine2.dll:token 0x600002c+0x0\r\n at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000e5+0xb6\r\n at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000e2+0x53\r\n at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000e1+0x92\r\n at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) in Microsoft.PowerShell.PSReadLine2.dll:token 0x60000e0+0x0\r\n at CallSite.Target(Closure , CallSite , Type , Object , Object )\r\n at System.Management.Automation.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\DynamicInstructions.Generated.cs:line 192\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\Interpreter.cs:line 105\r\n at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\LightLambda.Generated.cs:line 81\r\n at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\ScriptCommandProcessor.cs:line 547\r\n at System.Management.Automation.DlrScriptCommandProcessor.Complete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\ScriptCommandProcessor.cs:line 425\r\n at System.Management.Automation.CommandProcessorBase.DoComplete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 642\r\n at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 603\r\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 514\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 400\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 591\r\n at System.Management.Automation.Runspaces.LocalPipeline.StartPipelineExecution() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 236\r\n at System.Management.Automation.Runspaces.PipelineBase.CoreInvoke(IEnumerable input, Boolean syncCall) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\pipelinebase.cs:line 543\r\n at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\pipelinebase.cs:line 385\r\n at System.Management.Automation.Runspaces.Pipeline.Invoke() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\Pipeline.cs:line 528\r\n at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 5630\r\n at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4607\r\n at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4788\r\n at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 4536\r\n at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 2431\r\n at System.Management.Automation.PowerShell.Invoke() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\PowerShell.cs:line 2308\r\n at Microsoft.PowerShell.ConsoleHostUserInterface.TryInvokeUserDefinedReadLine(String& input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHostUserInterface.cs:line 2209\r\n at Microsoft.PowerShell.ConsoleHostUserInterface.ReadLineWithTabCompletion(Executor exec) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHostUserInterface.cs:line 1970\r\n at Microsoft.PowerShell.ConsoleHost.InputLoop.Run(Boolean inputLoopIsNested) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHost.cs:line 2508\r\n at Microsoft.PowerShell.ConsoleHost.InputLoop.RunNewInputLoop(ConsoleHost parent, Boolean isNested) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHost.cs:line 2343\r\n at Microsoft.PowerShell.ConsoleHost.EnterNestedPrompt() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHost.cs:line 1037\r\n at System.Management.Automation.Internal.Host.InternalHost.EnterNestedPrompt(InternalCommand callingCommand) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\InternalHost.cs:line 334\r\n at System.Management.Automation.Internal.Host.InternalHost.EnterNestedPrompt() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\InternalHost.cs:line 214\r\n at Microsoft.PowerShell.ConsoleHost.EnterDebugMode() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHost.cs:line 2273\r\n at Microsoft.PowerShell.ConsoleHost.OnExecutionSuspended(Object sender, DebuggerStopEventArgs e) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.ConsoleHost\\host\\msh\\ConsoleHost.cs:line 2228\r\n at System.Management.Automation.ExtensionMethods.SafeInvoke[T](EventHandler`1 eventHandler, Object sender, T eventArgs) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\utils\\ExtensionMethods.cs:line 20\r\n at System.Management.Automation.Debugger.RaiseDebuggerStopEvent(DebuggerStopEventArgs args) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 467\r\n at System.Management.Automation.ScriptDebugger.OnDebuggerStop(InvocationInfo invocationInfo, List`1 breakpoints) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 1851\r\n at System.Management.Automation.ScriptDebugger.StopOnSequencePoint(FunctionContext functionContext, List`1 breakpoints) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 2077\r\n at System.Management.Automation.ScriptDebugger.OnSequencePointHit(FunctionContext functionContext) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 1544\r\n at System.Management.Automation.ScriptDebugger.Break(Object triggerObject) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\debugger\\debugger.cs:line 2528\r\n at Microsoft.PowerShell.Commands.WaitDebuggerCommand.EndProcessing() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\Microsoft.PowerShell.Commands.Utility\\commands\\utility\\EnableDisableRunspaceDebugCommand.cs:line 524\r\n at System.Management.Automation.Cmdlet.DoEndProcessing() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\cmdlet.cs:line 187\r\n at System.Management.Automation.CommandProcessorBase.Complete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 596\r\n at System.Management.Automation.CommandProcessorBase.DoComplete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 642\r\n at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 603\r\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 514\r\n at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\runtime\\Operations\\MiscOps.cs:line 498\r\n at \u003cScriptBlock>\u003ctrap>(Closure , FunctionContext )\r\n at System.Management.Automation.ExceptionHandlingOps.ProcessTraps(FunctionContext funcContext, RuntimeException rte) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\runtime\\Operations\\MiscOps.cs:line 1767\r\n at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\runtime\\Operations\\MiscOps.cs:line 1650\r\n at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\CallInstruction.Generated.cs:line 504\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\ControlFlowInstructions.cs:line 358\r\n at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\Interpreter.cs:line 105\r\n at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\interpreter\\LightLambda.Generated.cs:line 81\r\n at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\ScriptCommandProcessor.cs:line 547\r\n at System.Management.Automation.DlrScriptCommandProcessor.Complete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\ScriptCommandProcessor.cs:line 425\r\n at System.Management.Automation.CommandProcessorBase.DoComplete() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\CommandProcessorBase.cs:line 642\r\n at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(CommandProcessorBase commandRequestingUpstreamCommandsToStop) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 603\r\n at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\pipeline.cs:line 514\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 400\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 591\r\n at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProcImpersonate() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 547\r\n at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() in C:\\Users\\Robert Holt\\Documents\\Dev\\Microsoft\\PowerShell\\src\\System.Management.Automation\\engine\\hostifaces\\LocalPipeline.cs:line 1220\r\n at System.Threading.Thread.StartHelper.Callback(Object state) in System.Private.CoreLib.dll:token 0x600288d+0x0\r\n at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6002a2d+0x40\r\n at System.Threading.Thread.StartCallback() in System.Private.CoreLib.dll:token 0x600280f+0xe\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\n> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.2.0-preview.8\r\nPSEdition Core\r\nGitCommitId 7.2.0-preview.8\r\nOS Microsoft Windows 10.0.19043\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\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/rjmholt","@type":"Person","name":"rjmholt"},"datePublished":"2021-08-06T20:12:42Z","url":"https://github.com/PowerShell/PowerShell/issues/15885"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:34ed0881-107e-cde2-e9fb-cc4525bbf0c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A078:1B5B73:598342:81FFCA:6AFD8B67 |
| html-safe-nonce | f7a1a3508f486ac86ddbdb6702436ed8a2072cc702f7c76241df410b9cc8d3dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDc4OjFCNUI3Mzo1OTgzNDI6ODFGRkNBOjZBRkQ4QjY3IiwidmlzaXRvcl9pZCI6IjE4NjU3MzY3NDE1MjQ5NjYyNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a9734f4f9acd50380335d675bb2193057a2a319b5091579b3dd19f7ba9477871 |
| hovercard-subject-tag | issue:963017962 |
| 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/15885/issue_layout |
| twitter:image | https://opengraph.githubassets.com/639426976ba657e1e1e186e91aba156a989b3b94228496ccbaae2d8e9252cf73/PowerShell/PowerShell/issues/15885 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/639426976ba657e1e1e186e91aba156a989b3b94228496ccbaae2d8e9252cf73/PowerShell/PowerShell/issues/15885 |
| 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 | rjmholt |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width