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 should save the file first #1316

Closed
qubitron opened this issue Apr 5, 2018 · 0 comments · Fixed by #1432
Closed

Run Python File in Terminal should save the file first #1316

qubitron opened this issue Apr 5, 2018 · 0 comments · Fixed by #1432
Labels
area-terminal feature-request Request for new features or functionality
Milestone

Comments

@qubitron
Copy link

qubitron commented Apr 5, 2018

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Run Python File in Terminal does not save the file before running it in the terminal

Expected behavior

Run Python File in Terminal should save the file before running it in the terminal. I've gotten confused a few times when I type something into a file and try to run it, and it produces unexpected results, only to realize I forgot to save.

Steps to reproduce:

  1. Create a new .py file
  2. Type print("hello world") into the file, but don't save!
  3. Right->click in the editor and select Run Python File in Terminal
  4. Observe no output (because the file was not saved)

Logs

N/A

@qubitron qubitron added the feature-request Request for new features or functionality label Apr 5, 2018
@qubitron qubitron changed the title Run Python File in Terminal should save the active file first Run Python File in Terminal should save the file first Apr 5, 2018
@DonJayamanne DonJayamanne added this to the April 2018 milestone Apr 5, 2018
DonJayamanne added a commit that referenced this issue Apr 23, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants