Closed pmarcellino closed 2 years ago
yep: at present the only way to make that work is to do a real, file-system-level symlink of /
of your contents root, e.g. /home/jovyan/.lsp_symlink
: the path can be changed, but it's not that exciting:
https://jupyterlab-lsp.readthedocs.io/en/latest/Configuring.html#virtual-documents-dir
Another, more portable (e.g. works on windows) approach is to ensure that the kernel environment is within the contents root, a la .venv
or a conda environment.
I'm not sure what you mean by it's not that exciting
, and if it matters I am on Ubuntu, not windows.
i'm saying, even if you configure the name to be somethign other than the default of .lsp_symlink
, you'd still have to
ln -s / /home/jovyan/.some_other_symlink_name
To take a step back here, @pmarcellino did you follow point six of https://github.com/jupyter-lsp/jupyterlab-lsp#installation?
Ahh. That fixed it. I read the documentation at https://jupyterlab-lsp.readthedocs.io/en/latest/Installation.html to install it, and that doesn't seem to have that optional tip. Thanks for the help.
It used to work. Howver, I just upgraded to jupyterlab 4.2.2 and this doesn't work.
I have created the .lsp_symlink and configured the allow_hidden option.
The problem is /
in the directory is missing for unknown reason.
As you can see, it should be /home/joe, but it is actually looking for home/joe.
Description
When I try to jump to definition outside of the document I am in it fails and I get this message.
Expected behavior
I expected it to open the file pandas/init.py
Required: installed server extensions
Required: installed lab extensions
Troubleshoot Output
Browser Output (recommended for all interface issues)