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

Run Python File in Terminal doesn't stop existing run #12185

Closed
rmccampbell opened this issue Jun 8, 2020 · 2 comments
Closed

Run Python File in Terminal doesn't stop existing run #12185

rmccampbell opened this issue Jun 8, 2020 · 2 comments
Labels
feature-request Request for new features or functionality

Comments

@rmccampbell
Copy link

When I click the "Run Python File in Terminal" button, if a program is already running, it will not be interrupted; instead it will just try to paste the python command into the terminal. This also may be interpreted as input to the already running command.

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.80290
  • OS and version: Windows 10.0.18363 Build 18363
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): Jedi
  • Value of the python.languageServer setting: Microsoft

Expected behaviour

An existing script run will be killed and the new script run will execute in the terminal

Actual behaviour

The script will continue running and the new run command is pasted as keyboard input

Steps to reproduce:

  1. Open python script which doesn't terminate immediately
  2. Click "Run Python File in Terminal"
  3. Modify script
  4. Click "Run Python File in Terminal" again
  5. The original version keeps running
@rmccampbell rmccampbell added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 8, 2020
@karthiknadig karthiknadig added needs decision feature-request Request for new features or functionality and removed triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 8, 2020
@karthiknadig
Copy link
Member

This is something we don't support. Changing the type to enhancement. We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.

@luabud
Copy link
Member

luabud commented Jul 8, 2020

Duplicate of #11812.

@luabud luabud closed this as completed Jul 8, 2020
@ghost ghost removed the needs decision label Jul 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants