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 Tools or debug my scripts.
The log has a lot of information but doesn’t give me much of a clue to work with.
Has anyone seen this before?
Here’s the info from the log:
12/1/2020 9:25:18 AM [NORMAL] - Visual Studio Code v1.51.1 64-bit
12/1/2020 9:25:18 AM [NORMAL] - PowerShell Extension v2020.6.0
12/1/2020 9:25:18 AM [NORMAL] - Operating System: Windows 64-bit
12/1/2020 9:25:18 AM [NORMAL] - Language server starting –
12/1/2020 9:25:18 AM [NORMAL] - PowerShell executable: C:\Users\Dave.dotnet\tools\pwsh.exe
12/1/2020 9:25:18 AM [NORMAL] - PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module ‘c:\Users\Dave.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\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\modules’ -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel ‘Normal’ -LogPath ‘c:\Users\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1606843518-13087e62-ff22-4211-aa1a-6154968da2f71606843508368\EditorServices.log’ -SessionDetailsPath ‘c:\Users\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-16624-283337’ -FeatureFlags @()
12/1/2020 9:25:18 AM [NORMAL] - PowerShell Editor Services args: Import-Module ‘c:\Users\Dave.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\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\modules’ -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel ‘Normal’ -LogPath ‘c:\Users\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1606843518-13087e62-ff22-4211-aa1a-6154968da2f71606843508368\EditorServices.log’ -SessionDetailsPath ‘c:\Users\Dave.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-16624-283337’ -FeatureFlags @()
12/1/2020 9:25:18 AM [NORMAL] - pwsh.exe started.
12/1/2020 9:25:18 AM [NORMAL] - Waiting for session file
12/1/2020 9:29:22 AM [NORMAL] - Timed out waiting for session file to appear.
12/1/2020 9:29:22 AM [NORMAL] - Language server startup failed.
12/1/2020 9:29:22 AM [ERROR] - The language service could not be started:
12/1/2020 9:29:22 AM [ERROR] - Error: Timed out waiting for session file to appear.
Thank you!