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

See original GitHub issue

Issue Type: Bug

When starting Visual Studio Code the powershell extension try to start but abort with “Could not start language service”. The log is as following: 5.3.2021 13:02:09 [NORMAL] - Visual Studio Code v1.54.1 64-bit 5.3.2021 13:02:09 [NORMAL] - PowerShell Extension v2021.2.2 5.3.2021 13:02:09 [NORMAL] - Operating System: Windows 64-bit 5.3.2021 13:02:09 [NORMAL] - Language server starting – 5.3.2021 13:02:09 [NORMAL] - PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 5.3.2021 13:02:09 [NORMAL] - PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module ‘c:\Users\MichlerDetlef.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\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\modules’ -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.2.2 <===== ’ -LogLevel ‘Normal’ -LogPath ‘c:\Users\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\logs\1614945729-5a0d4503-6a39-4dec-aeb3-72c88f85c95e1614945727555\EditorServices.log’ -SessionDetailsPath ‘c:\Users\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\sessions\PSES-VSCode-19924-563080’ -FeatureFlags @() 5.3.2021 13:02:09 [NORMAL] - PowerShell Editor Services args: Import-Module ‘c:\Users\MichlerDetlef.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\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\modules’ -EnableConsoleRepl -StartupBanner '=====> PowerShell Integrated Console v2021.2.2 <===== ’ -LogLevel ‘Normal’ -LogPath ‘c:\Users\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\logs\1614945729-5a0d4503-6a39-4dec-aeb3-72c88f85c95e1614945727555\EditorServices.log’ -SessionDetailsPath ‘c:\Users\MichlerDetlef.vscode\extensions\ms-vscode.powershell-2021.2.2\sessions\PSES-VSCode-19924-563080’ -FeatureFlags @() 5.3.2021 13:02:09 [NORMAL] - powershell.exe started. 5.3.2021 13:02:09 [NORMAL] - Waiting for session file 5.3.2021 13:02:11 [NORMAL] - Session file found 5.3.2021 13:02:11 [NORMAL] - Registering terminal close callback 5.3.2021 13:02:11 [NORMAL] - Registering terminal PID log callback 5.3.2021 13:02:11 [NORMAL] - powershell.exe PID: 16004 5.3.2021 13:02:11 [NORMAL] - Language server started. 5.3.2021 13:02:11 [NORMAL] - {“status”:“started”,“languageServiceTransport”:“NamedPipe”,“languageServicePipeName”:“\\.\pipe\PSES_jpn22lfr.er0”,“debugServiceTransport”:“NamedPipe”,“debugServicePipeName”:“\\.\pipe\PSES_n4mtsiym.yhz”} 5.3.2021 13:02:11 [NORMAL] - Connecting to language service on pipe \.\pipe\PSES_jpn22lfr.er0… 5.3.2021 13:02:11 [NORMAL] - Language service connected. 5.3.2021 13:02:12 [ERROR] - Could not start language service: 5.3.2021 13:02:12 [ERROR] - Error: Connection to server got closed. Server will not be restarted.

Extension version: 2021.2.2 VS Code version: Code 1.54.1 (f30a9b73e8ffc278e71575118b6bf568f04587c8, 2021-03-04T22:38:31.419Z) OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel® Core™ i5-8250U CPU @ 1.60GHz (8 x 1800)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.83GB (0.97GB free)
Process Argv –crash-reporter-id a0fe5d51-f6a9-4285-ba65-0257408f9258
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
dockersubset:30265998
pythontb:30265425
vspre833cf:30267465

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
JustinGrotecommented, Nov 13, 2021

@bvandermeide nice catch! FYI that Powershell 6 is no longer supported or tested, so def get on that 7 train, however you can choose which version the PSIC works with via the green version toggle on the lower right (5.1, 7, 7-preview, etc.)

2reactions
Tyriarcommented, Mar 11, 2021

We’re planning on releasing 1.54.2 today

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Language Service Could not be started #2526 - GitHub
The extension wont even load so I can't get the PSVersion. Everything was working fine until the update of the powershell extension.
Read more >
The language service could not be started - Alfred Myers
Earlier today when opening a PowerShell script in Visual Studio Code I got the following error message: The language service could not be ......
Read more >
Language Service Can not be started error : r/vscode - Reddit
Language Service Can not be started error. After installing the powershell extension. I am getting this error. what should i do to fix...
Read more >
The Language Service could not be started
In VS Code I'm receiving an error that reads “The Language Service could not be started” and I'm unable to run PowerShell Pro...
Read more >
Fixing Visual Studio Code Failed to Run PowerShell Scripts
After a Visual Studio Code update the other day, all the PowerShell scripts refusing to run due to a “Language server startup failed”....
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