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.

"Could not start language service" with vscode 1.54

See original GitHub issue

Issue Description

I am experiencing a problem with starting PowerShell Integrated Console. After updating to vscode 1.54 and PowerShell Extension 2021.2.2 the Integrated Console did not start. After a few minutes I got “Could not start language service”. Then I restarted the console a few times and it started again. Now, a few days later I just does not start at any time and I receive the “Could not start language service” immediately after starting vscode.

Attached Logs

PowerShell Extension Log

´´´ 10.3.2021 08:03:55 [NORMAL] - Visual Studio Code v1.54.1 64-bit 10.3.2021 08:03:55 [NORMAL] - PowerShell Extension v2021.2.2 10.3.2021 08:03:55 [NORMAL] - Operating System: Windows 64-bit 10.3.2021 08:03:55 [NORMAL] - Language server starting – 10.3.2021 08:03:55 [NORMAL] - PowerShell executable: C:\Program Files\PowerShell\7\pwsh.exe 10.3.2021 08:03:55 [NORMAL] - PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1’; Start-EditorServices -HostName ‘Visual Studio Code Host’ -HostProfileId ‘Microsoft.VSCode’ -HostVersion ‘2021.2.2’ -AdditionalModules @(‘PowerShellEditorServices.VSCode’) -BundledModulesPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\modules’ -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.2.2 <===== ’ -LogLevel ‘Normal’ -LogPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\logs\1615359835-8e5c3394-2138-4c2d-a142-d3c7092713971615359820932\EditorServices.log’ -SessionDetailsPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\sessions\PSES-VSCode-29648-823800’ -FeatureFlags @() 10.3.2021 08:03:55 [NORMAL] - PowerShell Editor Services args: Import-Module ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1’; Start-EditorServices -HostName ‘Visual Studio Code Host’ -HostProfileId ‘Microsoft.VSCode’ -HostVersion ‘2021.2.2’ -AdditionalModules @(‘PowerShellEditorServices.VSCode’) -BundledModulesPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\modules’ -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.2.2 <===== ’ -LogLevel ‘Normal’ -LogPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\logs\1615359835-8e5c3394-2138-4c2d-a142-d3c7092713971615359820932\EditorServices.log’ -SessionDetailsPath ‘c:\Users\usr.vscode\extensions\ms-vscode.powershell-2021.2.2\sessions\PSES-VSCode-29648-823800’ -FeatureFlags @() 10.3.2021 08:03:55 [NORMAL] - pwsh.exe started. 10.3.2021 08:03:55 [NORMAL] - Waiting for session file 10.3.2021 08:04:00 [NORMAL] - Session file found 10.3.2021 08:04:00 [NORMAL] - Registering terminal close callback 10.3.2021 08:04:00 [NORMAL] - Registering terminal PID log callback 10.3.2021 08:04:00 [NORMAL] - pwsh.exe PID: 26328 10.3.2021 08:04:00 [NORMAL] - Language server started. 10.3.2021 08:04:00 [NORMAL] - {“status”:“started”,“languageServiceTransport”:“NamedPipe”,“languageServicePipeName”:“\\.\pipe\PSES_rg0e2uuu.o2l”,“debugServiceTransport”:“NamedPipe”,“debugServicePipeName”:“\\.\pipe\PSES_nxtdi1py.rwa”} 10.3.2021 08:04:00 [NORMAL] - Connecting to language service on pipe \.\pipe\PSES_rg0e2uuu.o2l… 10.3.2021 08:04:00 [NORMAL] - Language service connected. 10.3.2021 08:04:00 [ERROR] - Could not start language service: 10.3.2021 08:04:00 [ERROR] - Error: Connection to server got closed. Server will not be restarted. ´´´

EditorServices.log, StartEditorServices.log, StartEditorServices-temp55C345AB.log are all empty.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19042
VSCode 1.54.1
PowerShell Extension Version 2021.2.2

PowerShell Information

Name Value
PSVersion 7.1.2
PSEdition Core
GitCommitId 7.1.2
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.0.0 6.1.0 6.2.0 7.0.0 7.1.2
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azure-account ms-vscode 0.9.7
azurecli ms-vscode 0.5.0
azurepolicyextension AzurePolicy 0.1.1
azurerm-vscode-tools msazurermtools 0.14.1
gitlens eamodio 11.3.0
kuskus-extensions-pack rosshamish 1.0.1
kuskus-kusto-color-themes rosshamish 0.1.0
kuskus-kusto-language-server rosshamish 1.0.1
kuskus-kusto-syntax-highlighting rosshamish 1.1.8
powershell ms-vscode 2021.2.2
remote-wsl ms-vscode-remote 0.54.0
terraform hashicorp 2.7.0
vscode-aks-tools ms-kubernetes-tools 0.0.8
vscode-azurefunctions ms-azuretools 1.2.1
vscode-azureresourcegroups ms-azuretools 0.3.0
vscode-azurestorage ms-azuretools 0.12.0
vscode-azureterraform ms-azuretools 0.3.2
vscode-azurevirtualmachines ms-azuretools 0.3.0
vscode-docker ms-azuretools 1.10.0
vscode-dotnet-runtime ms-dotnettools 1.0.0
vscode-kubernetes-tools ms-kubernetes-tools 1.3.0
vscode-markdownlint DavidAnson 0.39.0
vscode-yaml redhat 0.16.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vrdsecommented, Mar 15, 2021

I can confirm, it works again with vscode 1.54.2, thanks.

0reactions
msftbot[bot]commented, Mar 12, 2021

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

February 2021 (version 1.54) - Visual Studio Code
As a consequence, it is not a perfect fit for all languages and sometimes shows incorrect values because it doesn't understand the underlying...
Read more >
November 2022 (version 1.74) - Visual Studio Code
Learn what is new in the Visual Studio Code November 2022 Release (1.74)
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
Language Support in Visual Studio Code
In Visual Studio Code we have support for all common languages including smart code ... What if I don't want to create a...
Read more >
vscode python module intellisense doesn't work - Stack Overflow
When I use Pylance as a language service for python: enter image description here. In order to ensure that the code can run,...
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