-
Notifications
You must be signed in to change notification settings - Fork 9
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
Setup with Jupyter LSP #1
Comments
This is probably a simple thing to fix. I will look at it. |
initializationOptions may be Null Handle workspace/didChangeConfiguration notification #1
There were a few edge cases exposed by Jupyter Lab LSP that were not being handled. I have fixed these up. I was previously seeing the same problems you were, and now everything works for me. |
Thanks for taking a look. It initialises properly for me, too. Basic functionality seems to work: Typing over underlined keyword pops up a box with usage info. Tab completion of half-typed function names sadly doesn't work - any quick fixes for that? |
Sorry, no quick fixes for completions. Adding support for completions is on the list of things to do though. |
Hello,
I have tried to set this up to work in Jupyter Lab (using WolframLanguageForJupyter) with @krassowski/jupyterlab-lsp as follows:
Using macOS Big Sur 11.6.3, system python 3.8, and Jupyter core packages:
jupyter_client : 6.1.12
jupyter_core : 4.9.0
jupyter_server : 1.11.2
jupyterlab : 3.2.8
nbclient : 0.5.4
Installed Wolfram Engine 13 in /Applications
Cloned via 'git clone https://github.com/WolframResearch/WolframLanguageForJupyter.git' and
Built WolframLanguageForJupyter-0.9.2.paclet via
./configure-jupyter.wls build
Ran
PacletInstall["WolframLanguageForJupyter-0.9.2.paclet"]
And
ConfigureJupyter["Add", "JupyterInstallation" -> "/Users/ikasou/Library/Python/3.8/bin/jupyter"]
So far so good, notebooks in Jupyter work like a charm!
For the LSP setup, I am using
The system seems to think that the Server initialises properly:
However looking at the logs I see that the server crashes immediately as soon as it starts:
kernelLog-2022-02-01_10-54-51.txt
The key lines seem to be:
So it appears it is not getting the format it is expecting from jupyter-lsp somehow. Looking at the Jupyter logs I see (I have removed irrelevant lines):
I can even run the diagnostics suggestion from the error message in the notebook:
But it doesn't shed any new light, besides some versioning info:
I am more than happy to send any more logs that may be necessary, e.g. --debug level logs from Jupyter so we can see all the <LspStdioWriter()> message exchanges; however from memory they don't seem to shed much light as all json-rpc info is mostly opaque I think.
I appreciate this is work in progress but just thought I might give this a try anyway.
Thanks
The text was updated successfully, but these errors were encountered: