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

Constant looping of selecting Python interpreter and launch.json #216

Closed
millfields99 opened this issue Feb 16, 2024 · 10 comments · Fixed by #253
Closed

Constant looping of selecting Python interpreter and launch.json #216

millfields99 opened this issue Feb 16, 2024 · 10 comments · Fixed by #253
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Milestone

Comments

@millfields99
Copy link

Debugger goes through a loop of:

  1. After hitting debug (F5 or debug icon) asks to change python interpreter - even though a valid python interpreter already selected
  2. I select exiting or new python interpreter
  3. Get a window saying debug stopped and need to open launch.json
  4. Pre existing setup for python seems ok and no other option avaialble
  5. Retry debug F5 repeats process

Same issues with selecting pre-release version of extension

Python version 3.11.5, Mac OS Sonoma, miniconda env

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 16, 2024
@ssslakter
Copy link

I have the same issue on windows in pip venv. Only reverting to the old 2023.22.1 version of python extension and using its debugger helped =(

@kartikgupta-db
Copy link

kartikgupta-db commented Feb 21, 2024

Similar issue. The debug icon on the top right does not work for me. Creating a basic launch config (from the python launch config creation wizard) and running from there gets me this error. No trace or debug logs either.

Reverting to the old version (as @ssslakter mentioned) helps.

Python 3.10.11 and 3.11.3. Mac OS Sonoma. Venv and miniconda env.

@kartikgupta-db
Copy link

@karrtikr @paulacamargo25
I think I have found the issue.

It seems that the extension is unable to see the python extension until we add explicit dependency on the python extension in package.json.

To reproduce.

  1. Add a trace log to src/extension/common/python.ts: activateExtension printing all extension IDs.
  2. Install the debugger extension (from vsix) and the python extension.
  3. Try running from launch json. The trace does not contain ms-python.python.

With explicit dependency on ms-python.python extension, this is fixed.

Also, this fixes #211 as well.

@karrtikr karrtikr removed their assignment Feb 23, 2024
@kartikgupta-db
Copy link

kartikgupta-db commented Feb 27, 2024

@binderjoe this issue is also a blocker for users of the Databricks Extension, since this means users are unable to debug their code completely. Would be great to get a resolution here as well.

cc @fjakobs @saadansari-db @ilia-db

@paulacamargo25
Copy link
Contributor

paulacamargo25 commented Feb 27, 2024

Thanks for your investigation @kartikgupta-db , I have been trying to reproduce the error but I can't, would you have an example with which I can reproduce it?

So you mention the problem is because the python extension is not activated? or its not installed? It should find the Python extension because it is installed.

Thanks

@paulacamargo25 paulacamargo25 added the info-needed Issue requires more information from poster label Feb 28, 2024
@kartikgupta-db
Copy link

@paulacamargo25 the issue is even there when the python extension is installed. I am a developer for the Databricks Extension, and our extension is able to pickup the python interpreter, but the python debugger extension errors, and does not see the python extension.

I was able to only repro this when I installed from vsix and not run with nodejs debugger attached.

I need to setup the project again to grab a video of this. I will send that over if that helps.

@paulacamargo25 paulacamargo25 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 Mar 4, 2024
@paulacamargo25 paulacamargo25 added this to the March 2024 milestone Mar 4, 2024
@alexey2baranov
Copy link

alexey2baranov commented Mar 5, 2024

I wonder why so few people like this issue? As I can see on the extension page, it has been downloaded 17 million times. Also why it have been fixed so slow.

@paulacamargo25
Copy link
Contributor

@alexey2baranov thank for your comment, as you can see, it is an error that is only affecting a few users, and also not being able to reproduce it on my computer makes it slower to find a solution. There seems to be a problem in some specific cases that the Python extension cannot be located/activated. This is why as a solution we will update the way in how the information is obtained from the Python Extension.

You have to understand that we follow a process to prioritize issues and solve errors. When this solution is in insiders I will comment on this issue so that you can test it.

Thank you

@paulacamargo25
Copy link
Contributor

@millfields99 @kartikgupta-db @alexey2baranov Could you try again with the last pre-release version of the Python Debugger Extension 2024.3.10661804 and verify that the error no longer occurs? thanks

@paulacamargo25 paulacamargo25 added the verification-needed Verification of issue is requested label Mar 6, 2024
@deepak1556 deepak1556 removed the verification-needed Verification of issue is requested label Mar 27, 2024
@deepak1556
Copy link

@paulacamargo25 bugs don't need verification-needed label, they are only used for feature requests that don't get a TPI.

@TylerLeonhardt TylerLeonhardt added the author-verification-requested Issues potentially verifiable by issue author label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants