Skip to content

PID Repeated in Endless Loop PowerShell Unresponsive #4218

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
6 tasks done
moymike opened this issue Oct 21, 2022 · 2 comments · Fixed by PowerShell/PowerShellEditorServices#1933
Closed
6 tasks done
Assignees
Labels
Issue-Bug A bug to squash.

Comments

@moymike
Copy link

moymike commented Oct 21, 2022

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

I gave up on using VS-Code for Powershell because of this issue about about a month ago. I searched for a solution and found nothing. (and yes, I'm still using Powershell 5.1)

This morning I decided to bring up VScode to see any updates addressed the problem. No change, still looping PID. I did a bit more searching found this thread, which has since been closed. (#4191)

I am reopening this issue because it fully kills the Powershell extension, and the "solution" is buried in a closed thread which is tough to get a good search result on. This should be a hot button issue, fixed with an update. I am sure I am not the only one that found the extension fully blocked without recourse.

  • Changing the setting "powershell.developer.editorServicesWaitForDebugger": true fixes the problem. I am not sure the "fixes" is the right term, maybe it just bypasses the problem.

  • This same issue (on my box) persists on both the the current Powershell v2022.10.0 extension and the Powershell Preview v2022.10.1 extension. (I have one disabled, in case I have a problem with the other)

  • After looping a good number of times, an error pops up on bottom right of VScode saying "Error loading webview: Could not register service workers: InvaliState Error. Failed to register a ServiceWorker: The document is in an invalid state."

  • From this point, Killing the Terminal (Powershell Extension), gets you back to a simple Powershell terminal without the extension capabilities.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.1682
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1682
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.72.2
d045a5eda657f4d7b676dedbfa7aab8207f8a075
x64

Extension Version

Steps to Reproduce

Load a powershell script or launch VScode with a powershell script reloaded.

Visuals

No response

Logs

No response

@moymike moymike added the Issue-Bug A bug to squash. label Oct 21, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Oct 21, 2022
@andyleejordan
Copy link
Member

This is a developer setting, why do you have it set true if you're not using it?

@andyleejordan andyleejordan added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! Resolution-Duplicate Will close automatically. labels Oct 21, 2022
@andyleejordan andyleejordan self-assigned this Oct 21, 2022
@andyleejordan
Copy link
Member

It gets weirder because the PSES build should not even be processing that code in release builds...something might be up with the pipelines.

andyleejordan added a commit to PowerShell/PowerShellEditorServices that referenced this issue Oct 21, 2022
Add assertion to build that bits are built in release configuration and invoke tests in release configuration. Resolves PowerShell/vscode-powershell#4218 by (correctly and how it was expected in the first place) preventing the developer option to wait for debugger to be in the binary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants