Skip to content
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

E688/E712 on :VimtexTocOpen #2145

Closed
lucc opened this issue Aug 25, 2021 · 4 comments
Closed

E688/E712 on :VimtexTocOpen #2145

lucc opened this issue Aug 25, 2021 · 4 comments
Labels

Comments

@lucc
Copy link

lucc commented Aug 25, 2021

Description

The command VimtexTocOpen fails on my document. The first time I run it I get an E688 and from then on I get E712.

Steps to reproduce

I use neovim (did not test vim).
I use the following document and the (your) minimal.vim init file from below.

\documentclass[a4paper]{article}
\usepackage{biblatex}
\addglobalbib{main.bib}
\begin{document}
\cite{something}
\printbibliography
\begin{refsection}
\nocite{*}
\printbibliography[title={Temporary, complete list of references}]
\end{refsection}
\end{document}

and run :VimtexTocOpen. This results in the following error:

Error detected while processing function 74[12]..79[5]..vimtex#parser#toc[14]..vimtex#parser#toc#parse[57]..233[21]..235:
line    4:
E688: More targets than List items

and if I run the command again (and again each time) in

Error detected while processing function 74[12]..79:                                                                                                                          
line   12:
E712: Argument of filter() must be a List or Dictionary

Expected behavior

The TOC should be shown

Actual behavior

I get an error message, no TOC is shown.

Do you use a latexmkrc file?

no

VimtexInfo

System info
  OS: Linux 5.10.57
  Vim version: NVIM v0.5.0
  Has clientserver: true
  Servername: /tmp/nvimkzZLlD/0

VimTeX project: minimal
  base: minimal.tex
  root: /home/luc/uni/master
  tex: /home/luc/uni/master/minimal.tex
  out: 
  log: 
  aux: 
  fls: 
  main parser: current file verified
  compiler: latexrun
    output: /tmp/nvimkzZLlD/1
    configuration: 
      latexrun options:
        --verbose-cmds
        --latex-args="-synctex=1"
      latexrun engine: pdflatex
  viewer: General
  qf: LaTeX logfile
    addqflist: 72
    fix_paths: 73
    set_errorformat: 71
  document class: article
  packages:
    biblatex
@lucc lucc added the bug label Aug 25, 2021
@lervag
Copy link
Owner

lervag commented Aug 25, 2021

Thanks for the good issue description. Problem reproduced, I'm working on a fix.

lervag added a commit that referenced this issue Aug 25, 2021
@lervag
Copy link
Owner

lervag commented Aug 25, 2021

Should work now!

@lervag lervag closed this as completed Aug 25, 2021
@lucc
Copy link
Author

lucc commented Aug 25, 2021

Works! Thanks for the quick reaction.

@lervag
Copy link
Owner

lervag commented Aug 25, 2021

Glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants