You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminal crashes with "[ERROR] tid:75 in 'OnListenTaskCompleted' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: line 391" #1689
PowerShell integrated terminal crashing. The log contains the same error each time:
[ERROR] tid:75 in 'OnListenTaskCompleted' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: line 391
ProtocolEndpoint message loop terminated due to unhandled exception:
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.PowerShell.EditorServices.Workspace.RecursivelyFindReferences(ScriptFile scriptFile, Dictionary`2 referencedScriptFiles)
at Microsoft.PowerShell.EditorServices.Workspace.ExpandScriptReferences(ScriptFile scriptFile)
at Microsoft.PowerShell.EditorServices.LanguageService.<GetDefinitionOfSymbol>d__19.MoveNext()
Expected Behaviour
Hoping the terminal to be more stable, pain to have to keep restarting it.
Actual Behaviour
I don't have a solid repro but it happens a lot, seems to happen more when I am trying to select text in the editor to execute with F8. When I try to highlight from the top-down (for example line 10 to line 20) nothing happens, so I try to highlight from the bottom-up (for example line 20 to line 10). This might be coincidence but the terminal crash seems to happen shortly after that.