-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hangs when opening files with jinja string concatenation #3
Comments
Thanks for the report, I can reproduce this. It completely locks emacs... I'll try and get some time soon to look into this. In the meantime, if you're able to reproduce this with any other code, please post it here. |
I believe this crash is caused by python-mode syntax highlighting (which is the mode used inside jinja Can you try the following?
See also dgutov/mmm-mode#66, where python-mode also hangs emacs due to malformed syntax. I suppose fixing this bug in python-mode isn't going to be straightforward. I propose we try one of the following:
What do you think? |
Is it a crash or a freeze? |
@dgutov a freeze I think? It's an infinite loop in python-mode font locking according to your comment here dgutov/mmm-mode#66 (comment) However I am unable to use C-g to recover from this, I have to kill emacs. |
The relevant bug seems fixed (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24856#8). You might want to try to build Emacs from master, to double-check. |
@dgutov thank you for finding that out for me. I just ran emacs from master and it doesn't have this bug, so I guess it's just a matter of time until this issue is fixed naturally. Thank you. |
I can confirm that the bug has been fixed in emacs master and 25.2. Thank you for looking into this! |
Dear Maintainer,
unfortunately emacs seems to hang if you open the following file:
This seems to be only triggered if string literals are present as the following does not cause emacs to hang:
Thank you!
The text was updated successfully, but these errors were encountered: