Extension host crashes when python extension is loads
See original GitHub issueEnvironment data
- VS Code version: 1.54.1
- Extension version (available under the Extensions sidebar): v2021.2.625869727
- OS and version: Mac OS 10.15.7
- Python version (& distribution if applicable, e.g. Anaconda): 3.7 (brew)
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
- Relevant/affected Python packages and their versions:
- Relevant/affected Python-related VS Code extensions and their versions:
- Value of the
python.languageServer
setting: Pylance
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
To load
Actual behaviour
Crashes extension host on startup
Logs
Console Developer Tools
events.js:292 throw er; // Unhandled 'error' event ^[Error: read ENOTCONN at tryReadStart (net.js:573:20) at Socket._read (net.js:584:5) at Socket.Readable.read (_stream_readable.js:467:10) at Socket.read (net.js:624:39) at new Socket (net.js:376:12) at Object.Socket (net.js:267:41) at createSocket (internal/child_process.js:314:14) at ChildProcess.spawn (internal/child_process.js:437:23) at Object.spawn (child_process.js:557:9) at Object.t.plainExec (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:9:702198) at o.exec (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:29:17354) at r.isCondaInCurrentPath (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:78:58060) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async r.getCondaFileImpl (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:78:61125) at async r.getCondaFile (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:78:57960) at async r.getCondaInfo (/Users/bboutonnet@tripactions.com/.vscode/extensions/ms-python.python-2021.2.625869727/out/client/extension.js:78:58162)Emitted 'error' event on Socket instance at: at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21)] { errno: 'ENOTCONN', code: 'ENOTCONN', syscall: 'read', vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {} ]}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Python Extension crashes Extension host on load (M1 Apple ...
Uninstall Python extension (if you have pylance uninstall it first). Close all instances of VS Code. Go to ~/.vscode/extensions . Delete any ...
Read more >Crash extension modules
Loading the extension registers 'epython' command which can be used to execute Python programs. To minimize the extension size, only parts of Python...
Read more >Use Visual Studio Code SSH without crashing your server
Hit the extensions button in VS Code (which looks like building blocks on the left toolbar); Search for '@builtin TypeScript'. Disable the TypeScript...
Read more >VS Code Extension Host is running an old version of Node.js
The extension host doesn't seem to be using nvm. So, it was just executing the basic version on my machine, which seems to...
Read more >Extension Host - Visual Studio Code
The Visual Studio Code Extension Host is responsible for managing extensions and ensuring the stability and performance of Visual Studio Code.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just released the fix in the stable version of the extension as well!
Good point 😅 sorry for missing that.