-
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
Support re-connecting to the LSP server after connection is lost #237
Comments
Hi @jeanmonet, thank you for opening this issue. You are very welcome here and we would be happy to help you with finding out why the features other than linting do not seem to work for you. However, in order to help you, we need to know much more about your setup, including versions of the software you have installed and whether there are any logs in the browser console. Please fill in the template from the "new issue/bug report" page. As for the configuration, this is something that we are working at (i.e. to make it possible to configure from the user interface). I am afraid I cannot offer a solution at the moment but @bollwyvl might have some ideas. |
Thank you for a quick answer. I've tried to provide more details below. I just noticed that upon initial load, the singnature help (for example) did seem to work (it loaded once, for the Installation environment:
I would also add that Anaconda is installed on a shared environment. The user that launches the jupyter lab server does not have write permissions on the files located in the main Screenshot of Chrome's console: I guess the disconnect above may explain why the plugin stops working: |
Thank you! Yes, you are right that there is something that interrupts the connection. Do you happen to have the server on a different machine than the browser (e.g. running on JupyterHub or on a cluster)? Could you further expand the error on the 0th position in the list from Further information about the cause of the pyls server closing the connection might be available in the terminal from whih the |
Yes - I relaunched with I would also mention that the Jupyter Lab server is exposed via a Nginx reverse proxy, but the config and paths are normally set up to work correctly with Jupyter ressources. Anaconda is not installed in the user's home directory, but in In one of the opened notebooks, the
I notice that the message It also appears that LSP is trying to create simlinks but these may not work:
It may be due to my reverse proxy configuration? Or if it is trying to create simlinks in a subfolder of In Chrome's console:
|
Adding the expanded
^-- I tried to access the URL manually to check if the reverse proxy is the problem: |
Also I confirm, in case it wasn't clear, that I'm connecting remotely to the server, so the browser and the server are not on the same machine. Here is a terminal output that I managed to catch (that may or not be related):
|
I think these issues are now resolved. |
Hey @jeanmonet , @krassowski , @bollwyvl The version I am using though is a old one: 0.9.2 of jupyterlab-lsp. Was this fixed as part of a later commit or a later version? |
@skakker it must have been resolved in a more recent version. Webconsole now shows me that it's reconnecting periodically, although I still get other warnings (unrelated to this issue), such as: [EDIT: these can be ignored] |
There is nothing to worry about, these hover cache messages should be debug logs not warnings actually. |
And yes this was fixed in 1.x. Please upgrade. |
Hi,
I was looking for a Python linter and spell checker for Jupyter Lab and found both fantastic projects:
pyls
andjupyterlab-lsp
which seem to allow exactly what I was looking for (lint & type check insite the Jupyter Lab environment).I've managed to install
pyls
(with[all]
options) via Anaconda andjupyterlab-lsp
via pip.I also assume that after install, all that must be done is launch Jupyter Lab?
After launching Jupyter Lab, the linter seems to be working (at least partially): I can see linter error codes underlining. But I don't see other features such as auto-completion, signature help, go to definition, hover, find references, etc:
Unfortunately, I can't seem to find guidance on how to actually use these tools, activate/deactivate features, reload/refresh linter after fixing a typo in a notebook or text editor... Is there some kind of interface for Jupyter Lab to do such things? How does one begin.
I also don't know where the config files for
jupyterlab-lsp
(&pyls
?) are stored / supposed to be, except forpycodestyle
/flake8
mentioned here.For example, I'm trying to use the
pyls-mypy
extension. Where would I go about modifying the configuration:And how would I then be able to run/refresh the
mypy
type checker while working on a notebook or in the Jupyter Lab text editor?Some user guidance on how to interact with
jupyterlab-lsp
&pypls
would be much appreciated.Finally, does
jupyterlab-lsp
withpypls
work with Jupyter Notebook server or just Jupyter Lab?The text was updated successfully, but these errors were encountered: