-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Terminal process terminated with exit code 4294901760 #174658
Comments
Additional message maybe of help I found:
If you'd like to reproduce this, follow these steps:
|
Is there a reason you are using windows powershell? Can you try to reproduce with an updated powershell version? |
The powershell I used is come with win10 installed, basically I do not use it at all in daily work, so there's no reason for me to install an updated version of powershell. For this issue, I installed In the I found this issue was reported at |
Unfortunately by correcting the commandline string VSCode generated did not fix the problem according to my tests. So, is there any way to make VSCode terminal work fine with Windows PowerShell v5.1? Will there be a bugfix? I'm really not sure whether installing pwsh7 will break the current development environment on some of our machines. |
This looks like the https://marketplace.visualstudio.com/items?itemName=donjayamanne.python-environment-manager extension. |
Closing this issue in favour of the extension bug DonJayamanne/vscode-python-manager#54 |
I searched issues list and found several similar issues reported but nothing has been settled.
Here's my steps to reproduce this problem:
VSCode-win32-x64-1.75.1.zip
toC:\VSCode
C:\VSCode\data
python-3.11.2-amd64.exe
frompython.org
Python by microsoft
andPython Environment Manager by Don Jayamanne
Python
pane byPython Environment Manager
, clickRefresh Environments
button which was on top-right of the pane, the python installed should be found and put underGlobal
node in the paneGlobal -> Python (3.11.2) C:\XXXX....
, theOpen in Terminal
andSet as active workspace interpreter
buttons should appear on the right most of the nodeOpen in Terminal
button, a terminal pane should appear at bottom of VSCode, giving an output message which sayingInternal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d.
, then the terminal process terminated and terminal pane was closed, a notification banner popped up at right-bottom of VSCode sayingThe terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: 4294901760.
I monitored the powershell.exe process's start commandline using ProcessMonitor (from sysinternals) and found the commandline is:
This commandline works well in a cmd console but can not run in a powershell console and the pwsh shell report an error:
This is because powershell can not escape
\"
to"
but should be [ `" ] in the commandline.I don't know if this is the cause of the error, and also I don't know if this error is caused by the Python Environment Manager extension.
The text was updated successfully, but these errors were encountered: