-
Notifications
You must be signed in to change notification settings - Fork 390
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
Continuous mode can not work in Neovim #2291
Comments
I think it would be rather helpful to add these "multiple errors" (and your |
What @clason said. Please add more details! |
This means you haven't actually configured Sumatra as your viewer! See |
I believe I fixed the problem with the error message - please update and test. |
I don't think so...I have sumatraPDF executable in path, and as I have said, vimtex works well in vim (open pdf automaticliy after finishing compiling), but not in neovim. |
Yes, errors go away. But sumatraPDF still not be automaticliy opened. |
I you use the above minimal.vim, then you did not setup SumatraPDF as explain in |
As described in docs:
And I also tried to setup by myself, this bug still exists. |
Hah, good point, sorry. :) |
Question: Does it work with Vim but not neovim? |
Yes. And I just find another bug, |
Strange. I've pulled up a Windows VM and for me, everything works as expected. Can you explain in more detail how your system is configured? |
Which OS (including version). |
Did you read |
OS: Windows 10 21H1 |
No, not using Strawberry perl, my |
I believe the error is with the latexmk setup somehow. Can you do this:
How is latexmk installed? I do recommend installing strawberry perl... |
my
|
And it still does not work? |
Eh, not work |
Do you get confirmation in Vim/neovim that the compilation was successful? |
I.e. after |
Never saw such message in Neovim (I mean the confirmation about successful complilation). But I can see |
I'm really confused here. I don't understand why it does not work. Let's focus on Vim first, as it seems closer to work than neovim. Now, with Vim:
|
This sounds to me like the texlive binary path is not set in the environment of the started job. (The jobstart implementation is different between Vim and Neovim, so that is hardly surprising.) I don't know anything about Windows so I unfortunately can't help troubleshoot this if |
Hmm.. how so? @RnYi And the output of |
@RnYi: Can you do |
Also, can you try to translate the chinese stuff in the error messages on the line with E712? |
restart vim, then:
|
I've pushed a minor update that should give a more useful error message here. Can you show me the output of the new error message? |
The error we're discussing above is not relevant to the issue, but it would still be nice to fix it. Regarding the issue: the
The problem is that let g:vimtex_view_general_viewer = 'SumatraPDF.exe' Can you verify? |
Very strange. Are you capable of helping with the debugging by making some modifications to the code? The location that is relevant is here: vimtex/autoload/vimtex/cache.vim Lines 204 to 215 in a60a25d
Could you do this code on your end: if getftime(self.path) > self.ftime
echom self.path
for line in readfile(self.path)
echom line
endfor
"... Then again do |
Yes, bug fixed |
Is it fixed for both Vim and neovim? |
Yes. So is it time to fix the bug for neovim?😂 |
Ok, so, if I undestand correctly you say:
If that's right: Then I would ask that we repeat the steps from above:
|
cmdline only shows this info, and latexmk indeed compiles the tex file. Not opening SumatraPDF automaticly.
|
Well, for some reason that I currently don't understand, your neovim does not handle the callbacks. Or - it seems the latexmk process does not echo the output. Perhaps, for some reason, latexmk does not pass the command to a shell that understands "echo"? I don't know what happens here, to be honest. |
Can you explain how you've installed neovim and how you run the minimal example with neovim in more details? |
Just download neovim nightly from github, and extract it (now neovim's version is 0.7.0). I use |
I tried neovim 0.6.1, problem still exists. |
When you start neovim, can you report the output of these:
I sort of expect |
It's
Still Not Works in |
Well, isn't that weird... Can you try Next, I'll try to reproduce the problem in my VM: if I understand correctly, this should reproduce:
I'll test with my current latex setup - I've used MikTeX with Strawberry perl. But I'll wait until you've checked what I asked and until you confirm that my steps seem correct for reproducing. |
doesn't work.
yes, you can go on :) |
I don't see any particular problem with this change, and it fixes an issue with neovim on Windows. refer: #2291
I believe the problem with neovim is now fixed. Can you update and test? |
Yes, works well now, Thanks! |
Great, happy to hear it. I'll try to fix the next issue as well now. |
Description
VimtexCompile
,VimtexClean
.Steps to reproduce
:VimtexCompile
Expected behavior
Auto open sumatraPDF.
Actual behavior
latexmk succeed in compiling tex file and producing a pdf, but doesn't open sumatraPDF.
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: