-
Notifications
You must be signed in to change notification settings - Fork 510
Powershell.ShowSessionMenu failed #3001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @chughesvf when you were hitting this issue, you only had the PowerShell Preview extension enabled correct? |
Hi @SydneyhSmith I ensured I was not running both, in fact I only reinstalled the release version for this issue. The console seems to be loaded fine, if I look at the PS Extension output it also seems normal.
But as you can see in the screenshot something has not fully loaded. I can't see powershell versions and intellisense freezes pretty much immediately. |
@chughesvf does the integrated console start? If so, what do you see in it? |
@rjmholt I am using the traditional Powershell.exe and not the ISE inside VSCode as my terminal. Is this what you mean by console? |
ignore my last comment (deleted) I was able to get the integrated console to start with the preview extension enabled. here is the output, and it is still stuck on "Starting Powershell" and I cannot use the console in the current state:
|
Thanks @chughesvf it would be great to understand how many versions of PowerShell this effects, have you seen this same issue on newer versions of PowerShell (PowerShell 7)? |
Hey @SydneyhSmith I added a powershell path to the extension for version 7.0.1. This loads no issue using the non-preview version but freezes in the same spot for the preview version. I verified in the log that the path is correctly grabbing the right EXE:
and the screenshot shows it is stuck at loading: Unable to use any intellisense or features of the extension in this state. |
Not sure this helps, but this seems to have just happened to me. I was using the integrated terminal quite happily on ps 7.1 although hitting an related powershell issue that I thought I would try in 5.1 so switched session to Windows Powershell (x64) and now getting much the same behaviour as described here although I am not using the Preview version am using Powreshell 2020.6.0. Integrated Console just hangs. changing in the setting files gets the integrated console working again. I assume this is an issue with the september vscode update as I installed that yesterday and hadn't noticed any issues before that. Although can't really remember the last time I tried to swtich to ps 5.1. |
This issue is being closed as inactive, if this issue is still occurring it will be re-opened |
I have similar thing, Powershell.ShowSessionMenu. I think since September.
|
Trying it now, got something different:
It is with a setting EDIT: I have updated powershell from 6 to 7 and it works fine now. |
This problem was fixed by setting the $PSModulePath system variable to the correct value. |
System Details
System Details Output
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.
#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
The text was updated successfully, but these errors were encountered: