Forums

Pylance in VSCode Crashes Continually

Hello,

I'm using VSCode to remotely to edit code. This works fine locally and with other remote hosts, but when I install the extensions on PythonAnywhere, Pylance immediately crashes, even before any files have been opened with the error:

The Pylance server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Error: Debug Failure. undefined is not expected at _0xdce0a.onMessage (/home/user/.vscode-server/extensions/ms-python.vscode-pylance-2023.1.40/dist/pyright.bundle.js:1:900786) at _0xdce0a.onMessage (/home/user/.vscode-server/extensions/ms-python.vscode-pylance-2023.1.40/dist/server.bundle.js:1:3443) at Worker.<anonymous> (/home/user/.vscode-server/extensions/ms-python.vscode-pylance-2023.1.40/dist/pyright.bundle.js:1:900493) at Worker.emit (node:events:526:28) at MessagePort.<anonymous> (node:internal/worker:232:53) at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:647:20) at MessagePort.exports.emitMessage (node:internal/per_context/messageport:23:28)

I have tried reinstalling, clearing temporary files, earlier versions.

I assume that there is something that I'm doing wrong or that PythonAnywhere doesn't support it.

Could someone please point me in the right direction.

Thanks for any help you can provide.

You won't be able to run vscode server on PythonAnywhere.