microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.34k stars 1.19k forks source link

Run Python File button tries to run unsaved file #24381

Open injust opened 3 weeks ago

injust commented 3 weeks ago

Behaviour

Run Python File button tries to run /path/to/python3 Untitled-N if the save dialog is cancelled.

Steps to reproduce:

  1. Create an unsaved Python file
  2. Click the Run Python File button
  3. Cancel out of the Save dialog
  4. VS Code tries to run /path/to/python3 Untitled-N in the terminal.

Diagnostic data

Output for Python in the Output panel

``` 2024-11-04 07:01:25.466 [info] Send text to terminal: /usr/local/bin/python3 Untitled-11 ```

injust commented 3 weeks ago

This is a bug, but the Issue Reporter doesn't work for me -- the Create on GitHub button appears to do nothing, even after filling everything out.

anthonykim1 commented 3 weeks ago

Thanks for this. Could you file another issue for not being able to use the issue reporter?