Skip to content

Error at Launch of VS Code with extension enabled: The connection to terminal's pty host process is unresponsive the terminals may stop working #4581

@the-joey-o

Description

@the-joey-o

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 have a brand new computer, new install of windows, and only one extension that's completely unconfigured. Why am I getting this error?
The connection to terminal's pty host process is unresponsive the terminals may stop working
image

PowerShell Version

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

Visual Studio Code Version

1.78.2
x64

Extension Version

ms-vscode.powershell@2023.5.0

Steps to Reproduce

Launch VSCode. Should occur at startup.

Visuals

No response

Logs

5/17/2023 3:45:36 PM [NORMAL] - Visual Studio Code v1.78.2 64-bit

5/17/2023 3:45:36 PM [NORMAL] - Creating log directory at: 'file:///c%3A/Users/jodell/AppData/Roaming/Code/User/globalStorage/ms-vscode.powershell/logs/1684356336-8646b9dc-8b56-4dc7-99b9-6c4f8ee4d03f1684356335339'

5/17/2023 3:45:36 PM [NORMAL] - PowerShell Extension v2023.5.0

5/17/2023 3:45:36 PM [NORMAL] - Operating System: Windows 64-bit

5/17/2023 3:45:37 PM [NORMAL] - Language server starting --

5/17/2023 3:45:37 PM [NORMAL] - PowerShell executable: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe

5/17/2023 3:45:37 PM [NORMAL] - PowerShell args: -NoProfile -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\jodell.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2023.5.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\jodell.vscode\extensions\ms-vscode.powershell-2023.5.0\modules' -EnableConsoleRepl -StartupBanner "PowerShell Extension v2023.5.0
Copyright (c) Microsoft Corporation.

https://aka.ms/vscode-powershell
Type 'help' to get help.
" -LogLevel 'Normal' -LogPath 'c:\Users\jodell\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1684356336-8646b9dc-8b56-4dc7-99b9-6c4f8ee4d03f1684356335339\EditorServices.log' -SessionDetailsPath 'c:\Users\jodell\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSCode-8496-592897.json' -FeatureFlags @()

5/17/2023 3:45:37 PM [NORMAL] - PowerShell Editor Services args: Import-Module 'c:\Users\jodell.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2023.5.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\jodell.vscode\extensions\ms-vscode.powershell-2023.5.0\modules' -EnableConsoleRepl -StartupBanner "PowerShell Extension v2023.5.0
Copyright (c) Microsoft Corporation.

https://aka.ms/vscode-powershell
Type 'help' to get help.
" -LogLevel 'Normal' -LogPath 'c:\Users\jodell\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1684356336-8646b9dc-8b56-4dc7-99b9-6c4f8ee4d03f1684356335339\EditorServices.log' -SessionDetailsPath 'c:\Users\jodell\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSCode-8496-592897.json' -FeatureFlags @()

5/17/2023 3:45:37 PM [NORMAL] - powershell.exe started.

5/17/2023 3:47:24 PM [NORMAL] - powershell.exe PID: 15272

5/17/2023 3:47:24 PM [NORMAL] - Waiting for session file...

5/17/2023 3:47:54 PM [WARNING] - Loading the PowerShell extension is taking longer than expected. If you're using privilege enforcement software, this can affect start up performance.

5/17/2023 3:51:25 PM [NORMAL] - Timed out waiting for session file to appear!

5/17/2023 3:51:29 PM [ERROR] - PowerShell language server process didn't start!

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions