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

CPU at 100% when watching a specific Twig template #859

Open
Jean85 opened this issue Jan 23, 2017 · 3 comments
Open

CPU at 100% when watching a specific Twig template #859

Jean85 opened this issue Jan 23, 2017 · 3 comments

Comments

@Jean85
Copy link

Jean85 commented Jan 23, 2017

When I watch a particular Twig template, or any partial that is directly included in it, my IDE is using all my CPU to the maximum. If I CTRL-tab to an other source file, the usage drops immediately. It doesn't seem to affect other apps, so it seems to be a pointless loop somewhere.

If I disable the plugin, the issue disappears. I also tried disabling the Twig support plugin, but it obviously stops the Twig parsing so the issue disappears too. I tried commenting out part of the template to find out which part is causing the issue, but I couldn't find anything, since it stops only when I comment out nearly everything.

Using (everything updated to latest available versions):

  • Ubuntu 16.04
  • PhpStorm 2016.3.2 - Build #PS-163.10504.2, built on December 20, 2016
  • JRE: 1.8.0_112-release-408-b6 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Symfony plugin 0.13.134
@ByScripts
Copy link

Same problem here. Opening any Twig file will make the CPU working at 400%.

  • macOS Sierra 10.12.2
  • PhpStorm 2017.1 EAP - Build #PS-171.2455.9, built on January 18, 2017
  • JRE: 1.8.0_112-release-b692 x86_64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Symfony Plugin 0.13.134

@ajaxray
Copy link

ajaxray commented Feb 1, 2017

Having same issue.
Environment -

  • macOS Sierra 10.12
  • Symfony Plugin 0.13.134
  • PhpStorm 2016.3.2

This issue is forming me to deactivate this plugin (which I have been loving very much) :(

@ajaxray
Copy link

ajaxray commented Feb 1, 2017

Possibly a duplicate of #809

Haehnchen added a commit that referenced this issue Mar 5, 2017
…traction #859, #809; support much more Twig render template pattern like array_merge for controller variables extraction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants