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
Viewer cannot find Zathura window ID on macOS #1737
Comments
In #1735 I got the impression that this issue was resolved. Did I misunderstand? |
A different issue lay at the basis of that one. Once I resolved that, I got the error message that's in the title of this issue. For future reference it seemed more clear to create a separate issue for both. |
Ok. Have you tried the commands from a terminal? That is:
|
Thanks. Nothing happens when I run that command in Terminal. Zathura doesn't open and the terminal doesn't give me a new prompt. |
Ok, then try simply Do you have Zathura with libsynctex support? Which version of Zathura? What's the output of |
That command works: the pdf opens as expected.
|
Good, but you did not respond to all of my questions:
|
My apologies for the late reply (holiday). When I copy paste the first command in a Terminal I now get: When I subsequently type the |
Thanks. I believe the zathura -x 'nvr --remote-expr "vimtex#view#reverse_goto(%{line}, ''%{input}'')"' ... However, I think the real problem is that So, for now, simplify:
I've already mentioned that this seems related to #1719. Can you please read that thread again, especially the comments from June 17 and later? E.g. this comment seems relevant. |
I don't know whether this is true on Linux but on macOS zathura does not behave like a normal window. When opened like this it's attached to the Terminal process. I can't close the zathura window separtely, I can only do this by closing the Terminal session. I've tried to implement the #1719 wrapper script but I don't quite know how to translate this to macOS. Even with |
Ah, I'm sorry, my mistake. I thought that issue was related to OSX, but it was related to Wayland on Linux. However, this issue is relevant. Could you read the linked comment and see if it helps? |
Ah, no, sorry. I realize @ktran9891 get's the same message as you. So, it seems noone so far has been able to get Zathura to fully work on OSX. I don't use OSX myself, and I am confident that the issue here is related to the xdotool part. It seems it is not possible to obtain the window ID with xdotool. To solve the issue, you would have to investigate this part, and I'm afraid I am not able to help further with that. |
See fix over at zegervdv/homebrew-zathura But when I install development branch the zathura window is now correctly seen by window management apps like Magnet but zathura does not open with |
@flimofly on my machine it already works fine Screen.Recording.2021-01-11.at.15.37.58.mov |
Oh that's great! Are you also on macOS Big Sur? Is a window ID assigned by xdotool (see :VimtexInfo)? I have no idea what I'm doing wrong. Did you need to install the develop version of zathura with an option to install libsync? |
I have the same problem with zathura. When i type the cmd from I get this output:
Does this help anyone to see whats wrong? |
@tbsmn Can you try the same, but without |
Yeah, I'm on latest macOS, I just followed the instructions on the homebrew-zathura issue and this is the output of `:VimtexInfo` after starting the compiler
|
When I do that, I get But I can't find the precise formulation to install with synctex support via |
|
Thanks for the quick reply. This fixed it!
… On 12 Jan 2021, at 07:41, Daniel Falbo ***@***.***> wrote:
zegervdv/zathura/zathura --with-synctex
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1737 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEZHVAFRAHA6EFEJWSE4KOTSZPVKFANCNFSM4ORPQN7Q>.
|
When I do that I get this error:
When I run @flimofly Is it working for you now? Could you post the exact homebrew commands you used to install zathura to make it work? |
I'm sorry that I can't be of much more help here, @tbsmn; but I'm glad to see some progress here. I would be very happy if the result of this discussion can be an update to the docs with a simple and consise recipe to make Zathura work on OSX. |
It's working now. I did:
Note that before I had installed 'xdotool' via brew and also XQuartz. I had also followed the instructions on this website to get XQuartz to work with XTEST. I wonder whether XQuartz is necessary at all? |
On my machine, everything's ok without XQuartz so I guess it's not necessary 👍 |
@flimofly Thanks. I did the exact same install, but it is not working I get the same error as before.
xdotool and XQuartz work with XTEST. But thanks for that tipp. Any ideas how I could debug this? |
@tbsmn Unfortunately I don't have a clue. I looked at an earlier issue that I had with @danielfalbo Does forward search work for you? I see in your VimtexInfo output that |
Hadn't tried this before because Zathura did open correctly but when I paste the command from VimtexInfo in a separate Terminal window, I now get a similar error that is also dbus related:
|
@flimofly OK so opening and refreshing is working. Same here. But fordward an backward search is an issue (example :VimtexView). |
@danielfalbo Does forward/backward search work for you, or do you have the same issue? |
Forward and backward search are working now for both @tbsmn and me on latest version of macOS. See further troubleshooting over at zegervdv/homebrew-zathura |
Ah, nice! Would you care to provide an updated summary of what is required, then I can add it to the docs? |
I will give it a try:
Credits go to @ROBERT-MICHAEL who figured out the dbus part. |
Thanks! I've tried to add a section |
Thanks both! |
That's really work bro. |
Issue
In Neovim on MacOS, when pressing
\lv
to trigger:VimtexView
, I get error messagevimtex: Viewer cannot find Zathura window ID!
. The Zathura window does not get a xwin id.xdotool
is installed.minimal.vim
minimal.tex
Output from
VimtexCompileOuput
Commands/Input
\ll
\lv
or:VimtexView
Observed Behaviour
Error message appears
Expected Behaviour
Expect window to shift and passage to be highlighted in Zathura
Output from VimtexInfo
Edit by @lervag: Remove unnecessary options from minimal vimrc.
The text was updated successfully, but these errors were encountered: