Every time I launch VS code, the Pylance server crashes 5 times in in 3 minutes, or so the output terminal says. The server stops trying to relaunch and I lose out on a handful of features as a result. Anyone else know how to resolve this issue?
This is the little crash message I get on launch
I’ve tried completely removing the python extensions and reinstalling as per someone’s recommendation, but that didn’t help. This began happening out of the blue. No updates that I noticed, and no files deleted on my part.
2
Answers
Update your Python and Pylance expansions to the latest version.
Or install pre-release version.
If the error continues, follow these steps:
Considering the timing of this question being posted, I suspect that this might be a case of the type of issue described in Pylance server crashes 5 times without restart every time I open VSCode on Win11 #5055. Go check that issue ticket out. One user reported that they get those crashes with version 2023.10.40 to version 23.10.50 of the Pylance extension, and that rolling back to 2023.10.30 "fixes" it (you could also try switching to the pre-release channel, which at the time of this writing is at version 2023.10.53).
If that issue ticket doesn’t match your issue ticket, see these other ones that cropped up near the same time: