-
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
Why is the log output of vimtex incomplete? #2136
Comments
I also can't see that Sublime Text and LaTexTools shows the location. I do see that they provide a better error message. However, it is actually very hard to properly parse the A possibility is to use a different quickfix method, see |
Hi @lervag. Thanks for your work as ever.
I can try and find a better minimal example where the Sublime Text/LaTeXTools does show the line number, but it does seem to be subject to the exact layout of the .tex file. In any case, I think the point is made---the error reporting is not very good. Without being flippant, why is LaTeXTools so much better at parsing the log file? The same comment is made for Mac's TexShop:
I looked into both But then even if I can sort out the build errors, in my view this is a fairly significant limitation of vimtex---if the error output can't match even basic conventional latex compilers like TexShop or LaTeXTools (on Mac). I am not sure about compilers like Kile, TexStudio, TexMaker, etc. but I would have thought their outputs would be similar as well? |
Also: It seems that texfot will do a better job and comes packaged with TexLive, see StackExchange. On the log file, it returns
A built-in alternative or one that is packaged with most latex installs would be much better. |
Yes; the problem is that the quickfix feature in Vim typically relies on the
It's a good question. Either someone has implemented a good parser in LaTeXTools, or they rely on some preprocessor that I'm not aware of. I mean, it could even just be
Well, I don't quite agree: TexShop is only showing you the log output here. You can see similar output in VimTeX with
Yes, I can relate to this.
Yes and no: I believe you will find that VimTeX handles most types of warnings and errors quite fine. The error in your example, where you are missing a
That's interesting. But it's slightly hard to use, because it parses the standard output instead of the log file. The quickfix parsing is currently based on parsing the log file or a preprocessed version of the log file.
Again, notice how even here the error message does not contain the relevant line number. |
I've tried to improve the handling now. Please test. |
That seemed to do the trick---at least for this error. Excellent! Thanks as well for explaining the issues clearly to me. |
Happy to hear it! Let's hope I didn't break anything in the process. I spent quite a lot of time on improving the related tests to avoid just that :p |
By the way, feel free to open related issues if you happen to notice other types of log output that is not well parsed. As I said, the parsing is hard, but there are quite a few hackish tricks that can help. |
I wanted to return to this issue as today I was getting very frustrated with the poor error parsing. This happens frequently where I may need to open up the tex file with a different parser in order to read the issue. Is there any way to just ensure the quickfix output includes a copy of the log file near the error? I would much prefer more output. |
If you are able to make a simple, reproducible example of a situation in which you find the error parsing to be poor, then I may be able to help improve it. If so, please open a new issue for that.
You can always just open the log file. Or you can do |
Description
Here is a minimal working example showing error log output using vimtex (above) versus Sublime Text and LaTexTools (below). As you can see the vimtex log doesn't show the location of the error of the missing brace in the \frac command.
I currently have the following error suppression settings:
Steps to reproduce
Expected behavior
Detailed relevant error log info.
Actual behavior
No response
Do you use a latexmkrc file?
NA
VimtexInfo
The text was updated successfully, but these errors were encountered: