-
Notifications
You must be signed in to change notification settings - Fork 510
Running the contributed command: 'PowerShell.ShowSessionMenu' failed. #2895
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 @jithinvijayan looks like the same issue as #2719 this fix is released in our latest PowerShell Preview extension release...could you please give that a try and see if you are still hitting this issue |
Thanks @SydneyhSmith, I uninstalled the PowerShell extension, reloaded vscode, then installed PowerShell Preview extension. Still seeing the same issue. |
Sorry @jithinvijayan, that fix will be in the next release. Our bad on that. We hope to get a new version out sometime next week or so. |
Session logs after using PowerShell preview extension: |
Looks like the issue was to do with the executionpolicy. I am running Win 10 1809, and the execution policy for currentuser was Restricted. After changing that to RemoteSigned, I am not seeing that issue anymore. Uninstalled the preview extension and installed the powershell extension, and its all good. So, looks like the executionpolicy being set to restricted to currentuser was the issue. That should be the default for all Win 10 client systems though, so could be a pre-requisite that needs to be clarified perhaps? |
Thanks team, |
I'm still seeing this issue even after setting currentuser to unrestricted. |
@noeltupas when you run |
CurrentUser and LocalMachine are set to RemoteSigned, MachinePolicy UserPolicy and Process are set to Undefined |
Anyone else have useful guidance on this? |
Running into this exact same issue. Local Machine set to RemoteSigned. All others set to undefined. 10/2/2020 10:14:25 AM [NORMAL] - powershell.exe started. Upgrading to ### VSCode version: 1.50.0 93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3 x64 fixed this problem for me. |
Same. I'm running PowerShell 7 though. Not sure if this would make a difference? |
Following this |
Someone that's still experiencing this and it's not the execution policy should probably open a new issue. Op closed this after finding the solution to their issue. Make sure to gather logs and submit them to assist with diagnosing the issue. |
Issue Description
I recently installed vscode and the powershell extension. I am since seeing the error "Running the contributed command: 'PowerShell.ShowSessionMenu' failed." whenever vscode starts up. As a result, while the powershell terminal works fine, none of the powershell extension features in the editor works (like command completion, displaying switches, etc).
Similar to issue#[2822](#2822
EditorServices.log
StartEditorServices.log
vscode-powershell.log
), however I don't have PS core installed.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: