-
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
Forward search during background compilation unexpectedly triggers copy #2819
Comments
Thanks; this seems to be a relatively hard issue to be honest. The copying is currently performed when you are viewing the file, not when it is compiled. I realize the documentation is probably not consistent with the current behaviour, though. I'll look into this. It will probably require some work, so I won't promise to deliver very fast, but I'll try. In the meantime, I would recommend to disable this option. |
The old implementation was not working properly and the docs were inconsistent with the implementation. The docs should now be properly consistent and the implementation should be better and more robust. refer: #2819
I believe I've fixed it - please update and test. |
Yes, that fixed it, excellent, thanks! |
Glad to hear it :) |
Description
With
g:vimtex_view_use_temp_files = 1
, vimtex - upon completion of the compile process - copies the fresh file (e.g.,test.pdf
) totest_vimtex.pdf
, which is the file the viewer is told to open. However, executing a forward search while LaTeX is compiling, incorrectly appears to also trigger this copy process. Consequently, there is a high probability that the half-bakedtest.pdf
is copied over totest_vimtex.pdf
in the middle of the compile process, causing the viewer to refresh on a broken file and naturally failing.Steps to reproduce
No response
Expected behavior
I expect the copy of
test.pdf
totest_vimtex.pdf
to trigger only when the compile process finishes successfully. In particular, not as part of a forward search.Actual behavior
Forward search appears to trigger
test.pdf
to be copied over totest_vimtex.pdf
, regardless of whether or not a compile process is in progress.Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: