You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the middle of a bunch of updates to my latex project I suddenly started receiving the error Vim(let):E684: list index out of range: 1, with no explanation or cause to it.
I started debugging it, and after a very long time, I traced it to a missing comma inside one of my bibliography entries. I'm not sure whether the ergonomics of such an issue can be improved, but I thought of reporting this anyway.
Relevant last part of log when running with vim -V9:
49 if b:vimtex.compiler.silence_next_callback
50 call vimtex#log#set_silent_restore()
51 let b:vimtex.compiler.silence_next_callback = 0
52 endif
53
54 call vimtex#qf#open(0)
55 silent! call s:output.resume()
endfunction
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim90/debian.vim
3: /usr/share/vim/vim90/syntax/syntax.vim
...
181: ~/.vim/bundle/vimtex/autoload/vimtex/jobs/vim.vim
182: ~/.vim/bundle/vimtex/autoload/vimtex/qf/u.vim
183: ~/.vim/bundle/vimtex/autoload/vimtex/qf/biblatex.vim
VimTeX: Something went wrong when parsing log files!
Vim(let):E684: List index out of range: 1
Error detected while processing function <SNR>111_callback_continuous_output[6]..<SNR>111_check_callback[4]..vimtex#compiler#callback:
line 55:
E121: Undefined variable: s:output
Steps to reproduce
vimtex config:
letg:vimtex_enabled=1" We use latex for texletg:tex_flavor='latex'letg:vimtex_compiler_latexmk= {
\ 'build_dir' : 'build'\}
In the middle of a bunch of updates to my latex project I suddenly started receiving the error Vim(let):E684: list index out of range: 1, with no explanation or cause to it.
Thanks for the good issue report. I've reproduced the bug and I believe it is fixed. Please test and report.
vimtex config:
letg:vimtex_enabled=1" We use latex for texletg:tex_flavor='latex'letg:vimtex_compiler_latexmk= {
\ 'build_dir' : 'build'\}
You don't need let g:vimtex_enabled = 1, nor let g:tex_flavor = ... - both of these lines can safely be removed.
I started debugging it, and after a very long time, I traced it to a missing comma inside one of my bibliography entries. I'm not sure whether the ergonomics of such an issue can be improved, but I thought of reporting this anyway.
After I've fixed this, your example yields the following errors in the quickfix window:
I believe the final entry here should be quite helpful in figuring out the problem.
Description
In the middle of a bunch of updates to my latex project I suddenly started receiving the error
Vim(let):E684: list index out of range: 1
, with no explanation or cause to it.I started debugging it, and after a very long time, I traced it to a missing comma inside one of my bibliography entries. I'm not sure whether the ergonomics of such an issue can be improved, but I thought of reporting this anyway.
Relevant last part of log when running with
vim -V9
:Steps to reproduce
vimtex config:
main.tex
:bibl.bib
:Expected behavior
Some way to figure out that there is a problem in the bibliography, maybe?
Actual behavior
Random error from Vim which was also (at least for me) fairly untraceable to anything.
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: