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

vimtex-env-toggle-math error #2697

Closed
jinsooihm opened this issue May 1, 2023 · 1 comment
Closed

vimtex-env-toggle-math error #2697

jinsooihm opened this issue May 1, 2023 · 1 comment
Labels

Comments

@jinsooihm
Copy link

jinsooihm commented May 1, 2023

Description

Toggle math behaves seems to recurse infinitely when there is a comment above with a lot of inline equations.

Steps to reproduce

test.tex

\documentclass{article}
\begin{document}

% $s$ $s$ $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$  $s$

\begin{equation}
  x
\end{equation}

\end{document}
  1. ts$ inside the equation environment

Expected behavior

Change it to $x$

Actual behavior

E712: Argument of extend() must be a List or Dictionary
E712: Argument of extend() must be a List or Dictionary
E712: Argument of extend() must be a List or Dictionary
Error detected while processing function <SNR>103_operator_function[6]..vimtex#env#toggle_m
ath[1]..vimtex#env#get_surrounding:
line   18:
E714: List required
Error detected while processing function <SNR>103_operator_function[6]..vimtex#env#toggle_m
ath[1]..vimtex#env#get_surrounding[18]..vimtex#delim#get_surrounding[16]..vimtex#delim#get_
prev[1]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[20]..vimtex#syntax#in:
line    1:
E132: Function call depth is higher than 'maxfuncdepth'
Error detected while processing function <SNR>103_operator_function[6]..vimtex#env#toggle_m
ath[1]..vimtex#env#get_surrounding[18]..vimtex#delim#get_surrounding[16]..vimtex#delim#get_
prev[1]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>
101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]
..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_
tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_
parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<S
NR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[
77]..<SNR>101_parser_tex[46]..<SNR>101_get_delim[77]..<SNR>101_parser_tex[46]..<SNR>101_get
_delim:

Do you use a latexmkrc file?

No

VimtexInfo

1 System info:
  2   OS: macOS 13.2.1 (22D68)
  3   Vim version: NVIM v0.8.3
  4   Has clientserver: true
  5   Servername: /
  6
  7 VimTeX project: text
  8   base: text.tex
  9   root: 
 10   tex: 
 11   main parser: current file verified
 12   document class: article
 13   compiler: latexmk
 14     engine: -pdf
 15     options:
 16       -verbose
 17       -file-line-error
 18       -synctex=1
 19       -interaction=nonstopmode
 20     build_dir: build
 21     callback: 1
 22     continuous: 1
 23     executable: latexmk
 24   viewer: Skim
 25   qf method: LaTeX logfile
@jinsooihm jinsooihm added the bug label May 1, 2023
lervag added a commit that referenced this issue May 1, 2023
@lervag
Copy link
Owner

lervag commented May 1, 2023

Thanks. I believe this is fixed now :)

@lervag lervag closed this as completed May 1, 2023
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