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.

Powershell.ShowSessionMenu failed

See original GitHub issue

System Details

System Details Output

OS Name             : Microsoft Windows 10 Enterprise
OS Version          : 10.0.19041 N/A Build 19041
OS Manufacturer     : Microsoft Corporation
OS Configuration    : Member Workstation
OS Build Type       : Multiprocessor Free

PSVersion                      5.1.19041.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

VSCODE Insider 1.51.0
PS Preview: 2020.9.0

Issue Description

The information pain shows “Starting Powershell Session Menu” and an error inside: “Running the contributed command: ‘PowerShell.ShowSessionMenu’ failed.”

Should note, when disabling the preview powershell extension, and enabling the version 2020.6.0 this problem goes away

Already followed this thread and set execution policy of the current user to unrestricted without any luck. https://github.com/PowerShell/vscode-powershell/issues/2895

Expected Behaviour

The Powershell language server should load with no errors

Actual Behaviour

Seems not all functionality of powershell extension is available in this state.

Attached Logs

logs.zip

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
MateuszGcommented, Jan 15, 2021

I have similar thing, Powershell.ShowSessionMenu. I think since September.

15.01.2021 13:00:26 [NORMAL] - Visual Studio Code v1.52.1 64-bit
15.01.2021 13:00:26 [NORMAL] - PowerShell Extension v2020.6.0
15.01.2021 13:00:26 [NORMAL] - Operating System: Windows 64-bit
15.01.2021 13:00:26 [NORMAL] - Language server starting --
15.01.2021 13:00:26 [NORMAL] -     PowerShell executable: C:\Users\galgmapl\.dotnet\tools\pwsh.exe
15.01.2021 13:00:26 [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\galgmapl\.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\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1610712026-8ffd0b64-9f1f-4cae-9096-ab2fbde7336d1610712018782\EditorServices.log' -SessionDetailsPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-24020-699868' -FeatureFlags @() 
15.01.2021 13:00:26 [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\galgmapl\.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\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Normal' -LogPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1610712026-8ffd0b64-9f1f-4cae-9096-ab2fbde7336d1610712018782\EditorServices.log' -SessionDetailsPath 'c:\Users\galgmapl\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-24020-699868' -FeatureFlags @() 
15.01.2021 13:00:26 [NORMAL] - pwsh.exe started.
15.01.2021 13:00:26 [NORMAL] - Waiting for session file
15.01.2021 13:01:26 [NORMAL] - Timed out waiting for session file to appear.
15.01.2021 13:01:26 [NORMAL] - Language server startup failed.
15.01.2021 13:01:26 [ERROR] - The language service could not be started: 
15.01.2021 13:01:26 [ERROR] - Error: Timed out waiting for session file to appear.
2reactions
jdiekhoffcommented, Nov 18, 2020

I too am seeing this issue running on a Mac. Using the PowerShell extension, V2020.6.0 and Code version 1.51.1

11/18/2020 5:06:44 PM [NORMAL] - pwsh started. 11/18/2020 5:06:44 PM [NORMAL] - Waiting for session file 11/18/2020 5:06:46 PM [NORMAL] - Session file found 11/18/2020 5:06:46 PM [NORMAL] - Registering terminal close callback 11/18/2020 5:06:46 PM [NORMAL] - Registering terminal PID log callback 11/18/2020 5:06:46 PM [NORMAL] - pwsh PID: 66908 11/18/2020 5:06:46 PM [NORMAL] - Language server started. 11/18/2020 5:06:46 PM [NORMAL] - {“status”:“started”,“languageServiceTransport”:“NamedPipe”,“languageServicePipeName”:“/var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_g4o53b52.jcs”,“debugServiceTransport”:“NamedPipe”,“debugServicePipeName”:“/var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_bhoz2wxg.vhw”} 11/18/2020 5:06:46 PM [NORMAL] - Connecting to language service on pipe /var/folders/n0/8kfv8lw12p16vrk_3hw2lwlh0000gp/T/CoreFxPipe_PSES_g4o53b52.jcs… 11/18/2020 5:06:46 PM [NORMAL] - Language service connected. 2020-11-18_17-12-02

Read more comments on GitHub >

github_iconTop Results From Across the Web

PowerShell/vscode-powershell - Gitter
ShowSessionMenu ' failed." ArtisanByteCrafter (slack) using v2020.6.1. ArtisanByteCrafter (slack) 7.0 works ok. PowerShell Connect. @PoshConnect_twitter.
Read more >
Visual Studio Code Powershell startup failure - Stack Overflow
Cannot debug or run a Powershell script until the PowerShell session has started. Wait for PowerShell session to finish starting and try again....
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 >
Using Visual Studio Code for PowerShell Development
Visual Studio Code with the PowerShell extension is the ... Language server startup failed. ... Click on PowerShell: Show Session Menu.
Read more >
PowerShell editing with Visual Studio Code
Or run the PowerShell: Show Session Menu command from the Command Palette (Ctrl+Shift+P). CodeLens support. CodeLenses are a VS Code feature to ...
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