Skip to content

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

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

Closed
4 tasks done
hugh-martin opened this issue Aug 10, 2021 · 15 comments
Assignees
Labels
Area-Debugging Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.

Comments

@hugh-martin
Copy link

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

@hugh-martin hugh-martin added the Issue-Bug A bug to squash. label Aug 10, 2021
@hugh-martin
Copy link
Author

I disabled the PowerShell extension, installed the PowerShell Preview extension (ms-vscode.powershell-preview@2021.8.0) and got the same results.

@ghost ghost added Needs: Triage Maintainer attention needed! Needs: Maintainer Attention Maintainer attention needed! labels Aug 10, 2021
@andyleejordan andyleejordan added Area-Debugging and removed Needs: Triage Maintainer attention needed! Needs: Maintainer Attention Maintainer attention needed! labels Aug 10, 2021
@andyleejordan andyleejordan added this to the Committed-vNext milestone Aug 10, 2021
@andyleejordan andyleejordan self-assigned this Aug 10, 2021
@andyleejordan
Copy link
Member

@hugh-martin and @youngr137, could this be a duplicate of #2821?

@hugh-martin
Copy link
Author

@andschwa, I do not believe so. I don't see any errors or timeouts in vscode-powershell.log from #2821. Also, in my case, I avoided using debug at all, which seems to be the focus of that issue.

@hugh-martin
Copy link
Author

FYI, I cannot duplicate the issue with PowerShell extension v2021.6.2. Switching back to v2021.8.0 of the PowerShell extension brings the issue back.

@andyleejordan
Copy link
Member

Oh that's interesting! Ok, can you let me know if it reproduces with v2021.7.0-preview? This would help me narrow it down!

@hugh-martin
Copy link
Author

I just tried it and I cannot reproduce it with v2021.7.0-preview.

@andyleejordan
Copy link
Member

Fantastic, thanks!

@andyleejordan
Copy link
Member

andyleejordan commented Aug 17, 2021

So that narrows down the bug to be either a change between PowerShell Editor Services v2.4.6 and v2.4.7, as there isn't a substantial code change to the extension that I can see between v2021.7.0-preview and v2021.8.0.

@andyleejordan
Copy link
Member

@rjmholt, @dkattan, any ideas? I'll try to repro locally.

@hugh-martin
Copy link
Author

For whatever it's worth, I have been working with PowerShell extension v2021.6.2 for several days now and the problem has not re-occurred. Thanks again for the efforts.

@andyleejordan
Copy link
Member

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

@andyleejordan andyleejordan removed the Needs: Maintainer Attention Maintainer attention needed! label Aug 19, 2021
@andyleejordan
Copy link
Member

I've been attempting to look at this and have not been able to reproduce it yet. PowerShell Preview 2021.8.2 is out now, would you test and see if this still reproduces?

@hugh-martin
Copy link
Author

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

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Aug 23, 2021
@andyleejordan
Copy link
Member

Woo-hoo!

@andyleejordan andyleejordan added Resolution-Fixed Will close automatically. and removed Needs: Maintainer Attention Maintainer attention needed! labels Aug 23, 2021
@ghost ghost closed this as completed Aug 24, 2021
@ghost
Copy link

ghost commented Aug 24, 2021

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants