-
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
Startup error in multi-file document with relative paths #2246
Comments
Thanks for the good issue description! Yes, this seems to be different. But I can't reproduce this, unfortunately. Which version of Aha... sorry:
That's strange; what is the output of If you open Vim with VimTeX loaded, what is the output of |
I can try with neovim later today. |
What's the output of |
Both of those printed nothing. I installed neovim, and with that the problem didn't appear. However, after that, the problem was also gone with regular vim! The problem appears again if I remove the files in Also, the
Here's the contents of the cache after the commands:
|
Thanks for the thorough investigations! Let's focus on Vim; there seems to be a problem here that is hard to locate. Could you do this (notice
What's the output now? |
It seems you are capable of digging in things yourself. The problematic code seems to be related to the VimTeX jobs api, here: vimtex/autoload/vimtex/jobs.vim Lines 46 to 70 in 24cc527
I would guess it is either the caching or the capturing that is the problem. That's the point of my above request. If the captures still yield empty output, then it seems there must be something wrong with this: vimtex/autoload/vimtex/jobs/vim.vim Lines 118 to 123 in 24cc527
So my next suggestion would be to look at the output of |
The capture command returns empty for both of those in vim, but they work in nvim. I'll investigate a bit further. |
Aha. In vim, running So all in all, the problem is because of my shell configuration. Sorry about the hassle. Thanks for the help, and thank you very much for maintaining vimtex! |
Great, I suspected that Or, rather; perhaps I should just reset the shell for VimTeX (user would not notice, but this issue would be resolved without you having to change the shell option). |
That sounds reasonable, although you would have to be careful to make sure to use a shell that is installed. I don't know if it can be assumed that |
I believe my commit should be safe. We don't need bash, |
Cool, I can try it a bit later. |
Yeah, seems like it's working! Can setting the original value of Anyway, thanks again! |
Happy to hear it!
No, I don't think so. |
Description
I have a tex file in a subfolder that
\input
s a file in another subfolder that is relative to the main document. Latexmk complies it fine, but when I open the file in vimtex I get the following errorThe symptoms are similar to #2188, but seems like it's a different problem.
Steps to reproduce
I have the following file structure:
with the following contents:
main.tex
sections/introduction.tex
fig/some_figure.tex
(In reality this is a
.pdf_tex
file generated by Inkscape, but the error is the same.)minimal.vim
Then, running
vim -u minimal.vim sections/introduction.tex
produces the above error.I also tried
:VimtexClearCache kpsewhich
and addinglet g:vimtex_cache_root = '.'
to the vimrc as discussed in #2188 but it didn't help.Expected behavior
Vimtex should load the file normally
Actual behavior
I get the error message as above, and vimtex is disabled (
\ll
does'nt work, no syntax highlighting between\begin{}
and\end{}
, etc).Do you use a latexmkrc file?
No
VimtexInfo
This is when I open
main.tex
(I'm running ubuntu 20.04.3, it's not there inVimtexInfo
for some reason):The text was updated successfully, but these errors were encountered: