Skip to content
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

VSCode Terminal w/ or w/o Python Extension fails to Output anything, even error's #79407

Closed
cikent opened this issue Aug 19, 2019 · 3 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@cikent
Copy link

cikent commented Aug 19, 2019

Description:

VSCode fails to execute my Python scripts when I use the right-click context menu option: "Run Python File in Terminal". Seems like the Terminal just fails to work entirely, its completely non-interactive and I get the same result when NO extensions are installed.

The scripts run just fine in Powershell without issue.

Pre-conditions & Setup:

  • Windows 7 OS
  • Service Pack 1
  • Python Version v3.7.4
  • VS Code v1.37.1

Steps to Reproduce:

  1. Open VSCode
  2. Navigate to desired Python file via Explorer
  3. Select file
  4. Right-click on body of file -> choose option: "Run Python File in Terminal"

Actual Result:

  • VS Code Terminal populates
  • Terminal type reflects Python
  • Terminal display is completely blank
  • Problems Tab reads: No problems have been detected in the workplace so far.
  • Output Tab reads: Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
  • Same exact file executes just fine from Powershell with the following command: python %filename%

Other troubleshooting actions I've already performed (multiple times):

  1. Deleting the Python extension and re-downloading it multiple times (x4 or 5 times) from "C:\Users<userdir>.vscode\extensions"
  2. Uninstalling and re-installing VSCode
  3. Deleting content from the following directories after VSCode uninstall before re-install:

%USERPROFILE%.vscode\extensions

%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code

%USERPROFILE%\AppData\Roaming\Code

  1. Upgrade my Python version from 3.7.0 to 3.7.4
  2. Updated VSCode from install of v1.37.0 to v1.37.1
  3. Restart Computer

Can't post pictures due to low rep. See them here:

Notes:
Again, I want to emphasize, this still occurs even without ANY extension's installed (i.e. default install). It's just completely non-interactive.

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Aug 19, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@cikent cikent changed the title VSCode Terminal w/ Python Extension fails to Output anything, even error's VSCode Terminal w/ or w/o Python Extension fails to Output anything, even error's Aug 19, 2019
@Tyriar
Copy link
Member

Tyriar commented Aug 19, 2019

/duplicate #43169

@Tyriar Tyriar closed this as completed Aug 19, 2019
@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 19, 2019
@cikent
Copy link
Author

cikent commented Aug 20, 2019 via email

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants