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
The chapters/main.tex file should open normally and the root main.tex file should be identified as the project root.
Actual behavior
I get the following error message:
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:21: Error executing lua: /usr/share/nvim/runtime/filetype.lua:22: BufReadPost Autocommands
for "*"..FileType Autocommands for "*"..function <SNR>1_LoadFTPlugin[19]..script .config/nvim/plugged/vimtex/ftplugin/tex.vim[25]..function vimtex#i
nit[7]..<SNR>73_init_state[1]..vimtex#state#init[1]..<SNR>79_get_main[27]..<SNR>79_get_main_latexmain[3]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reach
es_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>7
9_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current
[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_rea
ches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR
>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_curre
nt[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_r
eaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<S
NR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_cur
rent[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file
_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..
<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_c
urrent[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_fi
le_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]
..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches
_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_
file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[1
6]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reach
es_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>7
9_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current
[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current[16]..<SNR>79_file_reaches_current, line 8: Vim(if):E132
: Function call depth is higher than 'maxfuncdepth'
stack traceback:
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:22: in function </usr/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/filetype.lua:10>
Description
When opening an imported file with the setup shown below, the
file_reaches_current
function goes in an infinite loop.Steps to reproduce
Create the following files:
main.tex
main.tex.latexmain
<empty>
chapters/main.tex
And run
vim chapters/main.tex
Expected behavior
The
chapters/main.tex
file should open normally and the rootmain.tex
file should be identified as the project root.Actual behavior
I get the following error message:
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: