Skip to content

Language client failed to start in newest preview in Windows PowerShell 5.1 #4128

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
PrzemyslawKlys opened this issue Aug 12, 2022 · 1 comment · Fixed by #4131
Closed
6 tasks done

Language client failed to start in newest preview in Windows PowerShell 5.1 #4128

PrzemyslawKlys opened this issue Aug 12, 2022 · 1 comment · Fixed by #4131
Assignees
Labels
Area-Startup Bug: PowerShell 5.1 Bugs when using PowerShell 5.1. Issue-Bug A bug to squash.

Comments

@PrzemyslawKlys
Copy link
Contributor

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

My extension autoupdated this morning and I got a message that language client failed to start. Works fine in 7.3 preview and 7.2 PowerShell.

8:01:45 AM [NORMAL] - PowerShell Preview Extension v2022.8.1
8/12/2022 8:01:45 AM [NORMAL] - Operating System: Windows 64-bit
8/12/2022 8:01:46 AM [NORMAL] - Language server starting --
8/12/2022 8:01:46 AM [NORMAL] -     PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
8/12/2022 8:01:46 AM [NORMAL] -     PowerShell args: -NoProfile -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.8.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules' -EnableConsoleRepl -StartupBanner '' -LogLevel 'Diagnostic' -LogPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\logs\1660284105-52644f21-572b-410d-ae59-c73828b605e21660284103192\EditorServices.log' -SessionDetailsPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\sessions\PSES-VSCode-7708-841903.json' -FeatureFlags @() 
8/12/2022 8:01:46 AM [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.8.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules' -EnableConsoleRepl -StartupBanner '' -LogLevel 'Diagnostic' -LogPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\logs\1660284105-52644f21-572b-410d-ae59-c73828b605e21660284103192\EditorServices.log' -SessionDetailsPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\sessions\PSES-VSCode-7708-841903.json' -FeatureFlags @() 
8/12/2022 8:01:46 AM [NORMAL] - powershell.exe started.
8/12/2022 8:01:46 AM [NORMAL] - Waiting for session file
8/12/2022 8:01:49 AM [NORMAL] - Session file found
8/12/2022 8:01:49 AM [NORMAL] - Registering terminal close callback
8/12/2022 8:01:49 AM [NORMAL] - Registering terminal PID log callback
8/12/2022 8:01:49 AM [NORMAL] - powershell.exe PID: 14212
8/12/2022 8:01:49 AM [NORMAL] - Language server started.
8/12/2022 8:01:49 AM [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_e0prfkrz.qg5","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_a3vjb40l.omi"}
8/12/2022 8:01:49 AM [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_e0prfkrz.qg5...
8/12/2022 8:01:49 AM [NORMAL] - Language service connected.
8/12/2022 8:01:51 AM [NORMAL] - Language client failed to start.
8/12/2022 8:01:51 AM [ERROR] - Language client failed to start: 
8/12/2022 8:01:51 AM [ERROR] - TypeError: Invalid Version: null
8/12/2022 8:02:02 AM [NORMAL] - Shutting down language client...
8/12/2022 8:02:02 AM [NORMAL] - Language server starting --
8/12/2022 8:02:02 AM [NORMAL] -     PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
8/12/2022 8:02:02 AM [NORMAL] -     PowerShell args: -NoProfile -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.8.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules' -EnableConsoleRepl -StartupBanner '' -LogLevel 'Diagnostic' -LogPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\logs\1660284122-52644f21-572b-410d-ae59-c73828b605e21660284103192\EditorServices.log' -SessionDetailsPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\sessions\PSES-VSCode-7708-790005.json' -FeatureFlags @() 
8/12/2022 8:02:02 AM [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2022.8.1' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\przemyslaw.klys\.vscode\extensions\ms-vscode.powershell-preview-2022.8.1\modules' -EnableConsoleRepl -StartupBanner '' -LogLevel 'Diagnostic' -LogPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\logs\1660284122-52644f21-572b-410d-ae59-c73828b605e21660284103192\EditorServices.log' -SessionDetailsPath 'c:\Users\przemyslaw.klys\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell-preview\sessions\PSES-VSCode-7708-790005.json' -FeatureFlags @() 
8/12/2022 8:02:02 AM [NORMAL] - powershell.exe started.
8/12/2022 8:02:02 AM [NORMAL] - Waiting for session file
8/12/2022 8:02:04 AM [NORMAL] - Session file found
8/12/2022 8:02:04 AM [NORMAL] - Registering terminal close callback
8/12/2022 8:02:04 AM [NORMAL] - Registering terminal PID log callback
8/12/2022 8:02:04 AM [NORMAL] - powershell.exe PID: 35288
8/12/2022 8:02:04 AM [NORMAL] - Language server started.
8/12/2022 8:02:04 AM [NORMAL] - {"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_d3r5gxb4.dgt","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_b4ziz5df.iad"}
8/12/2022 8:02:04 AM [NORMAL] - Connecting to language service on pipe \\.\pipe\PSES_d3r5gxb4.dgt...
8/12/2022 8:02:04 AM [NORMAL] - Language service connected.
8/12/2022 8:02:06 AM [NORMAL] - Language client failed to start.
8/12/2022 8:02:06 AM [ERROR] - Language client failed to start: 
8/12/2022 8:02:06 AM [ERROR] - TypeError: Invalid Version: null

PowerShell Version

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

Visual Studio Code Version

1.70.1
6d9b74a70ca9c7733b29f0456fd8195364076dda
x64

Extension Version

Steps to Reproduce

Updated extension to newest version

Visuals

No response

Logs

No response

@PrzemyslawKlys PrzemyslawKlys added the Issue-Bug A bug to squash. label Aug 12, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 12, 2022
@ghost
Copy link

ghost commented Aug 12, 2022

Same issue in my environment (local and remote connections). Rolled back to 2022.8.0 and works fine.

@andyleejordan andyleejordan self-assigned this Aug 12, 2022
@andyleejordan andyleejordan added Bug: PowerShell 5.1 Bugs when using PowerShell 5.1. Area-Startup and removed Needs: Triage Maintainer attention needed! labels Aug 12, 2022
@andyleejordan andyleejordan moved this to In Progress in American Pharoah Aug 12, 2022
Repository owner moved this from In Progress to Done in American Pharoah Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Startup Bug: PowerShell 5.1 Bugs when using PowerShell 5.1. Issue-Bug A bug to squash.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants