Vimtex: Error detected while processing function vimtex#include#expr[32]

Created on 7 May 2020  路  3Comments  路  Source: lervag/vimtex

Issue
The problem is during autocomplete using Ctrl+X Ctrl+I: every time I try it with the package glossary loaded, I get this error message:

Scanning included file: /usr/local/texlive/2019/texmf-dist/tex/latex/substr/substr.sty
Error detected while processing function vimtex#include#expr[32]..<SNR>61_search_candidates_texinputs:
line    2:
E869: (NFA) Unknown operator '\@d'

Example:

\documentclass[a4paper]{book}
\usepackage[nonumberlist]{glossaries}

\begin{do

if I press Ctrl+X Ctrl+I while in insert mode and with the cursor after the "o" in the last line I get the aforementioned error message. It also happens with a more complex vimrc and tex file in which the glossary package has been loaded, even though the message is slightly different:

Scanning included file: /usr/local/texlive/2019/texmf-dist/tex/latex/substr/substr.sty
Error detected while processing function vimtex#include#expr[32]..<SNR>63_search_candidates_texinputs:
line    2:
E59: invalid character after \@

minimal.vim

set nocompatible
filetype off
set shell=/bin/bash

call plug#begin('~/.vim/plugged')
Plug 'lervag/vimtex', { 'for' : 'tex' }
call plug#end()
set nocompatible
filetype plugin indent on
let g:vimtex_view_method = 'zathura'
let g:tex_flavor = 'latex'
let g:vimtex_quickfix_autoclose_after_keystrokes = 2

minimal.tex

```tex
\documentclass[a4paper]{book}
\usepackage[nonumberlist]{glossaries}

\begin{do


**Commands/Input**
Press `Ctrl+X Ctrl+I` in insert mode when the cursor is at the end of the last line in the provided tex file.

**Observed Behaviour**
I get the error message:

Scanning included file: /usr/local/texlive/2019/texmf-dist/tex/latex/substr/substr.sty
Error detected while processing function vimtex#include#expr[32]..61_search_candidates_texinputs:
line 2:
E869: (NFA) Unknown operator '\@d'


**Expected Behaviour**
I expect vimtex to provide me a list of autocompletion items.

**Output from VimtexInfo**

System info
OS: Debian GNU/Linux 10 (buster)
Vim version: VIM 8.2 (1-532)
Has clientserver: true
Servername: VIM

vimtex project: test
base: test.tex
root: /home/luxgiammi/tests/
tex: /home/luxgiammi/tests/test.tex
out:
log:
aux:
fls:
main parser: current file
compiler: latexmk
backend: jobs
output: /tmp/v939pDP/1
configuration:
continuous: 1
callback: 1
latexmk options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
latexmk engine: -pdf
viewer: Zathura
xwin id: 0
qf: LaTeX logfile
config:
packages:
default: 1
default: 1
document class: book
packages:
glossaries
```

bug

All 3 comments

Thanks for reporting, should be fixed now!

I confirm it is!
Thanks a lot for the quick fix and for your work!

Great; happy to hear it works! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsbuffalo picture vsbuffalo  路  3Comments

David-Fu picture David-Fu  路  5Comments

ettom picture ettom  路  6Comments

carloabelli picture carloabelli  路  3Comments

sharethewisdom picture sharethewisdom  路  3Comments