Skip to content

The language service could not be started: Exception encountered starting EditorServices #2965

Closed
PowerShell/PowerShellEditorServices
#1363
@H1-N1

Description

@H1-N1

System Details
Operating system name and version: Windows 7 (x32)
VS Code version: 1.49.1
PowerShell extension version: 2020.6.0
Output from $PSVersionTable:

PS C:\Users\W> $PSVersionTable

Name Value


PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.17929
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description
Terminal does not work. outputing ERROR Exception
Exception encountered starting EditorServices. Exception logged in D:\a\1\s\src\PowerShellEditorServices.Hosting\Commands\StartEditorServicesCommand.cs on line 248 in EndProcessing:
System.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.GetPSVersion()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LogPowerShellDetails()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LogHostInformation()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadAndRunEditorServicesAsync()
at Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.EndProcessing()

== Press any key to close terminal ==

Attached Logs

21/09/2020 20:08:55 [NORMAL] - Visual Studio Code v1.49.1 32-bit
21/09/2020 20:08:55 [NORMAL] - PowerShell Extension v2020.6.0
21/09/2020 20:08:55 [NORMAL] - Operating System: Windows 32-bit
21/09/2020 20:08:55 [NORMAL] - Language server starting --
21/09/2020 20:08:55 [NORMAL] - PowerShell executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
21/09/2020 20:08:55 [NORMAL] - PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1600711735-dcb2017c-f366-4915-b1e2-402c1ba6dd991600711712286\EditorServices.log' -SessionDetailsPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-3096-381252' -FeatureFlags @()
21/09/2020 20:08:55 [NORMAL] - PowerShell Editor Services args: Import-Module 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1600711735-dcb2017c-f366-4915-b1e2-402c1ba6dd991600711712286\EditorServices.log' -SessionDetailsPath 'c:\Users\Wuser.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-3096-381252' -FeatureFlags @()
21/09/2020 20:08:55 [NORMAL] - powershell.exe started.
21/09/2020 20:08:55 [NORMAL] - Waiting for session file
21/09/2020 20:12:56 [NORMAL] - Timed out waiting for session file to appear.
21/09/2020 20:12:56 [NORMAL] - Language server startup failed.
21/09/2020 20:12:56 [ERROR] - The language service could not be started:
21/09/2020 20:12:56 [ERROR] - Error: Timed out waiting for session file to appear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions