jupyter-lsp / jupyterlab-lsp

Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
https://jupyterlab-lsp.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.82k stars 148 forks source link

Language server keeps waiting #1029

Open Nemoos-0 opened 1 year ago

Nemoos-0 commented 1 year ago

Description

The python language server is recognized and seems to be running, but it keeps saying "Waiting..." even if the kernel is not busy,

Screenshot from 2023-11-28 07-50-04

This is what appears in the developer tool console

image

Reproduce

I have no idea how to reproduce this bug.

I just installed the packages from the arch linux official repository (arch does not allow installing packages globally using pip).

P.S. I would like not to create a virtual environment and install a text editor + lsp server + formatter + extensions + libraries for every folder with a python script. So I don't know how to deal with this

Expected behavior

The LSP should run

Context

$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.17.2
ipykernel        : 6.26.0
ipywidgets       : 8.1.1
jupyter_client   : 8.6.0
jupyter_core     : 5.5.0
jupyter_server   : 2.10.0
jupyterlab       : 4.0.8
nbclient         : 0.8.0
nbconvert        : 7.7.4
nbformat         : 5.9.2
notebook         : not installed
qtconsole        : not installed
traitlets        : 5.9.0
Required: installed server extensions
Paste the output from running `jupyter server extension list` (JupyterLab >= 3)
or `jupyter serverextension list` (JupyterLab < 3) from the command line here.
You may want to sanitize the paths in the output.
Config dir: /home/**************/.jupyter

Config dir: /usr/etc/jupyter

Config dir: /usr/local/etc/jupyter
Required: installed lab extensions
Paste the output from running `jupyter labextension list` from the command line here.
You may want to sanitize the paths in the output.
JupyterLab v4.0.8
/usr/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        jupyter-matplotlib v0.11.3 enabled OK
        @jupyter-lsp/jupyterlab-lsp v4.2.0 enabled OK (python, jupyterlab-lsp)
        @jupyter-widgets/jupyterlab-manager v5.0.9 enabled OK (python, jupyterlab_widgets)

   The following extensions are outdated:
        jupyterlab_pygments

   Consider checking if an update is available for these packages.
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output (recommended for all interface issues)
Paste the output from your browser JavaScript console replacing the text in here.

To learn how to open the developer tools in your browser:
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools#How_to_open_the_devtools_in_your_browser
If too many messages accumulated after many hours of working in JupyterLab,
consider refreshing the window and then reproducing the bug to reduce the noise in the logs.

minhnguyent546 commented 8 months ago

I have the same issue on archlinux 6.7.8. Have you solved it yet?

pgranat commented 6 months ago

Anyone managed to solve it ?

Edit: Clearing home directory from hidden folders helped. Apparently there was some garbage from previous version image