kenkangxgwe / lsp-wl

A Wolfram Language Server
MIT License
212 stars 22 forks source link

Cannot get extension working on VSCode #62

Closed 89sundown closed 3 years ago

89sundown commented 3 years ago

Just getting this output in VSCode and I cannot get the extension working after following the documentation. Is there any additional configuration that needs to happen on Mathematica? Do I need to open a port in a notebook within Mathematica?

[Error - 11:03:51 PM] Connection to server is erroring. Shutting down server.
[Trace - 11:03:51 PM] Sending request 'shutdown - (1)'.
[Error - 11:03:51 PM] Connection to server is erroring. Shutting down server.
[Error - 11:03:51 PM] Connection to server is erroring. Shutting down server.
[Error - 11:03:51 PM] Connection to server is erroring. Shutting down server.
[Error - 11:03:51 PM] Connection to server is erroring. Shutting down server.
[INFO  2021-06-26T23:03:51] Server listening from port 6536...

I've followed the troubleshooting tip as well.

PacletInstall["ZeroMQLink" -> "1.1.22", ForceVersionInstall -> True]

kenkangxgwe commented 3 years ago

Hi Max, I want to get more information from your issue. Could you try:

  1. Checkout the latest develop branch if you were at master branch.
  2. Follow the instruction in https://github.com/kenkangxgwe/lsp-wl/wiki#enable-logging to enable the log. Reproduce your problem and copy the log file after the server shuts down for 5 times.
89sundown commented 3 years ago

picture

I've checked out the develop branch, and you can see the log file in the attached.

kenkangxgwe commented 3 years ago
  1. May I see your VSCode settings?
  2. Could you run FindFile["ZeroMQLink"]` in your wolfram executable?
89sundown commented 3 years ago

I just realized the settings has two tabs inside VSCode. I only edited the user page. Mathematica also isn't finding that file.

User: settings

Workspace: workspace

Mathematica: mathematica settings

kenkangxgwe commented 3 years ago
  1. Editing the "User" tab is good enough.
  2. Sorry, it should be FindFile["ZeroMQLink`"]. Could you try again?
89sundown commented 3 years ago

I'm away from that computer now. I won't be able to get back to you for another 10 hours.

89sundown commented 3 years ago

Here is the output. I'm a member of the unofficial Wolfram discord server. The below link is an invite. It might be easier to do this live if you're interested.

https://discord.gg/gj6VKAK

wolfram-troubleshoot

kenkangxgwe commented 3 years ago

It seems that the default ZeroMQLink is not set to 1.1.22. It's still using 1.2.1 as shown above. I am already in that discord server. I will ping you there.

PhyX-Meow commented 3 years ago

Now latest Mathematica is 12.3.1, which FindFile["ZeroMQLink`"] gives me this: image I look into the folder and found it's version 1.2.0. Still I can't get language server working. Any working around?

kenkangxgwe commented 3 years ago

Hi @PhyX-Meow , As discussed above and in the wiki, you need ZeroMQLink 1.1.* to make the language server work.

PhyX-Meow commented 3 years ago

But the problem I cannot load it, even I delete the version in user folder, mma would use the built-in one.

kenkangxgwe commented 3 years ago

Can you try the latest revision on the develop branch? I think it will automatically handle it for you.

kenkangxgwe commented 2 years ago

Wolfram solved this upstream bug recently. Please manually upgrade the ZeroMQLink paclet

PacletInstall["ZeroMQLink"]

ref: https://github.com/kenkangxgwe/lsp-wl/wiki#working-with-mathematica-123130