-
Notifications
You must be signed in to change notification settings - Fork 94
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
Opening to your /Users/davis/
folder will near infinitely "discover interpreters" in the Console
#2234
Comments
It also takes 10-15 seconds to discover interpreters after she hits |
I don't know for sure, but my guess would be that the Python extension is recursively searching the workspace folder for things like venvs. |
Strange, I can only repro this in a release build but not in local dev. Looking at the
The duration between the first two lines is from when the Python extension registers the runtime discoverer until Positron requests the first item. The last line is when Python's discovery is completed. |
@wesm hit this too, Slack thread here and relevant info quoted below. We may want to consider moving this to Public Beta.
The logs show that both |
Yeah, this is a REALLY bad way for the application to fail. If I were an end user, an issue like this would probably be enough for me to bounce. Some users may have lots of Python environments, so:
|
Wes, I have a PR in the works which should address both of those points. (It doesn't do anything about Python discovery being slow, though.) |
@jmcphers that's great to know. I question whether it is necessary to re-check all Python environments every time the application starts up. It seems like it would be better to:
This would convert environment discovery in the well-behaved case from an every-time cost to a one-time cost. I haven't looked yet at other open issues about this. Another option would be to only do the ipykernel check when trying to launch an environment, rather than trying to filter them all out up front. I reinstalled macOS on my computer this weekend and things appear to be speedy again, but this seems to align with my anecdotal observation that macOS major releases are degrading the non-consumer user experience and making things worse for developers year over year. |
@mine-cetinkaya-rundel did this out of curiosity, but it would be nice to look into what is going on here.
It look roughly 5 minutes to finally finish discovering interpreters - is it something we do in that folder, or is it unrelated that it takes this long?
The text was updated successfully, but these errors were encountered: