Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backward search not working on WLS2: execv error: No such file or directory #679

Open
ubaldot opened this issue Sep 16, 2024 · 3 comments
Open
Labels
help wanted Extra attention is needed

Comments

@ubaldot
Copy link

ubaldot commented Sep 16, 2024

As per title. I build the pdf with the following command:

latexmk -pdf -xelatex -synctex=1 -interaction=nonstopmode /home/myname/tests/example.tex

Before building, I cd in the directory where the example.tex file is located.

The content of /home/myname/.config/zathura/zathurarc is

    set synctex true
    set synctex-editor-command "gvim --remote-silent +%{line} %{input}"

The backward search is performed by ctrl-left clicking on the pdf opened in zathura.

Some notes:

  • forward search works, backwards search does not.
  • By running e.g. gvim --remote-silent +52 /home/myname/tests/example.tex from the command line then gvim reacts as expected (jump to line 52 of /home/myname/tests/example.tex)
  • The file example.synctex.gz is correctly created and it is in the same folder
    as example.tex and example.pdf.
  • I tried to build with pdflatex as well
  • Working on WSL2 with Ubuntu 22.04 installed
  • zathura v0.4.9, xelatex --version return XeTeX 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian)

Here is a screenshot where you can see what happens when I try to backwards sync:

image

@ubaldot ubaldot changed the title Synctex backward search not working on WLS2: execv error: No such file or directory Backward search not working on WLS2: execv error: No such file or directory Sep 17, 2024
@ubaldot
Copy link
Author

ubaldot commented Oct 27, 2024

I found some time for playing around it. I open a .tex file with gvim. Then, from the terminal I run (as per man zathura):

zathura -x "gvim --servername vim -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" main.pdf

and while trying the backwards search, then the problem is still there.

@ubaldot
Copy link
Author

ubaldot commented Oct 27, 2024

...and I tried this: https://x410.dev/cookbook/wsl/sharing-dbus-among-wsl2-consoles/ without success.

@sebastinas sebastinas added the help wanted Extra attention is needed label Nov 4, 2024
@sebastinas
Copy link
Member

I don't know WSL2 and also have no environment to test changes. This will require help from somebody that does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants