Skip to content

Debugger crashes after multiple runs. #273

Closed
@antonyoni

Description

@antonyoni

Versions:
VSCode: 1.4.0
OS: Windows 10.1607
Extension: 0.7.1

After running the debugger multiple times, there is a 'powershell has stopped working' error:
vscode-error-3
and the following in the Console:

[Extension Host] Uncaught Exception:  Error: read ECONNRESET
[Extension Host] Error: read ECONNRESET
    at exports._errnoException (util.js:890:11)
    at TCP.onread (net.js:552:26)
read ECONNRESET: Error: read ECONNRESET
    at exports._errnoException (util.js:890:11)
    at TCP.onread (net.js:552:26)
[Extension Host] powershell.exe terminated with exit code: 2
[Extension Host] rejected promise not handled with 1 second
This socket is closed.: Error: This socket is closed.
    at Socket._writeGeneric (net.js:648:19)
    at Socket._write (net.js:700:8)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:287:5)
    at Socket.Writable.write (_stream_writable.js:215:11)
    at Socket.write (net.js:626:40)
    at StreamMessageWriter.write (C:\Users\Antony\.vscode\extensions\ms-vscode.PowerShell-0.7.1\node_modules\vscode-jsonrpc\lib\messageWriter.js:22:23)
    at C:\Users\Antony\.vscode\extensions\ms-vscode.PowerShell-0.7.1\node_modules\vscode-jsonrpc\lib\main.js:195:31
    at Object.connection.sendRequest (C:\Users\Antony\.vscode\extensions\ms-vscode.PowerShell-0.7.1\node_modules\vscode-jsonrpc\lib\main.js:186:20)
    at Object.result.shutdown (C:\Users\Antony\.vscode\extensions\ms-vscode.PowerShell-0.7.1\node_modules\vscode-languageclient\lib\main.js:48:51)

Once this happens I get a 'Debuger adapter process has terminated unexpectedly' error when debugging further:
vscode-error-2

This issue occurs on two separate machines with the same versions of everything. Only started happening after update to extension version 0.7.1.

Can be fixed by restarting vscode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions