-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"Python extension loading" super slow #14639
Comments
It seems to be linked to instable VPN connection. However, I had the same problem at my parents house few weeks ago. As soon as the connexion is not perfect VScode heavily struggle to connect. So obviously, having a perfect connexion solve things, but when I'm able to watch youtube/twitch in 1080p, use Jupyterhub, I'm surprised that using VPN needs more bandwidths to start a kernel. |
@jacquespeeters This occurs potentially because we try to run python for each of the installed and know virtual environments. We are working on refactoring how we look for environments to avoid this on extension load. |
Great news, thank you for giving me visibility. |
Hi, Regards |
I still have huge trouble connecting in remote, it becomes really difficult to use VScode. Here is another round of log |
A quick update on this issue. We have a new environment discovery module, we are working on getting it to parity with the types of environments that we support. A change we did was to avoid running python and get as much detail about an environment using meta-data only. In cases where we do need to run python we throttle the number of processes to reduce the load. We are working on some bugs with the new code, when it is ready I will report back here with instructions on how to enable it. |
We have "pythondiscoverymodule" experiment that you can opt into to see if this helps with the loading issue, this should also reduce high-CPU issues. |
Please try opting into
|
I wasn't able to enable the experimental option VSCode Info: |
Was this rolled in to 1.57.1? |
That is VS Code version number not the python extension version number. But yes, this is available in the latest version of the extension. you might want to try opting into |
Environment data
python.languageServer
setting: JediExpected behaviour
Be able to connect to VScode in remote in less than 15mins
Actual behaviour
Connects after 10/15 mins
Steps to reproduce:
Logs
I succesfully connect to notebooks thanks to our Jupyterhub. Don't know if my VPN is not stable enough however it is strange because I do not have problems on youtube for example.
The text was updated successfully, but these errors were encountered: