jupyterlab / jupyterlab-latex

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

GET 500 while use synctex to scroll editor to page #200

Open WangXin93 opened 1 year ago

WangXin93 commented 1 year ago

Description

I met error when click scroll editor to page on the pdf viewer. The console which I started jupyter shows that:

...
[W 2022-09-12 11:17:45.336 ServerApp] Unhandled error
[E 2022-09-12 11:17:45.337 ServerApp] {
      "Host": "127.0.0.1:8889",
      "Accept": "*/*",
      "Referer": "http://127.0.0.1:8889/lab/tree/footex/foo.pdf",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.33"
    }
[E 2022-09-12 11:17:45.337 ServerApp] 500 GET /latex/synctex/footex/foo.pdf?page=2&x=0&y=0&1662952665293 (127.0.0.1) 41.89ms referer=http://127.0.0.1:8889/lab/tree/footex/foo.pdf

Reproduce

I tried to write a simple tex file as follows.

\documentclass{article}

\begin{document}

Hello, world

\newpage

Hello, again

\end{document}

I compiled the tex file by right click the tex editor then select Show Latex Preview.

As a result, I find I can jump from editor to pdf viewer, but has error when I tried to jump from pdf viewer to tex editor.

Expected behavior

I want to know how to get rid of this error.

Context

Command Line Output
[E 2022-09-12 11:17:45.337 ServerApp] 500 GET /latex/synctex/footex/foo.pdf?page=2&x=0&y=0&1662952665293 (127.0.0.1) 41.89ms referer=http://127.0.0.1:8889/lab/tree/footex/foo.pdf

welcome[bot] commented 1 year 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: