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.81k stars 148 forks source link

CodeMirrorVirtualEditor handler (which should accept a CodeMirror Editor instance) failed #812

Open jnewton3edinburgh opened 2 years ago

jnewton3edinburgh commented 2 years ago

Description

I'm unsure where else to ask this - so I'm raising it here: An error is thrown when trying to use a language server. The Error is: LSP.WidgetAdapter: CodeMirrorVirtualEditor handler (which should accept a CodeMirror Editor instance) failed with message: "e is undefined" in the thrown error message object. I see that the lsp extension is installed and enabled, and that the language server(s) are fully initialised and the correct one used on e.g. html file. But the language server does not work due to the error which I cannot find the cause of. In this case - I am editing an html file with the vscode-html0language-server language server which throws the error. I am using v3.9.0 jupyterlab-lsp and notice 3.10.1 is available, but it doesn't appear in current channels when running `conda install jupyterlab-lsp' to update it.

Reproduce

  1. Install Jupyter lab and jupyter-lsp extension:

    conda create -c conda-forge -n lsp 'python >=3.7,<3.11.0a0' 'jupyterlab=3.1.0' 'jupyterlab-lsp=3.10.1' 'jupyter-lsp-python=1.5.1' conda activate lsp

  2. Ensure NodeJS is installed:

    conda install -c conda-forge nodejs

  3. Install language servers:

    conda install -c conda-forge jedi-language-server jlpm add --dev \ bash-language-server \ dockerfile-language-server-nodejs \ pyright \ sql-language-server \ typescript-language-server \ unified-language-server \ vscode-css-languageserver-bin \ vscode-html-languageserver-bin \ vscode-json-languageserver-bin \ yaml-language-server

  4. run Jupyter lab:

    jupyter lab

When Jupyter Lab was run, I created a new file test.html. The language server shows as fully initialised and using the vscode-html-language-server. When typing, the error mentioned previously is thrown.

Expected behavior

Language server should offer suggestions and not error.

Context

Required: installed server extensions
Config dir: /home/user/.jupyter

/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/types.py:193: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  nodejs = Unicode(help=_("path to nodejs executable")).tag(config=True)
/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/types.py:195: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  node_roots = List_([], help=_("absolute paths in which to seek node_modules")).tag(
/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/types.py:200: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  [], help=_("additional absolute paths to seek node_modules first")
/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/manager.py:41: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  help=_("extra language server specs, keyed by implementation, from conf.d"),
/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/manager.py:46: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  help=_("a dict of language server specs, keyed by implementation"),
/home/user/miniconda3/lib/python3.9/site-packages/jupyter_lsp/manager.py:52: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  True, help=_("try to find known language servers in sys.prefix (and elsewhere)")
Config dir: /home/user/miniconda3/etc/jupyter
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp 1.4.1 OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab 3.4.3 OK
    nbclassic enabled
    - Validating nbclassic...
      nbclassic  OK
    notebook_shim enabled
    - Validating notebook_shim...
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter

Required: installed lab extensions
JupyterLab v3.4.3
/home/user/miniconda3/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        @krassowski/jupyterlab-lsp v3.9.0 enabled OK (python, jupyterlab-lsp)

Troubleshoot Output
$PATH:
    /home/user/miniconda3/bin
    /home/user/miniconda3/condabin
    /home/user/.asdf/shims
    /home/user/.asdf/bin
    /home/user/.local/bin
    /home/user/bin
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games
    /usr/local/games
    /snap/bin

sys.path:
    /home/user/miniconda3/bin
    /home/user/miniconda3/lib/python39.zip
    /home/user/miniconda3/lib/python3.9
    /home/user/miniconda3/lib/python3.9/lib-dynload
    /home/user/.local/lib/python3.9/site-packages
    /home/user/miniconda3/lib/python3.9/site-packages

sys.executable:
    /home/user/miniconda3/bin/python

sys.version:
    3.9.7 (default, Sep 16 2021, 13:09:58) 
    [GCC 7.5.0]

platform.platform():
    Linux-5.13.0-51-generic-x86_64-with-glibc2.31

which -a jupyter:
    /home/user/miniconda3/bin/jupyter
    /home/user/.asdf/shims/jupyter

pip list:
    Package                       Version
    ----------------------------- -----------
    anyio                         3.6.1
    argon2-cffi                   21.3.0
    argon2-cffi-bindings          21.2.0
    arrow                         1.2.1
    astroid                       2.11.5
    asttokens                     2.0.5
    attrs                         21.4.0
    autopep8                      1.6.0
    Babel                         2.10.1
    backcall                      0.2.0
    backports.functools-lru-cache 1.6.4
    bcrypt                        3.2.2
    beautifulsoup4                4.11.1
    binaryornot                   0.4.4
    bleach                        5.0.0
    brotlipy                      0.7.0
    build                         0.8.0
    certifi                       2022.5.18.1
    cffi                          1.15.0
    chardet                       4.0.0
    charset-normalizer            2.0.4
    click                         8.0.3
    colorama                      0.4.4
    conda                         4.13.0
    conda-content-trust           0+unknown
    conda-package-handling        1.7.3
    cookiecutter                  1.7.3
    cryptography                  36.0.0
    debugpy                       1.6.0
    decorator                     5.1.1
    defusedxml                    0.7.1
    dill                          0.3.4
    distro                        1.7.0
    docker                        5.0.3
    docker-compose                1.29.2
    dockerpty                     0.4.1
    docopt                        0.6.2
    docstring-to-markdown         0.10
    entrypoints                   0.4
    executing                     0.8.3
    fastjsonschema                2.15.3
    flake8                        4.0.1
    idna                          3.3
    importlib-metadata            3.10.1
    importlib-resources           5.7.1
    ipykernel                     6.13.1
    ipython                       8.4.0
    ipython-genutils              0.2.0
    isort                         5.10.1
    jedi                          0.18.1
    jedi-language-server          0.36.0
    Jinja2                        3.1.2
    jinja2-time                   0.2.0
    json5                         0.9.8
    jsonschema                    4.5.1
    jupyter-client                7.3.1
    jupyter-core                  4.10.0
    jupyter-lsp                   1.5.1
    jupyter-server                1.17.1
    jupyterlab                    3.4.3
    jupyterlab-lsp                3.10.1
    jupyterlab-pygments           0.2.2
    jupyterlab-server             2.14.0
    lazy-object-proxy             1.6.0
    MarkupSafe                    2.1.1
    matplotlib-inline             0.1.3
    mccabe                        0.6.1
    mistune                       0.8.4
    nbclassic                     0.3.7
    nbclient                      0.6.4
    nbconvert                     6.5.0
    nbformat                      5.4.0
    nest-asyncio                  1.5.5
    notebook                      6.4.12
    notebook-shim                 0.1.0
    packaging                     21.3
    pandocfilters                 1.5.0
    paramiko                      2.11.0
    parso                         0.8.3
    pep517                        0.12.0
    pexpect                       4.8.0
    pickleshare                   0.7.5
    pip                           21.2.4
    platformdirs                  2.5.1
    pluggy                        1.0.0
    poyo                          0.5.0
    prometheus-client             0.14.1
    prompt-toolkit                3.0.29
    psutil                        5.9.1
    ptyprocess                    0.7.0
    pure-eval                     0.2.2
    pycodestyle                   2.8.0
    pycosat                       0.6.3
    pycparser                     2.21
    pydantic                      1.8.2
    pydocstyle                    6.1.1
    pyflakes                      2.4.0
    pygls                         0.11.3
    Pygments                      2.12.0
    pylint                        2.13.9
    PyNaCl                        1.5.0
    pyOpenSSL                     21.0.0
    pyparsing                     3.0.9
    pyrsistent                    0.18.1
    PySocks                       1.7.1
    python-dateutil               2.8.2
    python-dotenv                 0.20.0
    python-lsp-jsonrpc            1.0.0
    python-lsp-server             1.4.1
    python-slugify                5.0.2
    pytz                          2022.1
    PyYAML                        5.4.1
    pyzmq                         23.0.0
    requests                      2.27.1
    robotframework                5.0.1
    robotframework-lsp            0.48.0
    rope                          1.0.0
    ruamel-yaml-conda             0.15.100
    Send2Trash                    1.8.0
    setuptools                    58.0.4
    six                           1.16.0
    sniffio                       1.2.0
    snowballstemmer               2.2.0
    soupsieve                     2.3.2.post1
    stack-data                    0.2.0
    terminado                     0.15.0
    text-unidecode                1.3
    texttable                     1.6.4
    tinycss2                      1.1.1
    toml                          0.10.2
    tomli                         2.0.1
    tornado                       6.1
    tqdm                          4.62.3
    traitlets                     5.2.2.post1
    typeguard                     2.13.0
    typing_extensions             4.2.0
    ujson                         5.1.0
    urllib3                       1.26.7
    wcwidth                       0.2.5
    webencodings                  0.5.1
    websocket-client              0.59.0
    wheel                         0.37.1
    wrapt                         1.12.1
    yapf                          0.32.0
    zipp                          3.8.0

conda list:
    # packages in environment at /home/user/miniconda3:
    #
    # Name                    Version                   Build  Channel
    _libgcc_mutex             0.1                        main  
    _openmp_mutex             4.5                       1_gnu  
    anyio                     3.6.1            py39hf3d152e_0    conda-forge
    argon2-cffi               21.3.0                   pypi_0    pypi
    argon2-cffi-bindings      21.2.0                   pypi_0    pypi
    astroid                   2.11.5           py39hf3d152e_0    conda-forge
    asttokens                 2.0.5              pyhd8ed1ab_0    conda-forge
    attrs                     21.4.0             pyhd8ed1ab_0    conda-forge
    autopep8                  1.6.0              pyhd8ed1ab_1    conda-forge
    babel                     2.10.1             pyhd8ed1ab_0    conda-forge
    backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
    backports                 1.0                        py_2    conda-forge
    backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
    bcrypt                    3.2.2                    pypi_0    pypi
    beautifulsoup4            4.11.1             pyha770c72_0    conda-forge
    bleach                    5.0.0              pyhd8ed1ab_0    conda-forge
    brotlipy                  0.7.0           py39h27cfd23_1003  
    build                     0.8.0                    pypi_0    pypi
    ca-certificates           2022.4.26            h06a4308_0  
    certifi                   2022.5.18.1      py39h06a4308_0  
    cffi                      1.15.0           py39hd667e15_1  
    charset-normalizer        2.0.4              pyhd3eb1b0_0  
    colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
    conda                     4.13.0           py39h06a4308_0  
    conda-content-trust       0.1.1              pyhd3eb1b0_0  
    conda-package-handling    1.7.3            py39h27cfd23_1  
    cryptography              36.0.0           py39h9ce1e76_0  
    debugpy                   1.6.0                    pypi_0    pypi
    decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
    defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
    dill                      0.3.4              pyhd8ed1ab_0    conda-forge
    distro                    1.7.0                    pypi_0    pypi
    docker                    5.0.3                    pypi_0    pypi
    docker-compose            1.29.2                   pypi_0    pypi
    dockerpty                 0.4.1                    pypi_0    pypi
    docopt                    0.6.2                    pypi_0    pypi
    docstring-to-markdown     0.10               pyhd8ed1ab_0    conda-forge
    entrypoints               0.4                pyhd8ed1ab_0    conda-forge
    executing                 0.8.3              pyhd8ed1ab_0    conda-forge
    flake8                    4.0.1              pyhd8ed1ab_2    conda-forge
    idna                      3.3                pyhd3eb1b0_0  
    importlib-metadata        3.10.1           py39hf3d152e_0    conda-forge
    importlib_resources       5.7.1              pyhd8ed1ab_1    conda-forge
    ipykernel                 6.13.0                   pypi_0    pypi
    ipython                   8.4.0            py39hf3d152e_0    conda-forge
    ipython-genutils          0.2.0                    pypi_0    pypi
    ipython_genutils          0.2.0                      py_1    conda-forge
    isort                     5.10.1             pyhd8ed1ab_0    conda-forge
    jedi                      0.18.1           py39hf3d152e_1    conda-forge
    jedi-language-server      0.36.0             pyhd8ed1ab_0    conda-forge
    jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
    json5                     0.9.8                    pypi_0    pypi
    jsonschema                4.5.1                    pypi_0    pypi
    jupyter-client            7.3.1                    pypi_0    pypi
    jupyter-lsp               1.5.1                    pypi_0    pypi
    jupyter-lsp-python        1.4.1              pyhd8ed1ab_0    conda-forge
    jupyter-server            1.17.0                   pypi_0    pypi
    jupyter_client            7.1.2              pyhd8ed1ab_0    conda-forge
    jupyter_core              4.10.0           py39hf3d152e_0    conda-forge
    jupyter_server            1.17.1             pyhd8ed1ab_0    conda-forge
    jupyterlab                3.4.2                    pypi_0    pypi
    jupyterlab-lsp            3.10.1                   pypi_0    pypi
    jupyterlab-server         2.14.0                   pypi_0    pypi
    jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
    jupyterlab_server         2.13.0             pyhd8ed1ab_0    conda-forge
    lazy-object-proxy         1.6.0            py39h27cfd23_0  
    ld_impl_linux-64          2.35.1               h7274673_9  
    libffi                    3.3                  he6710b0_2  
    libgcc-ng                 9.3.0               h5101ec6_17  
    libgomp                   9.3.0               h5101ec6_17  
    libsodium                 1.0.18               h36c2ea0_1    conda-forge
    libstdcxx-ng              9.3.0               hd4cf53a_17  
    markupsafe                2.1.1                    pypi_0    pypi
    matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
    mccabe                    0.6.1                      py_1    conda-forge
    mistune                   0.8.4           py39h3811e60_1004    conda-forge
    nbclassic                 0.3.7              pyhd8ed1ab_0    conda-forge
    nbclient                  0.6.3                    pypi_0    pypi
    nbconvert                 6.5.0              pyhd8ed1ab_0    conda-forge
    nbconvert-core            6.5.0              pyhd8ed1ab_0    conda-forge
    nbconvert-pandoc          6.5.0              pyhd8ed1ab_0    conda-forge
    nbformat                  5.4.0              pyhd8ed1ab_0    conda-forge
    ncurses                   6.3                  h7f8727e_2  
    nest-asyncio              1.5.5              pyhd8ed1ab_0    conda-forge
    notebook                  6.4.11                   pypi_0    pypi
    notebook-shim             0.1.0              pyhd8ed1ab_0    conda-forge
    openssl                   1.1.1o               h7f8727e_0  
    packaging                 21.3               pyhd8ed1ab_0    conda-forge
    pandoc                    2.18                 ha770c72_0    conda-forge
    pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
    paramiko                  2.11.0                   pypi_0    pypi
    parso                     0.8.3              pyhd8ed1ab_0    conda-forge
    pep517                    0.12.0                   pypi_0    pypi
    pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
    pickleshare               0.7.5                   py_1003    conda-forge
    pip                       21.2.4           py39h06a4308_0  
    platformdirs              2.5.1              pyhd8ed1ab_0    conda-forge
    pluggy                    1.0.0            py39hf3d152e_3    conda-forge
    prometheus_client         0.14.1             pyhd8ed1ab_0    conda-forge
    prompt-toolkit            3.0.29             pyha770c72_0    conda-forge
    psutil                    5.9.1                    pypi_0    pypi
    ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
    pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
    pycodestyle               2.8.0              pyhd8ed1ab_0    conda-forge
    pycosat                   0.6.3            py39h27cfd23_0  
    pycparser                 2.21               pyhd3eb1b0_0  
    pydantic                  1.8.2            py39h3811e60_0    conda-forge
    pydocstyle                6.1.1              pyhd8ed1ab_0    conda-forge
    pyflakes                  2.4.0              pyhd8ed1ab_0    conda-forge
    pygls                     0.11.3             pyhd8ed1ab_0    conda-forge
    pygments                  2.12.0             pyhd8ed1ab_0    conda-forge
    pylint                    2.13.9             pyhd8ed1ab_1    conda-forge
    pynacl                    1.5.0                    pypi_0    pypi
    pyopenssl                 21.0.0             pyhd3eb1b0_1  
    pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
    pyrsistent                0.18.1                   pypi_0    pypi
    pysocks                   1.7.1            py39h06a4308_0  
    python                    3.9.7                h12debd9_1  
    python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
    python-dotenv             0.20.0                   pypi_0    pypi
    python-fastjsonschema     2.15.3             pyhd8ed1ab_0    conda-forge
    python-lsp-jsonrpc        1.0.0              pyhd8ed1ab_0    conda-forge
    python-lsp-server         1.4.1              pyhd8ed1ab_1    conda-forge
    python_abi                3.9                      2_cp39    conda-forge
    pytz                      2022.1             pyhd8ed1ab_0    conda-forge
    pyyaml                    5.4.1                    pypi_0    pypi
    pyzmq                     23.0.0                   pypi_0    pypi
    readline                  8.1.2                h7f8727e_1  
    requests                  2.27.1             pyhd3eb1b0_0  
    robotframework            5.0.1              pyhd8ed1ab_0    conda-forge
    robotframework-lsp        0.48.0             pyhd8ed1ab_0    conda-forge
    rope                      1.0.0              pyhd8ed1ab_0    conda-forge
    ruamel_yaml               0.15.100         py39h27cfd23_0  
    send2trash                1.8.0              pyhd8ed1ab_0    conda-forge
    setuptools                58.0.4           py39h06a4308_0  
    six                       1.16.0             pyhd3eb1b0_0  
    sniffio                   1.2.0            py39hf3d152e_3    conda-forge
    snowballstemmer           2.2.0              pyhd8ed1ab_0    conda-forge
    soupsieve                 2.3.2.post1              pypi_0    pypi
    sqlite                    3.37.0               hc218d9a_0  
    stack_data                0.2.0              pyhd8ed1ab_0    conda-forge
    terminado                 0.15.0           py39hf3d152e_0    conda-forge
    texttable                 1.6.4                    pypi_0    pypi
    tinycss2                  1.1.1              pyhd8ed1ab_0    conda-forge
    tk                        8.6.11               h1ccaba5_0  
    toml                      0.10.2             pyhd8ed1ab_0    conda-forge
    tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
    tornado                   6.1              py39h3811e60_1    conda-forge
    tqdm                      4.62.3             pyhd3eb1b0_1  
    traitlets                 5.2.1.post0              pypi_0    pypi
    typeguard                 2.13.0             pyhd8ed1ab_0    conda-forge
    typing-extensions         4.2.0                hd8ed1ab_1    conda-forge
    typing_extensions         4.2.0              pyha770c72_1    conda-forge
    tzdata                    2021e                hda174b7_0  
    ujson                     5.1.0            py39h295c915_0  
    urllib3                   1.26.7             pyhd3eb1b0_0  
    wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
    webencodings              0.5.1                    pypi_0    pypi
    websocket-client          0.59.0                   pypi_0    pypi
    wheel                     0.37.1             pyhd3eb1b0_0  
    wrapt                     1.12.1           py39h3811e60_3    conda-forge
    xz                        5.2.5                h7b6447c_0  
    yaml                      0.2.5                h7b6447c_0  
    yapf                      0.32.0             pyhd8ed1ab_0    conda-forge
    zeromq                    4.3.4                h9c3ff4c_0    conda-forge
    zipp                      3.8.0              pyhd8ed1ab_0    conda-forge
    zlib                      1.2.11               h7f8727e_4

conda env:
    name: base
    channels:
      - conda-forge
      - defaults
    dependencies:
      - _libgcc_mutex=0.1=main
      - _openmp_mutex=4.5=1_gnu
      - anyio=3.6.1=py39hf3d152e_0
      - astroid=2.11.5=py39hf3d152e_0
      - asttokens=2.0.5=pyhd8ed1ab_0
      - attrs=21.4.0=pyhd8ed1ab_0
      - autopep8=1.6.0=pyhd8ed1ab_1
      - babel=2.10.1=pyhd8ed1ab_0
      - backcall=0.2.0=pyh9f0ad1d_0
      - backports=1.0=py_2
      - backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
      - beautifulsoup4=4.11.1=pyha770c72_0
      - bleach=5.0.0=pyhd8ed1ab_0
      - brotlipy=0.7.0=py39h27cfd23_1003
      - ca-certificates=2022.4.26=h06a4308_0
      - certifi=2022.5.18.1=py39h06a4308_0
      - cffi=1.15.0=py39hd667e15_1
      - charset-normalizer=2.0.4=pyhd3eb1b0_0
      - colorama=0.4.4=pyh9f0ad1d_0
      - conda=4.13.0=py39h06a4308_0
      - conda-content-trust=0.1.1=pyhd3eb1b0_0
      - conda-package-handling=1.7.3=py39h27cfd23_1
      - cryptography=36.0.0=py39h9ce1e76_0
      - decorator=5.1.1=pyhd8ed1ab_0
      - defusedxml=0.7.1=pyhd8ed1ab_0
      - dill=0.3.4=pyhd8ed1ab_0
      - docstring-to-markdown=0.10=pyhd8ed1ab_0
      - entrypoints=0.4=pyhd8ed1ab_0
      - executing=0.8.3=pyhd8ed1ab_0
      - flake8=4.0.1=pyhd8ed1ab_2
      - idna=3.3=pyhd3eb1b0_0
      - importlib-metadata=3.10.1=py39hf3d152e_0
      - importlib_resources=5.7.1=pyhd8ed1ab_1
      - ipython=8.4.0=py39hf3d152e_0
      - ipython_genutils=0.2.0=py_1
      - isort=5.10.1=pyhd8ed1ab_0
      - jedi=0.18.1=py39hf3d152e_1
      - jedi-language-server=0.36.0=pyhd8ed1ab_0
      - jinja2=3.1.2=pyhd8ed1ab_1
      - jupyter-lsp-python=1.4.1=pyhd8ed1ab_0
      - jupyter_client=7.1.2=pyhd8ed1ab_0
      - jupyter_core=4.10.0=py39hf3d152e_0
      - jupyter_server=1.17.1=pyhd8ed1ab_0
      - jupyterlab_pygments=0.2.2=pyhd8ed1ab_0
      - jupyterlab_server=2.13.0=pyhd8ed1ab_0
      - lazy-object-proxy=1.6.0=py39h27cfd23_0
      - ld_impl_linux-64=2.35.1=h7274673_9
      - libffi=3.3=he6710b0_2
      - libgcc-ng=9.3.0=h5101ec6_17
      - libgomp=9.3.0=h5101ec6_17
      - libsodium=1.0.18=h36c2ea0_1
      - libstdcxx-ng=9.3.0=hd4cf53a_17
      - matplotlib-inline=0.1.3=pyhd8ed1ab_0
      - mccabe=0.6.1=py_1
      - mistune=0.8.4=py39h3811e60_1004
      - nbclassic=0.3.7=pyhd8ed1ab_0
      - nbconvert=6.5.0=pyhd8ed1ab_0
      - nbconvert-core=6.5.0=pyhd8ed1ab_0
      - nbconvert-pandoc=6.5.0=pyhd8ed1ab_0
      - nbformat=5.4.0=pyhd8ed1ab_0
      - ncurses=6.3=h7f8727e_2
      - nest-asyncio=1.5.5=pyhd8ed1ab_0
      - notebook-shim=0.1.0=pyhd8ed1ab_0
      - openssl=1.1.1o=h7f8727e_0
      - packaging=21.3=pyhd8ed1ab_0
      - pandoc=2.18=ha770c72_0
      - pandocfilters=1.5.0=pyhd8ed1ab_0
      - parso=0.8.3=pyhd8ed1ab_0
      - pexpect=4.8.0=pyh9f0ad1d_2
      - pickleshare=0.7.5=py_1003
      - pip=21.2.4=py39h06a4308_0
      - platformdirs=2.5.1=pyhd8ed1ab_0
      - pluggy=1.0.0=py39hf3d152e_3
      - prometheus_client=0.14.1=pyhd8ed1ab_0
      - prompt-toolkit=3.0.29=pyha770c72_0
      - ptyprocess=0.7.0=pyhd3deb0d_0
      - pure_eval=0.2.2=pyhd8ed1ab_0
      - pycodestyle=2.8.0=pyhd8ed1ab_0
      - pycosat=0.6.3=py39h27cfd23_0
      - pycparser=2.21=pyhd3eb1b0_0
      - pydantic=1.8.2=py39h3811e60_0
      - pydocstyle=6.1.1=pyhd8ed1ab_0
      - pyflakes=2.4.0=pyhd8ed1ab_0
      - pygls=0.11.3=pyhd8ed1ab_0
      - pygments=2.12.0=pyhd8ed1ab_0
      - pylint=2.13.9=pyhd8ed1ab_1
      - pyopenssl=21.0.0=pyhd3eb1b0_1
      - pyparsing=3.0.9=pyhd8ed1ab_0
      - pysocks=1.7.1=py39h06a4308_0
      - python=3.9.7=h12debd9_1
      - python-dateutil=2.8.2=pyhd8ed1ab_0
      - python-fastjsonschema=2.15.3=pyhd8ed1ab_0
      - python-lsp-jsonrpc=1.0.0=pyhd8ed1ab_0
      - python-lsp-server=1.4.1=pyhd8ed1ab_1
      - python_abi=3.9=2_cp39
      - pytz=2022.1=pyhd8ed1ab_0
      - readline=8.1.2=h7f8727e_1
      - requests=2.27.1=pyhd3eb1b0_0
      - robotframework=5.0.1=pyhd8ed1ab_0
      - robotframework-lsp=0.48.0=pyhd8ed1ab_0
      - rope=1.0.0=pyhd8ed1ab_0
      - ruamel_yaml=0.15.100=py39h27cfd23_0
      - send2trash=1.8.0=pyhd8ed1ab_0
      - setuptools=58.0.4=py39h06a4308_0
      - six=1.16.0=pyhd3eb1b0_0
      - sniffio=1.2.0=py39hf3d152e_3
      - snowballstemmer=2.2.0=pyhd8ed1ab_0
      - sqlite=3.37.0=hc218d9a_0
      - stack_data=0.2.0=pyhd8ed1ab_0
      - terminado=0.15.0=py39hf3d152e_0
      - tinycss2=1.1.1=pyhd8ed1ab_0
      - tk=8.6.11=h1ccaba5_0
      - toml=0.10.2=pyhd8ed1ab_0
      - tomli=2.0.1=pyhd8ed1ab_0
      - tornado=6.1=py39h3811e60_1
      - tqdm=4.62.3=pyhd3eb1b0_1
      - typeguard=2.13.0=pyhd8ed1ab_0
      - typing-extensions=4.2.0=hd8ed1ab_1
      - typing_extensions=4.2.0=pyha770c72_1
      - tzdata=2021e=hda174b7_0
      - ujson=5.1.0=py39h295c915_0
      - urllib3=1.26.7=pyhd3eb1b0_0
      - wcwidth=0.2.5=pyh9f0ad1d_2
      - wheel=0.37.1=pyhd3eb1b0_0
      - wrapt=1.12.1=py39h3811e60_3
      - xz=5.2.5=h7b6447c_0
      - yaml=0.2.5=h7b6447c_0
      - yapf=0.32.0=pyhd8ed1ab_0
      - zeromq=4.3.4=h9c3ff4c_0
      - zipp=3.8.0=pyhd8ed1ab_0
      - zlib=1.2.11=h7f8727e_4
      - pip:
        - argon2-cffi==21.3.0
        - argon2-cffi-bindings==21.2.0
        - bcrypt==3.2.2
        - build==0.8.0
        - debugpy==1.6.0
        - distro==1.7.0
        - docker==5.0.3
        - docker-compose==1.29.2
        - dockerpty==0.4.1
        - docopt==0.6.2
        - ipykernel==6.13.0
        - ipython-genutils==0.2.0
        - json5==0.9.8
        - jsonschema==3.2.0
        - jupyter-client==7.3.1
        - jupyter-lsp==1.5.1
        - jupyter-server==1.17.0
        - jupyterlab==3.4.2
        - jupyterlab-lsp==3.10.1
        - jupyterlab-server==2.14.0
        - markupsafe==2.1.1
        - nbclient==0.6.3
        - notebook==6.4.11
        - paramiko==2.11.0
        - pep517==0.12.0
        - psutil==5.9.1
        - pynacl==1.5.0
        - pyrsistent==0.18.1
        - python-dotenv==0.20.0
        - pyyaml==5.4.1
        - pyzmq==23.0.0
        - soupsieve==2.3.2.post1
        - texttable==1.6.4
        - traitlets==5.2.1.post0
        - webencodings==0.5.1
        - websocket-client==0.59.0
    prefix: /home/user/miniconda3

Command Line Output
https://pastebin.com/vnHgyvpz
Browser Output (recommended for all interface issues)
https://pastebin.com/ku7xA7cX
krassowski commented 2 years ago

Do other language servers work ok, or is it only an issue with the vscode-html-language-server? What is the version of vscode-html-language-server that you got installed?

jnewton3edinburgh commented 2 years ago

The Python language server appears to work, though that was installed via Conda which is the only difference I can think of. The other language servers all have the same issue with unset variables. It's the NPM ones we're having issues with. vscode-html-language-server is version 1.4.0

jnewton3edinburgh commented 2 years ago

I have rechecked the html and other node language servers this morning, and all have the same issues.