-
Notifications
You must be signed in to change notification settings - Fork 765
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
Server crashes and cannot restart #5085
Comments
Edit: Nope. Happened again with the new notebook. Took much longer, though. |
... Okay, after reading the logs myself and experimenting, it seems that (most of the time?) deleting a cell after Pylance has had a chance to look at it (e.g. if I define a function and evaluate the cell) crashes the server. Some other factor causes this to be fatal/the server to fail to restart, so after deleting enough cells the server just crashes and stays down. |
I also have same issue. How fix it. Is there workaround? |
This should be a dupe of #5071. There's no workaround (other than not deleting a cell). I'd recommend switching to the stable version for now. The fix for 5071 should be in our next prerelease. |
Environment data
Code Snippet
Not applicable; happens with all ipynb in my current window.
Repro Steps
My precise setup involves running VSCode over WSL, on Ubuntu. I'm not entirely sure this is required for the crash to occur. Other than that, open an ipynb, enter some code to get Pylance running, then just wait a little while.
Expected behavior
Pylance should run continuously in the background, providing various IDE/intellisense features.
Actual behavior
Pylance crashes within a few minutes, leaving the error listed below in the Python Language Server window. A few pushes then pop up saying "Pylance client: couldn't create connection to server." and "Restarting server failed." As far as I can tell, the server can only be fixed by reopening VS Code.
Logs
The text was updated successfully, but these errors were encountered: