-
Notifications
You must be signed in to change notification settings - Fork 511
PowerShell extension (and Integrated Console) never starts #1673
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
Can you confirm that the PowerShell Integrated Console is open? |
I don't believe it is. When I try to open it via the command palette, nothing happens either. |
@dtbiedrzycki it would be helpful to know what command you were trying to run when you reached this error, a screenshot of your VSCode environment when this occurred would be even better, thanks! |
@dtbiedrzycki this should be fixed by a recent PR in #1690 |
Here an approaching issue trying to open new Terminal after default crashes: |
Ok, I solved this changing the loglevel on VSCode settings from Warning to Normal. Maybe a Powershell modules update broke it? |
@dtbiedrzycki Closing as the update to the extension that should fix this is out, will re-open if this issue is still happening! |
Hey @SydneyhSmith, my apologies for the extremely long delay. I've updated the PowerShell extension to version 1.11.0 and my problem remains. See the attached gif showing the issue: |
I had this exactly same issue. Disabling, enabling then reload solved it for me. |
Thanks for reporting this, it could be from being on a restricted system, is your environment restricted in any way (group policy etc.), if so this could be the cause--try this https://docs.microsoft.com/en-us/powershell/scripting/components/vscode/using-vscode?view=powershell-6#installing-the-powershell-extension-on-restricted-systems and let us know if that helps at all. |
This did not work for me :(. |
I ran the command provided in the link, was not prompted, and the command executed successfully. I also tried running VS Code as an administrator and still get the same behavior. |
I've also tried uninstalling and re-installing VS Code and get the same result as well. |
@dtbiedrzycki we are trying to diagnose this issue, would you mind looking in the logs file, they should be at |
The directory is empty :( |
Assuming this is resolved for everyone since there has been no activity since my last check-in, please let us know if this is not the case, thanks! |
I was having this issue and reverting to 2019.5.0 fixed it for me. |
Even running VS Code under SYSTEM account does not help. +1. Need a fix. |
@ActionExpress50 thanks for commenting on this issue, it would be great if you could open a new issue in our repo with logs/detailed explanation of the issue you are hitting so we can diagnose what is going on since the issue described that the root of the thread seems to have been resolved--thanks! |
I installed PowerShell 7 from here and it fixed the problem for me. |
Yeah, this likely means that the issue is what I think it is in #2538. Resolving the right dependency in .NET Core is much much easier, so we have a well-defined solution that works for PS 6 and 7. |
I also ran into this on a completely clean install and can confirm that installing PowerShell 7 fixed mine as well. |
I had the same "language service could not be started" issue in VS Code. I have both PowerShell and PowerShell Core 7 on Windows. In both with elevated PowerShell commands I set-executionpolicy unrestrected and no longer have an issue. |
didn't work for me either. |
@Meron-cloud thanks--looks like you may be hitting a new issue could you please open a new issue with the information requested in the template it would be really helpful if you could also attach the logs--instructions for how to do that are here |
System Details
System Details Output
Issue Description
All right click console options fail (i.e. Run Selection).
Expected Behaviour
If I highlight code and press F8 (or right click and Run Selection), I expect the command(s) to be run in the terminal window.
Actual Behaviour
A pop-up appears stating
<ConsoleFeature>: Unable to instantiate; language client undefined.
Attached Logs
There are no logs in the extension logs folder (even with logs set to Diagnostic) and the lines below are the only output in the PowerShell Extension console:
The text was updated successfully, but these errors were encountered: