jupyterlab with pylsp .virtual_documents error

19 views Asked by At

I'm using jupyterlab 4.1.5 and am trying to follow these instructions: https://jupyterlab.readthedocs.io/en/latest/user/lsp.html

I pip installed pylsp using the provided command. When I start jupyterlab it says the lsp extension was initialized. However, as soon as I open a .ipynb, I get this error:

[W 2024-03-21 16:54:39.012 ServerApp] [lsp] initialization of shadow filesystem failed three times
check if the path set by `LanguageServerManager.virtual_documents_dir` or `JP_LSP_VIRTUAL_DIR` is correct;
if this is happening with a server for which you control (or wish to override) jupyter-lsp specification
you can try switching `requires_documents_on_disk` off. The errors were:
[PermissionError(13, 'Permission denied'), PermissionError(13, 'Permission denied'),
PermissionError(13, 'Permission denied')]

I think I want to follow the suggest of turning off requires_documents_on_disk. It's unclear to me how I'm supposed to do that. I tried adding it as a language server setting/property (per those same instructions) and I set it to false. That didn't fix it.

0

There are 0 answers