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

Editing big template creates LatteMacroLexer exception and the whole PhpStorm freezes #188

Open
vtchkrcn opened this issue Dec 21, 2021 · 1 comment
Labels
bug EAP This is being considered for the next EAP version

Comments

@vtchkrcn
Copy link

vtchkrcn commented Dec 21, 2021

Describe the bug
I was rewriting some legacy plain PHP code to Latte template so I pasted the whole code to the template then I added some Latte comments. After that I started editting the code line after line to make it valid Latte file. In that moment PhpStorm freezed for couple of minutes (1:20 according to logs). After unfreeze PhpStorm freezes everytime I try to edit the template. Unfortunately I have no idea which part of the template creates the exception because debugging is very annoying.

I also tried downgrading to previous PhpStorm version and also downgrading to the previous plugin versions but with no effect.

PhpStorm log: WARN - com.intellij.lexer.FlexAdapter - com.jantvrdik.intellij.latte.lexer.LatteMacroLexer
java.lang.Error: Error: could not match input

Environment:

  • PhpStorm version 2021.2.2, 2021.3
  • Plugin version 1.1.4, 1.1.3, 1.1.0
  • OS version MacOS 12.0.1

To Reproduce
Steps to reproduce the behavior (or attach video):

  1. Open given template in PhpStorm
  2. Edit random part of the template

Code
In the attached file.

Additional context
The original code is legacy and really messy - that was the reason to put it in the template.

overview.latte.zip

@mesour
Copy link
Collaborator

mesour commented Sep 24, 2023

Maybe it will be resolved in next version

@mesour mesour added bug EAP This is being considered for the next EAP version labels Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug EAP This is being considered for the next EAP version
Projects
None yet
Development

No branches or pull requests

2 participants