Skip to content

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

Closed

Description

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

Activity

  1. added
    triage-neededNeeds assignment to the proper sub-team
    bugIssue identified by VS Code Team member as probable bug
    on Jun 8, 2020
  2. added
    feature-requestRequest for new features or functionality
    and removed
    triage-neededNeeds assignment to the proper sub-team
    bugIssue identified by VS Code Team member as probable bug
    on Jun 8, 2020
  3. karthiknadig commented on Jun 8, 2020

    @karthiknadig
    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.

  4. luabud commented on Jul 8, 2020

    @luabud
    Member

    Duplicate of #11812.

  5. locked as resolved and limited conversation to collaborators on Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions