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

Allow "Run Python File in Terminal" to accept script arguments #19810

Closed
Diogo-Rossi opened this issue Sep 11, 2022 · 2 comments
Closed

Allow "Run Python File in Terminal" to accept script arguments #19810

Diogo-Rossi opened this issue Sep 11, 2022 · 2 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments area-terminal feature-request Request for new features or functionality needs community feedback Awaiting community feedback

Comments

@Diogo-Rossi
Copy link

Diogo-Rossi commented Sep 11, 2022

We already have the setting "python.terminal.launchArgs", which pass arguments to the python interpreter.

This simple request is to allow arguments to be passed to the python file (script) that is running.

Examples (existing):

  1. If we configure: "python.terminal.launchArgs": ["-i"] and use the command "Run Python File in Terminal"
    it will launch: python -i script.py

  2. If we configure: "python.terminal.launchArgs": ["-m", "IPython", "-i" ] and use the command "Run Python File in Terminal"
    it will launch: python -m IPython -i script.py

Example (requested):

To have a different setting, like, for instance, "python.terminal.scriptArgs" which would pass the arguments to the script when using the command "Run Python File in Terminal", not to the interpreter, i.e.:

"python.terminal.scriptArgs": ["arg1", "arg2"] would make the command launch python script.py arg1 arg2

Related:

The following topics make related requests, but not as simple as this one.

#11812 => Requests more complex configuration
#19784 => Requests the arguments to be passed at run time in the debug launch.

Also see this comment

@Diogo-Rossi Diogo-Rossi added the feature-request Request for new features or functionality label Sep 11, 2022
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 11, 2022
@Diogo-Rossi Diogo-Rossi changed the title [Feature request] Allow "Run Python File in Terminal" to accept arguments [Feature request] Allow "Run Python File in Terminal" to accept script arguments Sep 11, 2022
@karrtikr
Copy link

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

Seems to me that is part of the general issue #11812 and should be solved along with that. You can leave this idea there, and we'll consider it while solving #11812 regardless of whether this issue gets closed.

@karrtikr karrtikr added needs community feedback Awaiting community feedback area-terminal area-environments Features relating to handling interpreter environments and removed triage-needed Needs assignment to the proper sub-team labels Sep 12, 2022
@karrtikr karrtikr changed the title [Feature request] Allow "Run Python File in Terminal" to accept script arguments Allow "Run Python File in Terminal" to accept script arguments Sep 12, 2022
@brettcannon
Copy link
Member

Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments area-terminal feature-request Request for new features or functionality needs community feedback Awaiting community feedback
Projects
None yet
Development

No branches or pull requests

3 participants