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

"Python extension loading" super slow #14639

Closed
jacquespeeters opened this issue Nov 5, 2020 · 11 comments
Closed

"Python extension loading" super slow #14639

jacquespeeters opened this issue Nov 5, 2020 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@jacquespeeters
Copy link

Environment data

  • VS Code version: 1.50.1 (local)
  • Extension version (available under the Extensions sidebar): local : python v2020.10.332292344 remote :v2020.10.332292344
  • OS and version: Ubuntu 19.10
  • Python version (& distribution if applicable, e.g. Anaconda): XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Value of the python.languageServer setting: Jedi

Expected behaviour

Be able to connect to VScode in remote in less than 15mins

Actual behaviour

Connects after 10/15 mins

Steps to reproduce:

  • Connect to my company VPN
  • open VScode
  • connect to remote ssh (working)
  • open a project and try to load kernels
  1. XXX

Logs

console.ts:137 [Extension Host] (node:17707) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:70
workbench.html:1 A cookie associated with a cross-site resource at https://visualstudio.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
console.ts:137 [Extension Host] (node:28811) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:70
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:33637...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][Management   ][ae41d…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][Management   ][ae41d…][reconnect] waiting for 5 seconds before reconnecting...
extensionsViews.ts:288 Error querying extensions gallery Canceled
(anonymous) @ extensionsViews.ts:280
log.ts:185  INFO [remote-connection][Management   ][ae41d…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][Management   ][ae41d…][reconnect] connecting to 127.0.0.1:46331...
log.ts:185  INFO [remote-connection][Management   ][ae41d…][reconnect] reconnected!
log.ts:197   ERR read ECONNRESET: Error: read ECONNRESET
	at TCP.onStreamRead (internal/stream_base_commons.js:200:27)
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:197   ERR Unknown terminal: 4: Error: Unknown terminal: 4
    at f._getTerminalProcess (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5247:326)
    at f._onRequestLatency (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5246:792)
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
localProcessExtensionHost.ts:257 Extension Host
localProcessExtensionHost.ts:258 Debugger attached.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:197   ERR write EPIPE: Error: write EPIPE
	at afterWriteDispatched (internal/stream_base_commons.js:149:25)
	at writeGeneric (internal/stream_base_commons.js:140:3)
	at Socket._writeGeneric (net.js:776:11)
	at Socket._write (net.js:788:8)
	at doWrite (_stream_writable.js:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at Socket.Writable.write (_stream_writable.js:309:11)
	at Socket.ondata (_stream_readable.js:728:22)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)
console.ts:137 [Extension Host] Error: Unexpected SIGPIPE	at process.<anonymous> (/usr/share/code/resources/app/out/bootstrap.js:5:377)	at process.emit (events.js:223:5)
t.log @ console.ts:70
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:197   ERR write EPIPE: Error: write EPIPE
	at afterWriteDispatched (internal/stream_base_commons.js:149:25)
	at writeGeneric (internal/stream_base_commons.js:140:3)
	at Socket._writeGeneric (net.js:776:11)
	at Socket._write (net.js:788:8)
	at doWrite (_stream_writable.js:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at Socket.Writable.write (_stream_writable.js:309:11)
	at Socket.ondata (_stream_readable.js:728:22)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)
console.ts:137 [Extension Host] Error: Unexpected SIGPIPE	at process.<anonymous> (/usr/share/code/resources/app/out/bootstrap.js:5:377)	at process.emit (events.js:223:5)
t.log @ console.ts:70
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/semver-umd/lib/semver-umd.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/tas-client-umd/lib/tas-client-umd.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm/lib/xterm.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-unicode11/lib/xterm-addon-unicode11.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-search/lib/xterm-addon-search.js.map: 
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/vscode-textmate/release/main.js.map: 
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:197   ERR write EPIPE: Error: write EPIPE
	at afterWriteDispatched (internal/stream_base_commons.js:149:25)
	at writeGeneric (internal/stream_base_commons.js:140:3)
	at Socket._writeGeneric (net.js:776:11)
	at Socket._write (net.js:788:8)
	at doWrite (_stream_writable.js:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at Socket.Writable.write (_stream_writable.js:309:11)
	at Socket.ondata (_stream_readable.js:728:22)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)
console.ts:137 [Extension Host] Error: Unexpected SIGPIPE	at process.<anonymous> (/usr/share/code/resources/app/out/bootstrap.js:5:377)	at process.emit (events.js:223:5)
t.log @ console.ts:70
$logExtensionHostMessage @ remoteConsoleUtil.ts:29
_doInvokeHandler @ rpcProtocol.ts:401
_invokeHandler @ rpcProtocol.ts:332
_receiveRequest @ rpcProtocol.ts:278
_receiveOneMessage @ rpcProtocol.ts:220
(anonymous) @ rpcProtocol.ts:93
fire @ event.ts:535
fire @ ipc.net.ts:407
_receiveMessage @ ipc.net.ts:755
(anonymous) @ ipc.net.ts:630
fire @ event.ts:535
acceptChunk @ ipc.net.ts:224
(anonymous) @ ipc.net.ts:149
t @ ipc.net.ts:892
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] resolving connection...
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] connecting to 127.0.0.1:46331...
log.ts:197   ERR write EPIPE: Error: write EPIPE
	at afterWriteDispatched (internal/stream_base_commons.js:149:25)
	at writeGeneric (internal/stream_base_commons.js:140:3)
	at Socket._writeGeneric (net.js:776:11)
	at Socket._write (net.js:788:8)
	at doWrite (_stream_writable.js:435:12)
	at writeOrBuffer (_stream_writable.js:419:5)
	at Socket.Writable.write (_stream_writable.js:309:11)
	at Socket.ondata (_stream_readable.js:728:22)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:181:23)
console.ts:137 [Extension Host] Error: Unexpected SIGPIPE	at process.<anonymous> (/usr/share/code/resources/app/out/bootstrap.js:5:377)	at process.emit (events.js:223:5)
t.log @ console.ts:70
$logExtensionHostMessage @ remoteConsoleUtil.ts:29
_doInvokeHandler @ rpcProtocol.ts:401
_invokeHandler @ rpcProtocol.ts:332
_receiveRequest @ rpcProtocol.ts:278
_receiveOneMessage @ rpcProtocol.ts:220
(anonymous) @ rpcProtocol.ts:93
fire @ event.ts:535
fire @ ipc.net.ts:407
_receiveMessage @ ipc.net.ts:755
(anonymous) @ ipc.net.ts:630
fire @ event.ts:535
acceptChunk @ ipc.net.ts:224
(anonymous) @ ipc.net.ts:149
t @ ipc.net.ts:892
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
log.ts:185  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] reconnected!
​  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] starting reconnecting loop. You can get more information with the trace log level.
​  INFO [remote-connection][ExtensionHost][bfd86…][reconnect] waiting for 5 seconds before reconnecting...

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.

@jacquespeeters jacquespeeters added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Nov 5, 2020
@jacquespeeters
Copy link
Author

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.

@karthiknadig karthiknadig self-assigned this Nov 9, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Nov 9, 2020
@karthiknadig
Copy link
Member

@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.

@jacquespeeters
Copy link
Author

Great news, thank you for giving me visibility.

@georgef-me
Copy link

georgef-me commented Jan 3, 2021

Hi,
Adding more information to whats allready provided - as I have the same issue "Python extension takes minutes to load".
In my case :
a. there is no VPN involved
b. 3 Virtual enviornements
c. Using Conda
d. Win10
e. VS Code 1.52.1

Regards

@jacquespeeters
Copy link
Author

I still have huge trouble connecting in remote, it becomes really difficult to use VScode.

Here is another round of log
vscode_slow_connexion.log

@karthiknadig
Copy link
Member

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.

@karthiknadig
Copy link
Member

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.

@karthiknadig
Copy link
Member

Please try opting into pythondiscoverymodule experiment. This should resolve most of the issues where the extension ran too many python processes on startup. This will soon be enabled for all users, so closing this. Anyone running into this issue please try this and if you run into any bugs please file separate issues.

"python.experiments.optInto": ["pythonDiscoveryModule"]

@parthea
Copy link

parthea commented May 5, 2021

I wasn't able to enable the experimental option pythonDiscoveryModule in version. Rolling back to an earlier version of the Python extension seemed to solve my issue. (Extensions > Python > Right-click > install another version > v2021.3.680753044).

VSCode Info:
Version: 1.55.1
Commit: 08a217c4d27a02a5bcde898fd7981bda5b49391b
Date: 2021-04-07T18:22:52.186Z (3 wks ago)

@afminmax
Copy link

afminmax commented Jun 25, 2021

Please try opting into pythondiscoverymodule experiment. This should resolve most of the issues where the extension ran too many python processes on startup. This will soon be enabled for all users, so closing this. Anyone running into this issue please try this and if you run into any bugs please file separate issues.

"python.experiments.optInto": ["pythonDiscoveryModule"]

Was this rolled in to 1.57.1?
Connecting to and using a remote VM via SSH is unbearably slow still when the Python extension process is running.

@karthiknadig
Copy link
Member

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 "python.experiments.optInto": ["pythonDiscoveryModuleWithoutWatcher"], this removes additional things to reduce that we search for. hopefully that should get you better perf.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants