kenkangxgwe / vscode-lsp-wl

Visual Studio Code Client for Wolfram Language Server
MIT License
32 stars 6 forks source link

"Connection to server is erroring. Shutting down server." after update to Mathematica 12.3 #11

Closed bshoshany closed 3 years ago

bshoshany commented 3 years ago

I updated Mathematica to the new 12.3 release. I installed the paclets as instructed:

PacletInstall["CodeParser"]
PacletInstall["CodeInspector"]

I then entered the correct path to wolfram.exe in the extension settings:

C:\Program Files\Wolfram Research\Mathematica\12.3\wolfram.exe

However, when I start VS Code and open a Mathematica source file, I get the following in the Output pane:

[Error - 9:45:47 AM] Connection to server is erroring. Shutting down server.
[INFO  2021-05-21T09:45:47] Server listening from port 6536...

Is the extension incompatible with Mathematica 12.3? If so, could it be updated? I find this extension extremely useful, but don't want to downgrade Mathematica just so I can use it...

Any help would be appreciated.

kenkangxgwe commented 3 years ago

Hi Barak, is your lsp-wl repo on the latest commit of the master branch? Can you try git pull or even checkout the latest develop branch. Thanks!

bshoshany commented 3 years ago

Thanks for your quick reply. I tried it with the develop branch now, but unfortunately I still get the same error message. Any other suggestions?

kenkangxgwe commented 3 years ago

Just tried Wolfram Engine 12.3, confirmed that it doesn't work for me either. I found that they rewrite the ZeroMQLink` package in 12.3, so this should be an upstream bug. I have sent feedback to WRI and let's wait for a few days for them to reply.

kenkangxgwe commented 3 years ago

Hi Barak, could you take a look if this will help you connect to the server as a workaround. Thanks!

bshoshany commented 3 years ago

Thanks, it's working now!

However, on my system, I don't have ZeroMQLink 1.2.1 installed, only 1.2.0 and 1.1.22 (as found using PacletFind["ZeroMQLink"]). After disabling 1.2.0 with PacletDisable["ZeroMQLink" -> "1.2.0"], the VS Code extension now runs without problem.

kenkangxgwe commented 3 years ago

Great, glad that it worked for you!

bshoshany commented 3 years ago

Update: I started getting the "Connection to server is erroring" message again. Turns out ZeroMQLink has been automatically upgraded to 1.2.2, which again broke the language server. Disabling it with PacletDisable["ZeroMQLink" -> "1.2.2"] solved the problem. But I'm just wondering, are you in contact with Wolfram regarding the TCP issues in newer versions of the paclet? Seems like they updated the paclet but still didn't resolve the issues.