-
Notifications
You must be signed in to change notification settings - Fork 148
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
Manually re-launching LSP servers #681
Comments
Although I would like a better solution, I have found that F5 refresh of the Jupyter tab causes the Python LSP to start working again (Win 10; Google Chrome) |
thanks @JulianSMoore I've notice that as well. Since I switch to using a python launch script pressing F5 restarts the LSP server which is better than nothing. Not sure it did that when I was using a declarative registration of the LSP spec. But it definitely does when using python launch script https://github.com/CybercentreCanada/jupyterlab-sql-editor/blob/main/ipython_magic/sparksql/main.py |
I added this to the 4.0 release plan. If someone wants to work on this, I would propose to add this:
We already have code for restarting connection:
which is triggered when changing kernels. Restarting connection does not guarantee restarting the LSP server though. We would probably need to add a way to command |
Yeah tying into the "running" tab would be ideal... that was one of the
nice things about the kernel approach (though you'd just see the one
"manager" kernel, not each server).
As that ui probably won't be readily accessible in retro/nb7, we'll also
need something else... And probably a "big hammer" command, e.g. _Restart
all Language Servers_.
Further, I'd love to see the ability to propagate individual servers'
stderr to a log viewer in lab... Perhaps as another, dedicated websocket.
Finally: some of these concerns are shared with jupyter-server-proxy. It's
possible we could reuse some API and UI components, even if they have
different approaches to many things.
|
We've noticed that sometimes the sql-language-server (LSP node server) we use stops or dies for some reason.
For example this will happen when putting a laptop to sleep. In this scenario it's not a big deal. We can just restart the jupyter lap process and a new LSP server is also created.
However in a JupyterHub environment it's very inconvenient to have to restart the hosting POD just to force the LSP server to restart.
Is there a way in JupyterLab to force the restart of an LSP server. Is there anything in the UI or on command line that would trigger JupyterLab to start a new LSP instance if it dies.
The text was updated successfully, but these errors were encountered: