Skip to content
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

Cannot get extension working on VSCode #62

Closed
89sundown opened this issue Jun 27, 2021 · 13 comments
Closed

Cannot get extension working on VSCode #62

89sundown opened this issue Jun 27, 2021 · 13 comments

Comments

@89sundown
Copy link

89sundown commented Jun 27, 2021

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
Copy link
Owner

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
Copy link
Author

89sundown commented Jun 27, 2021

picture

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

@kenkangxgwe
Copy link
Owner

  1. May I see your VSCode settings?
  2. Could you run FindFile["ZeroMQLink"]` in your wolfram executable?

@89sundown
Copy link
Author

89sundown commented Jun 28, 2021

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
Copy link
Owner

  1. Editing the "User" tab is good enough.
  2. Sorry, it should be FindFile["ZeroMQLink`"]. Could you try again?

@89sundown
Copy link
Author

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

@89sundown
Copy link
Author

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
Copy link
Owner

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
Copy link

PhyX-Meow commented Sep 5, 2021

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
Copy link
Owner

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

@PhyX-Meow
Copy link

PhyX-Meow commented Sep 8, 2021

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

@kenkangxgwe
Copy link
Owner

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

@kenkangxgwe
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants