-
Notifications
You must be signed in to change notification settings - Fork 6k
loading ms-python extension in offline mode too slow #4495
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
Comments
Does this happen on VS Code, Codespaces or vscode.dev? |
It happen on my company' s internal cluster and my code-server is deployed on docker without internet access. The log file shows the extension host started loadCommonJSModule (testing-editor-contributions/dist/extension.js) from 10:16:32.480 and completed loading Python extension at 10:18:35.109 (2 minutes). |
Hmmm...it's very hard to tell if this is specific to code-server on not without you testing on Codespaces or vscode.dev. I'm really not sure what we would have down that could have slowed down the extension in offline mode 🤔 It feels like this is something that's specific to the extension and should be raised in their repo, no? |
I also tested in VM Ubuntu to turn off Internet, in order to reproduce the slowness issue. It took 10 seconds to load the extension without internet. With internet, it took 2 seconds. From Chrome, I can see the code-server sent Http Post to "extension.coder.com". In my company' s docker environment, I can see in the "extension host" process, there were two connections in "sync_sent" status. The two connection destinations are public IPs. Can I change configuration in code-server, for disallow the Python extension to connect to public IPs? |
I don't believe so but @code-asher would know forsure |
I think I have seen this before where the extension marketplace is being
queried for some reason. We will need to dig into it to find out what
is going on.
|
I collected more detailed log today. Below are my observations:
Below is the full log for loading python extension.
|
same problem~ |
Changing the Online Services Settings: |
I wanted to dig into this but just do not have the time. It might be better to report this upstream, it would need to be fixed there anyway. |
The same problem was encountered, but it did not seem to be related to telemetry. It may be a problem with the source of the application market (openvsx) |
Uh oh!
There was an error while loading. Please reload this page.
OS/Web Information
code-server --version
: 3.11.1Steps to Reproduce
Expected
My docker container doesn't have Internet. The code-server can start properly. I expect loading ms-python extension (which has been installed offline) can complete in 20 seconds in version 3.11.1.
Actual
While activating the ms-python extension, it takes more than 2 minutes.
My script to start code-server is below:
Logs
Screenshot
Notes
This issue can be reproduced in VS Code: Yes/No
The text was updated successfully, but these errors were encountered: