-
Notifications
You must be signed in to change notification settings - Fork 391
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
:VimtexCompile in WSL with neovim and okular create not a --unique instance #1720
Comments
Hi :)
This is not really a vimtex issue, as there is no specific Okular feature in vimtex. The interface to Okular is specified through the options for the general viewer. However, I can try to help figure things out.
The following is better as it is even more minimal: set nocompatible
let &rtp = stdpath('data') . '/plugged/vimtex,' . &rtp
let &rtp .= ',' . stdpath('data') . '/plugged/vimtex/after'
filetype plugin indent on
syntax enable
This is what I mean about Okular not having a specific vimtex interface. Note that So, to debug this, I would try to replicate the behaviour outside Vim. That is, first, compile your project with latexmk (e.g. from within vimtex). Next, open a terminal at the same location and test the capabilities: okular --noraise --unique file:test.pdf#src:100test.tex Of course, change the filenames Does it give any warnings in the terminal? Can you replicate the warning message? |
WOW this is a great day of solving computer pain point !!! I am just going to document the solution in case someone is looking for it. If you think it is not the place you can delete or move it.
Solved by : Second error/warning:
Solved by : |
Great, I'm happy to hear it! And it's of course no problem that you've documented the solution, I'm all for sharing! :) |
Hello, I also find this problem on my WSL. The information, "There is already a unique Okular instance running. This instance won't be the unique one" occur even when I just run 'okular --unique'. |
Did you try the solutions proposed by @vincentbenzo? |
yes. I run 'sudo apt-get install mesa-utils' and |
I see. I'm sorry to say I don't have anything more to say to help here except what I wrote to @vincentbenzo. :\ |
I figured it out! |
Great, happy to hear it! |
Hello again :)
Issue
When I first compile using
:VimtexCompile
or\ll
I have an okular information window saying: "There is already a unique Okular instance running. This instance won't be the unique one." If I click ok the pdf appears. When I change something in the minimal.tex the pdf is updated in the same instance.However when I use
\lv
I have the same information window appearing from okular. If I press OK a second instance open at the right spot.I was expecting to have the same pdf moving to the right not an a new pdf to be opened on the right spot.
minimal.vim
minimal.tex
Output from VimtexInfo
Edit: It seems related to #1374 but on debian on wsl
The text was updated successfully, but these errors were encountered: