jupyterlab / jupyterlab-latex

JupyterLab extension for live editing of LaTeX documents
BSD 3-Clause "New" or "Revised" License
608 stars 70 forks source link

v4.0 does not work in collaborative session in jlab 4 #224

Open jochym opened 7 months ago

jochym commented 7 months ago

Description

Extension (in ver 4.0) does not work in jlab4 in collaborative mode due to the added 'RTC:' prefix in the file name.

Reproduce

  1. Open tex file in the collaborative session
  2. Click on 'Show LaTeX preview'
  3. See error: 'Request cannot be completed; no file at RTC:Project/paper/main.tex.' in the error pane.

Expected behavior

The preview should be rendered with latex compilation.

Context

I think just filtering out 'RTC:' prefix should fix this problem. Unfortunately, I cannot write in TS, thus I cannot propose a patch. This is quite a showstopper in my particular use case. I will be happy to test any proposed fixes. The extension is installed directly from the git clone with pip in conda-forge environment.

welcome[bot] commented 7 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

jochym commented 7 months ago

It seems the issue is lack of support for custom drives (see the discussion in https://github.com/jupyterlab/jupyter-collaboration/issues/183). jupyterlab-latex is not the only extension affected, but it looks like the correct action is adding support to the extension(-s).