question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on Debug Adapter: Error: connect ETIMEDOUT \\.\pipe\... after second execution in PowerShell Integrated Terminal

See original GitHub issue

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

Any second execution of PowerShell code results in an error in the PowerShell Extension logs and a failure to execute any code in the PowerShell Integrated Terminal until it is killed and restarted.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.59.0
379476f0e13988d90fab105c5c19e7abc8b1dea8
x64

Extension Version

ms-vscode.powershell@2021.5.1
ms-vscode.powershell@2021.8.0

Steps to Reproduce

Disable all extensions except the PowerShell extension. Create new file (no need to save it, but saving it will result in the same issue). Wait for the PowerShell Integrated Terminal to start. Add a small bit of PowerShell code; Get-Disk in this case, which was chosen arbitrarily. Run the script (with or without debugging). Wait for the script to execute successfully. Run the script (with or without debugging) a second time. Wait for the script to time out (~30 seconds). Check the PowerShell Extension logs for something similar to the following: Error on Debug Adapter: Error: connect ETIMEDOUT \.\pipe\PSES_x0wt2evy.fli

Visuals

Code screenshots.zip

Logs

logs.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hugh-martincommented, Aug 23, 2021

I am happy to report that it is not happening with PowerShell Preview 2021.8.2 and PowerShell 7.1.3.

1reaction
andschwacommented, Aug 19, 2021

Just FYI this is on my docket to investigate as the next big problem happening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug session reports timeout after 10000 ms. #2821 - GitHub
Issue Type: Bug After debug sessions ends, it errors out with "timeout after 10000 ms" message and doesn't close the debug controls.
Read more >
one or more errors occurred failed to launch debug adapter ...
The program '[22052] .exe' has exited with code -1 (0xffffffff). Another thing I noticed is that a new browser tab is opened without...
Read more >
Error Inside Visual Studio Code - PowerShell Tools
I tryed it on 2 computer both gives this error. connect ENOENT \.\pipe\xvmirqrzryck. Tool: Visual Studio Code 1.5.1, PowerShell Module ...
Read more >
npm install timeout error | The AI Search Engine You Control
Trying to install npm dependencies but have been reaching timeout on 104.16.25.35 which I believe is from Cloudflare. Executing curl https://registry.npmjs.com/ ...
Read more >
Micro Focus Desktop Containers 21.7 Documentation
In this example, we used the --detach flag to allow another command to be executed immediately before the container session closed. The default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found