★ wanayoo — archive 1999 https://github.com/PowerShell/vscode-powershell/issues/1689Nouvelle recherche | Portail wanayoo
Skip to content
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

Terminal crashes with "[ERROR] tid:75 in 'OnListenTaskCompleted' C:\PowerShellEditorServices\src\PowerShellEditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs: line 391" #1689

Closed
craig-martin opened this issue Jan 9, 2019 · 1 comment

Comments

@craig-martin
Copy link

@craig-martin craig-martin commented Jan 9, 2019

System Details

VSCode version: 1.30.1 dea8705087adb1b5e5ae1d9123278e178656186a ia32

VSCode extensions:

DotJoshJohnson.xml@2.4.0
ms-azuretools.vscode-azurefunctions@0.13.1
ms-vscode.azure-account@0.8.0
ms-vscode.csharp@1.17.1
ms-vscode.PowerShell@1.10.2

PSES version: 1.10.2.0

PowerShell version:

Name Value


PSVersion 5.1.17763.134
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.134
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

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.

Attached Logs

EditorServices.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.