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

No Python run/debug configuration options shown #386

Open
jimisola opened this issue Jul 17, 2024 · 8 comments
Open

No Python run/debug configuration options shown #386

jimisola opened this issue Jul 17, 2024 · 8 comments
Labels
bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on

Comments

@jimisola
Copy link

When in a python file with a main method, I choose Run -> Add configuration and this is what shows.
All the Python options are missing. I've looked in output Windows for Python Debugger and LS, but there are no errors.

image

As per instruction: microsoft/vscode-python#23686 (reply in thread)

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 17, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jul 17, 2024
@paulacamargo25
Copy link
Contributor

Thanks for your bug report, could you check if you can add a configuration in the launch.json file? I see that you are trying to add it in the settings.json.

@paulacamargo25 paulacamargo25 added the info-needed Issue requires more information from poster label Jul 19, 2024
@lfvjimisola
Copy link

Sorry. I just noticed that I actually never sent my long answer 😠

Adding a configuration to launch.json works. The issue is that python don't show in the list as it does for other languages.

@paulacamargo25
Copy link
Contributor

Oh, I see. That sometimes happens because the Python Debugger Extension is not activated yet. Try opening a Python file first and then try again. Thanks.

Copy link

Hey @karthiknadig, this issue might need further attention.

@jimisola, you can help us out by closing this issue if the problem no longer exists, or adding more information.

@eleanorjboyd
Copy link
Member

closing, please comment and we can reopen if this is still an issue.

@eleanorjboyd eleanorjboyd closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
@jimisola
Copy link
Author

We stumbled upon this again Monday. I'll see if I can reproduce the steps again tomorrow and comment here if so.

@jimisola
Copy link
Author

jimisola commented Sep 19, 2024

@eleanorjboyd Please re-open

TLDR; Python is not in the Add Configuration context list for workspace.json, launch.json or settings.json

To reproduce:

  1. Stand in .py file (or not)
  2. Run and Debug view
  3. Add Config
    a. Add Config (workspace) [workspace.json]
    b. Add Config () [launch.json]
  4. Notice that Python is missing in list for both launch.json

or

  1. Ctrl-Shift-P
  2. Debug: Add Configuration [settings.json]
  3. Notice that Python is missing in list

@eleanorjboyd eleanorjboyd reopened this Sep 23, 2024
Copy link

Hey @karthiknadig, this issue might need further attention.

@jimisola, you can help us out by closing this issue if the problem no longer exists, or adding more information.

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team info-needed Issue requires more information from poster labels Oct 24, 2024
@karthiknadig karthiknadig removed their assignment Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

5 participants