kenkangxgwe / vscode-lsp-wl

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

Do we have to start the Wolfram Language Server every time we use? #2

Closed singularitti closed 5 years ago

singularitti commented 5 years ago

If I do not run

wolframscript -f lsp-wl/init.wls

from the command line, all the features the WSL provide will be lost, i.e., autocompletion, doc, etc. Is it currently not implemented to autostart the WSL or I was merely ignorant of the correct usage?

kenkangxgwe commented 5 years ago

So did you find the answer through #1? You do not need to manually start the server as long as the path configuration is correct.

singularitti commented 5 years ago

Yep, I have thought this is caused by #1, but I think it is a separate issue for others to reference. So I made an issue. I will close it once I figure out how to use it. Thank you for your timely reply!

singularitti commented 5 years ago

I figure out what is the problem: it is not

"WolframLanguageServer.WolframPath": "/Applications/Mathematica.app/Contents/MacOS/wolfram",

is wrong, it is I had environment variables in WLServerPath

"WolframLanguageServer.WLServerPath": "{env:HOME}/Library/Mathematica/Applications/lsp-wl",

Great thanks for your help and time!