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

PHPStorm freezes when typing > or < within unclosed { } #193

Open
silen-z opened this issue Jan 4, 2022 · 1 comment
Open

PHPStorm freezes when typing > or < within unclosed { } #193

silen-z opened this issue Jan 4, 2022 · 1 comment

Comments

@silen-z
Copy link

silen-z commented Jan 4, 2022

For example: I have this code <div class="{"></div> I'm editing and I want to type $var->get() after the {. As soon as I try to type >, PHPStorm freezes. It does the same for <, there just has to be one character between { and < or >

The time it freezes for depends on how much text is after the cursor, for example on line 30 out of 250 it froze my PHPStorm for 3minutes and I ended up killing the process.

Environment

  • PhpStorm: 2021.3.1 and 2021.2.2
  • Plugin version: 1.1.4

Code

<div class="{"></div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc auctor. Phasellus et lorem id felis nonummy placerat. Praesent dapibus. Etiam dui sem, fermentum vitae, sagittis id, malesuada in, quam. In convallis. In rutrum. Proin in tellus sit amet nibh dignissim sagittis. Praesent vitae arcu tempor neque lacinia pretium. Integer lacinia. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Quisque tincidunt scelerisque libero. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Maecenas aliquet accumsan leo.</p>

and copy the paragraph a few times so the freezes become noticeable.

@silen-z silen-z changed the title PHPStorm freezes when typing > or < in closed HTML attribute within unclosed {} PHPStorm freezes when typing > or < in within unclosed { } Jan 4, 2022
@silen-z silen-z changed the title PHPStorm freezes when typing > or < in within unclosed { } PHPStorm freezes when typing > or < within unclosed { } Jan 4, 2022
@mesour
Copy link
Collaborator

mesour commented Sep 24, 2023

This is hard to fix in this plugin.

It is fixed in Pro plugin: https://plugins.jetbrains.com/plugin/19661-latte-pro here is migration guide from free plugin: https://mesour-intellij-plugins.github.io/latte.html#migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants