-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Error in mode-latex getType #5090
Labels
Comments
This repository only contains generated files. I will transfer this issue to https://github.com/ajaxorg/ace, as it seems to be relevant to latex mode implementation. |
InspiredGuy
pushed a commit
that referenced
this issue
Mar 16, 2023
* fix bug with missing token * add test for latex folding Issue #5090
Released in 1.16.0 |
Thank you for fixing that so quickly! |
akoreman
pushed a commit
to akoreman/ace
that referenced
this issue
Mar 19, 2023
* fix bug with missing token * add test for latex folding Issue ajaxorg#5090
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
mode-latex
, a console error appears sayingCannot read properties of null (reading 'type')
, coming from https://github.com/ajaxorg/ace-builds/blob/master/src-noconflict/mode-latex.js#L142It seems like whenever there isn't any content after the cursor, typing
\begin
or\end
to begin or end a new environment causes a console error to show up.It's simple to reproduce in the kitchen sink: https://ajaxorg.github.io/ace-builds/kitchen-sink.html
Just set the mode to
LaTeX
and with this document contentbegin typing
\begin{document}
. Once you finish typingbegin
, the console error will show up.This doesn't appear to happen if there is any text after where you would be typing
\begin{...
, like thistyping
\begin
does not make the error appear.The text was updated successfully, but these errors were encountered: