-
Notifications
You must be signed in to change notification settings - Fork 767
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
Pylance has crashed. Would you like to try using a Node.js executable to run the language server? #6154
Comments
The log above looks like the log from the Python extension. Assuming that you are using Pylance as your language server (that's the default), could you please provide the Pylance log. It appears as "Python Language Server" in the Output pane. |
+1 Pylance has been crashing and short circuiting much more than normal and I am now getting the error 'Pylance has crashed. Would you like to try using a Node.js executable to run the language server?'. I've noticed that a variable will grey out of a sudden and then this error may come later. |
For others who have been experiencing this issue, it seems to correlate with the release of |
@umarbutler, can you provide a "Python Language Server" log from a case where Pylance crashed? |
@GXY0116, can you provide the entire log? Drag it into the log as an attachment, assuming it's large. |
Our best guess based on the log output above is that Pylance was killed by the Linux kernel when the machine ran low on memory. You could confirm that by checking
Given that the total available physical memory is so small, I assume this is a container or virtual machine of some sort? Can you allocate more memory to the machine? We have some guidance on ways to reduce the amount of memory that Pylance uses here: https://github.com/microsoft/pylance-release/wiki/Pylance-Configuration-Tips. |
I have 64GB of RAM. |
@umarbutler we don't have any evidence yet that the two of you are hitting the same issue. Can you file a new issue and attach a log file? We can always resolve one of them as a duplicate of the other if we determine that they are the same. |
@debonte I'll be building a new PC within the next week or two so it makes more sense for me to use the older version, however, if the issue appears again (which would be on a completely new, more powerful build), I'll create a new ticket. |
I could reproduce the error running the notebook again, here's the log: |
@otavio-silva's problem is this: Not likely the same issue as the original poster. I'll link a new bug. |
I have the same issue running in a devcontainer |
@rhuanbarros can you open new issue. that error message is generic message for any crash. so having your own issue will help us to track your issue better. |
This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks. |
Pylance has crashed. Would you like to try using a Node.js executable to run the language server?
2024-07-17 14:56:44.584 [info] [Error - 2:56:44 PM] Sending document notification textDocument/didSave failed.
2024-07-17 14:56:44.597 [info] Error: Connection is disposed.
at de (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1948291)
at Object.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1949134)
at S.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1992950)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:2073066)
2024-07-17 14:56:44.901 [info] [Error - 2:56:44 PM] Notify file events failed.
2024-07-17 14:56:44.901 [info] Error: Connection is disposed.
at de (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1948291)
at Object.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1949134)
at S.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1992950)
at async t.Delayer. (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:2004892)
2024-07-17 14:56:44.964 [info] [Error - 2:56:44 PM] Sending document notification textDocument/didSave failed.
2024-07-17 14:56:44.964 [info] Error: Connection is disposed.
at de (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1948291)
at Object.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1949134)
at S.sendNotification (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:1992950)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async t (/dssg/home/acct-seeshb/seeshb-user1/.vscode-server/extensions/ms-python.python-2024.10.0-linux-x64/out/client/extension.js:2:2073066)
2024-07-17 14:56:45.322 [info] [Error - 2:56:45 PM] Notify file events failed.
The text was updated successfully, but these errors were encountered: