julia-vscode / julia-vscode

Julia extension for Visual Studio Code
https://www.julia-vscode.org/
Other
1.28k stars 201 forks source link

Julia Language Support Extension Crashes with Server Initialization Failed #3664

Open AndyAndDevid opened 1 month ago

AndyAndDevid commented 1 month ago

The Julia Language Support extension for Visual Studio Code crashes with the following output. The server initialization fails, and the Julia Language Server crashes multiple times, eventually stopping with the message that it will not be restarted.

Error Output:

[Error - 10:26:34 PM] Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 10:26:34 PM] The Julia Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Error - 10:26:34 PM] Julia Language Server client: couldn't create connection to server. Message: Pending response rejected since connection got disposed Code: -32097 [Error - 10:26:34 PM] Restarting server failed Message: Pending response rejected since connection got disposed Code: -32097 [Error - 10:26:34 PM] Server process exited with code 1.

Julia: v1.10.4 & v1.9.2 VSC: 1.92.0 No issue with VSC: 1.91.0 JLS: v1.105.2

protogeezer commented 3 weeks ago

I've been experiencing similar behavior. More precisely, the same behavior on julia 1.10.4+ and 1.11 rc 1/2 with vscode 1.9.2 on Kubuntu and macOS. In addition, many times rather than the crash during startup, the debugger hangs after stopping at a few breakpoints, but when the task is exited (with the red square button in the toolbar), a crash ensues.

Finally, I've determined that with VSC 1.9.2 all julia extensions after 1.83.2 exhibit this same behavior.

If there is anything I/we can do to help narrow this down, please explain what we can do.

mipals commented 2 weeks ago

I am having a similar issue on macOS using VSC 1.9.2.