Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExecution policy should be checked client side before starting PowerShell Editor Services to prevent cryptic start issues #2916
Comments
|
Hi @giojo81, do you have the other logs generated by the back-end of the extension? I'm not sure we can work out what's going on without them. Also are any errors present in the terminal or on the screen? |
|
Dear @rjmholt , as soon as I've activated the mode
The console asked me this question.
I've answered A, then the SHELL started correctly. Thank you very much for your suggestion and, as suggestion, could be interesting to prompt in some way the user in case there are blocking messages like this one. Cheers! |
|
I would have expected that prompt to occur without the diagnostic; it's a PowerShell prompt, not one we make ourselves. It seems that this is an execution policy issue |
|
It's odd to me as well that this prompt showed up when you set the log level to diagnostic. Can you provide the other logs @giojo81? With that said, it would be nice if the vscode-powershell side could check for execution policy and warn users about this type of thing ahead of time. |
|
Dear @TylerLeonhardt , I can attach these other informations
|

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Hello everyone,
I don't manage to execute the Console Preview, still the message "Unable to instantiate; language client undefined".
Even though I tried to see past issued, I coudn't manage to solve :(
If I install PowerShell 7.0 works correctly, but I will need to use 5.1 ones for project reasons.
ISE 5.1 is working fine, but.. VS code is another story!
Everything with latest version I'm afraid...
Here is what I get:
Any idea?!
Thank you!