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 cause of the issue is that according to UltiSnips doc (section UltiSnips-how-snippets-are-loaded), both tex_math.snippets and tex.snippets refer to snippets of tex filetype. Thus, by extending tex_math.snippets in tex.snippets, it might somehow trigger certain naming conflicts and causes any snippet defined in tex_math.snippets to be redefined. Interestingly, using extends tex rather than extends tex_math in tex.snippets won't trigger the issue.
Expected behavior:
Either error out, suggesting the user extends tex_math is an improper use of extends keyword, or behave as if the extends tex_math in tex.snippets is not present. In the latter case, all definitions in tex_math.snippets take effect in a a.tex file automatically, by definition.
This issue is related to #1519, but in a reproducible way.
In my context, I collect all math-related snippets in a file called
tex_math.snippets
, and I have atex.snippets
with content:The issue occurs when I type any snippet in a
a.tex
file that is defined intex_math.snippets
, something like:The cause of the issue is that according to UltiSnips doc (section UltiSnips-how-snippets-are-loaded), both
tex_math.snippets
andtex.snippets
refer to snippets oftex
filetype. Thus, by extendingtex_math.snippets
intex.snippets
, it might somehow trigger certain naming conflicts and causes any snippet defined intex_math.snippets
to be redefined. Interestingly, usingextends tex
rather thanextends tex_math
intex.snippets
won't trigger the issue.Expected behavior:
Either error out, suggesting the user
extends tex_math
is an improper use ofextends
keyword, or behave as if theextends tex_math
intex.snippets
is not present. In the latter case, all definitions intex_math.snippets
take effect in aa.tex
file automatically, by definition.Actual behavior:
As mentioned above, something like
is prompted, and the user must enter, e.g.
1<ENTER>
, to select one, which IMHO is confusing and misleading.Steps to reproduce
In the docker container:
vim x.tex
frac<TAB>
py:
py3:
The text was updated successfully, but these errors were encountered: