-
Notifications
You must be signed in to change notification settings - Fork 510
Fail Starting Powershell - VS Code #3827
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
@itconsultingnc it looks like you have both the stable and preview extensions installed simultaneously, can you try running preview extension only? |
Hi , thank you for your advise. |
Have you tried it in a fresh session with no profile, or tried doing an isolated vscode install by downloading the zip, extracting it, and placing a "data" folder in the resulting extraction? I can't reproduce this on a fresh installation, so we need to know what's different about your environment that is triggering this. |
Hi, |
Hi, |
@andschwa maybe something in your build pipeline hardcoded something somewhere? EDIT: Nevermind this is probably the symbol PDBs Maybe a regression of #3297? |
I am not using Azure pipelines. |
@itconsultingnc have you tried on a different computer or a fresh user profile? Can you potentially enable the PSES diagnostic logs and get a capture? |
Hi, Thank you |
@andschwa @SeeminglyScience maybe something to do with the input/output encoding?
Only thing I can see as a possibility. |
Hi, |
@itconsultingnc The only thing I can see unusual is that it appears you are using a non-English computer, I don't know if you have the ability to change the language just to test that aspect of it. |
This issue was closed automatically as repro info was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information! |
Hi, |
Hi, adding extrapaths worked , but this is the only powershell version working now ... "powershell.powerShellAdditionalExePaths": [ |
What do you mean exactly by this? |
This makes sense to be honest. Windows PowerShell 5.1 support is "best effort" as it's missing a lot of the improvements we rely on to make things stable. If the extension is working for you with the most recent version of PowerShell (e.g. |
I mean I am not using Azure Pipeline, just Azure Function. |
I started seeing this same error about 2-3 days ago. I am using: |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
Hello @ajbobo-nice! The latest code is available in the PowerShell Preview for VS Code, and includes a myriad of fixes. Could you verify if this issue still reproduces using the preview extension? Please note that this preview is likely to include other bugs, and you should feel free to file new issues for those so we can work through them. Thanks again! |
@andschwa - Thank you for your quick response. To keep things clean, I just logged out of VSCode, uninstalled all of my extensions, then deleted the same folders as before. I installed PowerShell Preview in this (more or less) fresh environment and the error still appears when I start the PowerShell Extension. |
Hm...does it work if you switch it to PowerShell 7? We unfortunately support PowerShell 5.1 as "best-effort," as it lacks so many of the APIs we require for a stable experience that just about anything can break it (for instance, it doesn't have Assembly Load Contexts which means any installed module or dependency can bring in a DLL that compromises compatibility). |
I installed PowerShell 7.2.6 and that works nicely. Thank you for your help! |
Fantastic, glad we got you going again! PowerShell 7 should be a great experience. |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
@henrystaples @itconsultingnc @ajbobo-nice Good news! We finally managed to figure out the root cause of (at least) the original posted problem in this issue. We'll have a new preview out hopefully this month with the fix (though we're dependent on a dependency to take our PR and get a new version of their own out, so it may be a bit). (Notably this only effects Windows PowerShell 5.1.) |
I have just started having a similar issue. I've downgraded to older versions of VSCode but this doesn't fix this. Is this fix in 1.73.1 or is it still in preview? |
Thank you for your comment, but please note that this issue has been closed for over a week. For better visibility, consider opening a new issue with a link to this instead. |
The fix is in an update to the PowerShell Extension not VS Code itself. Can you check what version of the extension you have installed? |
Hi. I'm currently using v2022.11.0 and have tried the preview V2022.11.1 Both exhibit the same behaviour. Meantime I've just discovered current open issue #4278 (#4278), which is an exact match to my issue, so I'll follow from there. I should have checked the open items first - but this is only my second-ever comment on GitHub! :D |
Thanks @Aberlake! |
Hey @Aberlake can you please try the latest PowerShell Preview for VS Code and see if this is fixed? |
As a followup, I got connected to the nightly Dev installs and am able to
run v7.2.5 Powershell Terminal in VS Code.
> Henry
*From:* Andy Jordan ***@***.***>
*Sent:* Tuesday, November 29, 2022 5:58 PM
*To:* PowerShell/vscode-powershell ***@***.***>
*Cc:* Henry Staples ***@***.***>; Mention <
***@***.***>
*Subject:* Re: [PowerShell/vscode-powershell] Fail Starting Powershell - VS
Code (Issue #3827)
Hey @Aberlake <https://github.com/Aberlake> can you please try the
latest PowerShell
Preview for VS Code
<https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell-Preview>
and see if this is fixed?
—
Reply to this email directly, view it on GitHub
<#3827 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHB6FER5BT6YLFBO2CMRLH3WK2C6FANCNFSM5OJ4BLRA>
.
You are receiving this because you were mentioned.Message ID: <
***@***.***>
|
Prerequisites
Summary
Hi,
When opening Visual Studio Code, powershell try to start, but failed.
With this error
Try with version of powershell extension :
PowerShell Integrated Console v2021.12.0
and
PowerShell Preview Integrated Console v2022.2.0
Same problem.
A few day ago, everything was working well, I don't know if some update occur, but right now it's not working anymore.
Windows 10 Entreprise x64 10.0.19044
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
open Visual studio code

try to start Powershell
Visuals
No response
Logs
EditorServices.log :
The text was updated successfully, but these errors were encountered: