-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fixes filename tracking in errorformat #20
Conversation
Can you please provide an example that makes it possible to reproduce the bug that is fixed here? |
Sorry for not being clear. Here's a minimal example I created: https://gist.github.com/netj/f61c5931598d0c6ff704 When you compile a multi-file .tex document where the master .tex \inputs or \includes other .tex files, |
When a document consists of multiple .tex files, the current errorformat can lose track of the filename the warning refers to. See https://gist.github.com/netj/f61c5931598d0c6ff704 for an example to reproduce this bug.
Please take another look. I've amended the previous commit to work with my example as well as a larger document (with dozens of inputs). Getting the efm for |
@netj Thanks for the fix, seems to work great! |
I agree that the @netj: I do not get the problem with your posted example. For me, everything works fine with the current @rekka: Could you please post an example |
@gerw Interestingly it's working fine now without my patch. fbda235 has no problem picking up the correct file names with texlive-2015 (on Mac) in Vim 7.4.1589. I updated the gist with new a.log whose diff is shown here: https://gist.github.com/netj/f61c5931598d0c6ff704/revisions Honestly, I forgot what exactly was the old problem and how I fixed it since this was many many years ago. However, I'm pretty sure I was trying to make the UPDATE: Sorry, those lines may be a red herring since no actual errors follow. I don't know.. maybe it was my old Vim version, but I probably tested on the latest back then too before creating this PR. |
Thank you for your reply. I think that I can imagine what your patch tries to improve. The usage of the One thing involves the I will try to improve the |
The last commit tries to improve the |
Thanks for all your work. It definitely works better in that it picks up some file name for an error. However, it is very fragile, failing on quite simple included tex files with figures, for instance. Minimal example with 3 files
Reports error in the wrong file:
Log: https://gist.github.com/rekka/6db540ef4cd47992cc26cd86d9fdf257 |
Thank you for reporting. This is weird since However, there is another problem on your line 86: the |
Thank you for your quick reply. So based on your suggestion, I double checked how I am running pdflatex and noticed that I had a custom command that was missing However, I noticed that warnings still have a problem. Minimal test case (
Now this prints
Here's the log output: https://gist.github.com/rekka/4c382f894c6a9a1f814aaa8b43295bb1 If I use
Here's the log: https://gist.github.com/rekka/563e9f0ed58bd457d3509a445b41dc24 By the way, how can I delete lines in the log file line-by-line and then request vim to reparse the errors? For completeness:
|
You can reload the errors by:
It would be very nice if you could locate the problem in your log files. For debugging, I recommend to delete blocks in the log-file ( Again, your example with warnings works fine for me. For compiling, I can use both
and
In both cases, errors and warnings are recognized correctly. |
OK, this is strange. Just running Tried this both on Ubuntu with GVim and macOS 10.12 with MacVim, the same behavior, even if I disable all other plugins. I'm using vim-plug for plugin installation. |
Thank you for your answer. Indeed, if I compile with |
Thank you so much for your time. |
Using For me, I fixed this, by replacing the For the record, one can save the output of
|
Does not seem to work for me even with 5 even in the 2nd test case, picks up the wrong file:
Currently running |
This is weird. Can you compare the output of |
Fixes an incorrect
'errorformat'
set by vim-latex to the correct ones in the latest Vim documentation.