question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot open Symfony --> Twig / Template Tab

See original GitHub issue

`Worker exited due to exception

java.lang.IllegalArgumentException: Argument for @NotNull parameter ‘path’ of fr/adrienbrault/idea/symfony2plugin/templating/path/TwigPath.<init> must not be null at fr.adrienbrault.idea.symfony2plugin.templating.path.TwigPath.$$$reportNull$$$0(TwigPath.java) at fr.adrienbrault.idea.symfony2plugin.templating.path.TwigPath.<init>(TwigPath.java) at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigUtil.getTwigNamespaces(TwigUtil.java:1337) at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigUtil.getTwigNamespaces(TwigUtil.java:1306) at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigUtil.getTemplateFiles(TwigUtil.java:1012) at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigUtil.getTemplatePsiElements(TwigUtil.java:1078) at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigUtil.getTemplateNavigationOnOffset(TwigUtil.java:1103) at fr.adrienbrault.idea.symfony2plugin.templating.TwigTemplateGoToDeclarationHandler.getTwigFiles(TwigTemplateGoToDeclarationHandler.java:259) at fr.adrienbrault.idea.symfony2plugin.templating.TwigTemplateGoToDeclarationHandler.getGotoDeclarationTargets(TwigTemplateGoToDeclarationHandler.java:68) at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:276) at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:493) at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:472) at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$2200(CtrlMouseHandler.java:91) at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.a(CtrlMouseHandler.java:743) at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$3300(CtrlMouseHandler.java:674) at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.performInReadAction(CtrlMouseHandler.java:720) at com.intellij.openapi.progress.util.ReadTask.a(ReadTask.java:66) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:959) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57) at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:227) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:173) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:580) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.a(ProgressIndicatorUtils.java:225) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:33) at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)`

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Cashewzcommented, Nov 23, 2018

I fixed the problem by deleting the .idea folder in my project and re-enabled the symfony plugin afterwards.

0reactions
ruudkcommented, Nov 7, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Symfony twig template is not connected in bundle
I've searched hundreds of articles and can't figure it out. I connect the template in accordance with the documentation:
Read more >
Creating and Using Templates (Symfony Docs)
You can't run PHP code inside Twig templates, but Twig provides utilities to run some ... That's why Twig provides quick access to...
Read more >
Twig for Template Designers - Documentation - Twig - Symfony
A template is a regular text file. It can generate any text-based format (HTML, XML, CSV, LaTeX, etc.). It doesn't have a specific...
Read more >
The flexible, fast, and secure template engine for PHP - Twig
This chapter describes the API to Twig and not the template language. ... and returns the escaping strategy to use -- the callback...
Read more >
The flexible, fast, and secure template engine for PHP - Twig
When extending Twig without creating an extension, Twig won't be able to recompile your templates when the PHP code is updated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found