-
Notifications
You must be signed in to change notification settings - Fork 1.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
Pressing "run python file in terminal" doesn't work #5916
Comments
@Meru Note: This isn't a user error, its a bug at our end and I'm trying to identify the exact cause so we can fix this issue ASAP and release a fix.
|
This issue is currently happening when the user
When opening the Toggle Developer Tools, I get the message below (multiple times but the same message) The following occurs when I click on the file in Visual Studio Code and select Run Python File in Terminal (File path names removed) Python Extension Version: 2019.5.18426 |
Same error for me, simple print("Hello") does not work
|
@ibakirov Please could you check your |
@DonJayamanne default shell is Powershell. Here is the screenshot after I run the menu: |
Hi @ibakirov, thanks for providing more info. The .vscode/settings.json is the workspace settings. Would you mind opening the user settings.json by opening the Command Palette (View > Command Palette...) and looking for "Preferences: Open Settings (JSON)"? Sorry about that, we just want to make sure we understand what's going on. |
@luabud yes, of course.. I have never touched shell settings both in workspace and user settings: |
I am having the same issue since upgrading to v1.35.0. From context menu "run python file in terminal" has no effect, Nothing is logged in the console of the developer tools either. I have the setting "terminal.integrated.shell.windows": "C:\windows\System32\cmd.exe" set in my user settings (see below). I can use ctrl + ' to spawn new cmd prompt which opens to the correct directory and automatically executes to the correct conda env as it used to, I can then simple type python filename.py and runs as expected. Hope this information helps fix, I do use this feature a lot as part of my workflow |
wait until the fix of @DonJayamanne is done (PR Validation) ... we all are waiting for a fix 👍 |
Will fix pushing a release shortly. Apologies for the inconvenience caused |
I confirm |
hola @estebanaranza. Puede abrir un nuevo issue que ofrezca más detalles sobre este error, cómo los pasos para reproducirlo? Aquí: https://github.com/microsoft/vscode-python/issues/new?template=bug_report.md |
hola, cordial saludo, no se que paso, pero ya volvió a funcionar la terminal de python, no le hice nada, solo que la extension de python en visual studio code, me pidio reiniciar y funciono, no se que le hicieron, entiendo poco de esto, apenas estoy aprendiendo, pero gracias por solucionarlo!!! |
Pressing "run python file in terminal" doesn't work since the update. Worked fine with older version of the python extension.
Verified on a clean vscode profile with just one vscode-python
Environment data
Expected behavior
file that is being edited is being executed in terminal
Actual behavior
nothing happens
Steps to reproduce:
The text was updated successfully, but these errors were encountered: