PhpStorm Symfony2 Plugin

Mo, 19.08.2013 - 19:10 -- Daniel Espendiller

Jetbrains Phpstorm Symfony2 PluginDa es mit PhpStorm eine ziemlich gut Entwicklungs-IDE gibt, aber bisher leider kein wirklich nutzbares Symfony2 Plugin vorhanden war, habe ich die Java Entwicklung von Adrien Brault übernommen. Eigentlich war sein Plugin nur gedacht um Container Methoden Aufrufe mit Autocomplete zu versorgen. Das erschien mir aber etwas zu wenig, so dass ich das Plugin um viele weitere Features erweitert habe. Dank einer der neuen "OpenApi" Erweiterung und kleinerer Patches, die JetBrains auf Anfrage freundlicherweise in PhpStorm 6 eingebunden hat, nimmt das Plugin mittlerweile Symfony2 Entwicklern viel Arbeit ab. Sieht man sicherlich auch mittlerweile an den Download zahlen, die liegen mittlerweile den Top Plugins in nichts mehr nach.

Features

Hier ein paar Features, alle kann man mittlerweile gar nicht mehr Auflisten:

  • Container Autocomplete und Type Support
  • Template Autocomplete und Goto
  • Diverse Twig Erweiterungen
  • Implemtierung der Service / Parameter für Yaml und XML
  • Translation Support
  • Routing, FormTypes, ...

Disqus - noscript

Symfony 2 plugin exception in PhpStorm 7: fr.adrienbrault.idea.symfony2plugin.Symfony2ProjectComponent@1c5816b: com.intellij.openapi.wm.StatusBar.getWidget(Ljava/lang/String;)Lcom/intellij/openapi/wm/StatusBarWidget;

java.lang.NoSuchMethodError: com.intellij.openapi.wm.StatusBar.getWidget(Ljava/lang/String;)Lcom/intellij/openapi/wm/StatusBarWidget;

at fr.adrienbrault.idea.symfony2plugin.Symfony2ProjectComponent.projectOpened(Symfony2ProjectComponent.java:70)

at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:420)

at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:76)

at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:457)

at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:155)

at com.intellij.openapi.project.impl.ProjectManagerImpl.e(ProjectManagerImpl.java:1050)

at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:415)

at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:178)

at com.intellij.ide.RecentDirectoryProjectsManager.doOpenProject(RecentDirectoryProjectsManager.java:59)

at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:349)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)

at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:228)

at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:219)

at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:209)

at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:43)

at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:131)

at $Proxy33.appStarting(Unknown Source)

at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:394)

at com.intellij.idea.IdeaApplication.access$600(IdeaApplication.java:64)

at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:361)

at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:347)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)

at java.awt.EventQueue.access$200(EventQueue.java:103)

at java.awt.EventQueue$3.run(EventQueue.java:682)

at java.awt.EventQueue$3.run(EventQueue.java:680)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:696)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

I'm having the same problem with phpstorm 7 :(

null

java.util.ConcurrentModificationException

at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)

at java.util.HashMap$EntryIterator.next(HashMap.java:834)

at java.util.HashMap$EntryIterator.next(HashMap.java:832)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.getParameters(ContainerCollectionResolver.java:304)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.resolve(ContainerCollectionResolver.java:284)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.access$100(ContainerCollectionResolver.java:249)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertIndexToService(ContainerCollectionResolver.java:179)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.getServices(ContainerCollectionResolver.java:153)

at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertClassNameToServices(ContainerCollectionResolver.java:204)

at fr.adrienbrault.idea.symfony2plugin.stubs.ServiceIndexUtil.findServiceDefinitions(ServiceIndexUtil.java:72)

at fr.adrienbrault.idea.symfony2plugin.config.ServiceLineMarkerProvider.classNameMarker(ServiceLineMarkerProvider.java:83)

at fr.adrienbrault.idea.symfony2plugin.config.ServiceLineMarkerProvider.collectNavigationMarkers(ServiceLineMarkerProvider.java:32)

at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectNavigationMarkers(RelatedItemLineMarkerProvider.java:48)

at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectSlowLineMarkers(RelatedItemLineMarkerProvider.java:39)

at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.addLineMarkers(SlowLineMarkersPass.java:77)

at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:64)

at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:380)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1150)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:371)

at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:368)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:344)

at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:194)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)

fixed but pls report on github: https://github.com/haehnchen/i...

null keys not supported: null keys not supported
java.lang.NullPointerException: null keys not supported
at gnu.trove.THashMap.put(THashMap.java:162)
at com.intellij.util.indexing.ValueContainerImpl.a(ValueContainerImpl.java:66)
at com.intellij.util.indexing.ValueContainerImpl.addValue(ValueContainerImpl.java:55)
at com.intellij.util.indexing.ValueContainerMap$ValueContainerExternalizer.read(ValueContainerMap.java:121)
at com.intellij.util.indexing.ValueContainerMap$ValueContainerExternalizer.read(ValueContainerMap.java:66)
at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:427)
at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:398)
at com.intellij.util.indexing.MapIndexStorage$2$1.compute(MapIndexStorage.java:122)
at com.intellij.util.indexing.MapIndexStorage$2$1.compute(MapIndexStorage.java:110)
at com.intellij.util.indexing.ChangeTrackingValueContainer.a(ChangeTrackingValueContainer.java:117)
at com.intellij.util.indexing.ChangeTrackingValueContainer.getValueIterator(ChangeTrackingValueContainer.java:77)
at com.intellij.util.indexing.FileBasedIndexImpl$15.convert(FileBasedIndexImpl.java:980)
at com.intellij.util.indexing.FileBasedIndexImpl$15.convert(FileBasedIndexImpl.java:955)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:930)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1001)
at com.intellij.util.indexing.FileBasedIndexImpl.getValues(FileBasedIndexImpl.java:871)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.getParameters(ContainerCollectionResolver.java:321)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.resolve(ContainerCollectionResolver.java:285)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.access$100(ContainerCollectionResolver.java:250)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertIndexToService(ContainerCollectionResolver.java:180)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.getServices(ContainerCollectionResolver.java:154)
at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertClassNameToServices(ContainerCollectionResolver.java:205)
at fr.adrienbrault.idea.symfony2plugin.stubs.ServiceIndexUtil.findServiceDefinitions(ServiceIndexUtil.java:80)
at fr.adrienbrault.idea.symfony2plugin.config.ServiceLineMarkerProvider.classNameMarker(ServiceLineMarkerProvider.java:112)
at fr.adrienbrault.idea.symfony2plugin.config.ServiceLineMarkerProvider.collectSlowLineMarkers(ServiceLineMarkerProvider.java:58)
at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.addLineMarkers(SlowLineMarkersPass.java:77)
at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:64)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1150)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:371)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:368)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:344)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:194)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)

With PhpStorm 7.1.3 on Win-7 - btw: great work! :-)

Same issue: Win8, PHP Storm 7.13:

null keys not supported: null keys not supported

java.lang.NullPointerException: null keys not supported

Hi, after the latest update I'm still getting:

08.36.27 NullPointerException: null keys not supported: null keys not supported

As well as Some autocomplete'ing is broken. As I turn off the plugin - autocomplete starts working correctly

PhpStorm 7.1.3

Symfony2 plugin 0.10.53

Symfony plug-in for Codelobster works much better for me: http://www.codelobster.com/sym...

The greatest Symfony2 plugin! Thank you very much!!!!!

Hi, after last update with latest EAP version (ps-138.1161)
I get this error almost each second:

com.intellij.patterns.StringPattern.oneOf([Ljava/lang/String;)Lcom/intellij/patterns/StringPattern;

DETAILS:

Java.lang.NoSuchMethodError: com.intellij.patterns.StringPattern.oneOf([Ljava/lang/String;)Lcom/intellij/patterns/StringPattern;

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlElementPatternHelper.getSingleLineScalarKey(YamlElementPatternHelper.java:35)

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlGoToKnownDeclarationHandler.getGotoDeclarationTargets(YamlGoToKnownDeclarationHandler.java:47)

at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:207)

at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:508)

at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$2400(CtrlMouseHandler.java:105)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.a(CtrlMouseHandler.java:791)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2300(CtrlMouseHandler.java:736)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.computeInReadAction(CtrlMouseHandler.java:779)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4$1.run(ProgressIndicatorUtils.java:83)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:941)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:80)

at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:183)

at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:218)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:217)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:170)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:74)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$5.run(ProgressIndicatorUtils.java:110)

at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:446)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

java.lang.NoSuchMethodError: com.intellij.patterns.StringPattern.oneOf([Ljava/lang/String;)Lcom/intellij/patterns/StringPattern;

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlElementPatternHelper.getSingleLineScalarKey(YamlElementPatternHelper.java:35)

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlGoToKnownDeclarationHandler.getGotoDeclarationTargets(YamlGoToKnownDeclarationHandler.java:47)

at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:207)

at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:508)

at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$2400(CtrlMouseHandler.java:105)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.a(CtrlMouseHandler.java:791)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2300(CtrlMouseHandler.java:736)

at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.computeInReadAction(CtrlMouseHandler.java:779)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4$1.run(ProgressIndicatorUtils.java:83)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:941)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:80)

at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:183)

at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:218)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:217)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:170)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:74)

at com.intellij.openapi.progress.util.ProgressIndicatorUtils$5.run(ProgressIndicatorUtils.java:110)

at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:446)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

Hi,

I get IDE Error when triggering a class methods Related Files (Symbol)

PhpStorm EAP 138.1505

10:56:16 AM NoSuchMethodError: com.intellij.ide.actions.GotoRelatedSymbolAction.createPopup(Ljava/util/List;Ljava/lang/String;)Lcom/intellij/openapi/ui/popup/JBPopup;

11:11:30 AM NoSuchMethodError: com.intellij.ide.actions.GotoRelatedSymbolAction.createPopup(Ljava/util/List;Ljava/lang/String;)Lcom/intellij/openapi/ui/popup/JBPopup;

Hi,

Getting error in PS 138.1505

10:56:16 AM NoSuchMethodError: com.intellij.ide.actions.GotoRelatedSymbolAction.createPopup(Ljava/util/List;Ljava/lang/String;)Lcom/intellij/openapi/ui/popup/JBPopup;

11:11:30 AM NoSuchMethodError: com.intellij.ide.actions.GotoRelatedSymbolAction.createPopup(Ljava/util/List;Ljava/lang/String;)Lcom/intellij/openapi/ui/popup/JBPopup;

Latest plugins (16 oct 2014)
String index out of range: -1

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1954)

at fr.adrienbrault.idea.symfony2plugin.util.PsiElementUtils.getStringBeforeCursor(PsiElementUtils.java:310)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.QueryBuilderCompletionContributor$4.addParameterNameCompletion(QueryBuilderCompletionContributor.java:214)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.QueryBuilderCompletionContributor$4.addCompletions(QueryBuilderCompletionContributor.java:177)

at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)

at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:153)

at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:84)

at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)

at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)

at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:75)

at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)

at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:153)

at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:84)

at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:115)

at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:781)

at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$900(CompletionProgressIndicator.java:89)

at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:762)

at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:942)

at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)

at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)

at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:193)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:211)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:164)

at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)

at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:447)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

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)

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

Hi, creating a new controller through the window of creation file I got this error.

However, the new file is created.

You post the error code if you can help.

Thanks .

DETAILS:

Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

com.intellij.util.IncorrectOperationException: Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

at com.intellij.openapi.editor.impl.DocumentImpl.e(DocumentImpl.java:760)

at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:733)

at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:711)

at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:598)

at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:553)

at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:134)

at com.intellij.formatting.FormatProcessor.a(FormatProcessor.java:411)

at com.intellij.formatting.FormatProcessor.access$2400(FormatProcessor.java:40)

at com.intellij.formatting.FormatProcessor$ApplyChangesState.doIteration(FormatProcessor.java:1442)

at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1268)

at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:266)

at com.intellij.formatting.FormatterImpl$MyFormattingTask.iteration(FormatterImpl.java:917)

at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:308)

at com.intellij.formatting.FormatterImpl.format(FormatterImpl.java:258)

at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.a(CodeFormatterFacade.java:131)

at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:95)

at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:91)

at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:104)

at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:91)

at fr.adrienbrault.idea.symfony2plugin.action.NewControllerAction$1.run(NewControllerAction.java:127)

at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1011)

at fr.adrienbrault.idea.symfony2plugin.action.NewControllerAction.buildFile(NewControllerAction.java:124)

at fr.adrienbrault.idea.symfony2plugin.action.NewControllerAction.actionPerformed(NewControllerAction.java:60)

at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:266)

at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:926)

at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:236)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:105)

at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)

at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)

at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)

at java.awt.Component.processMouseEvent(Component.java:6414)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)

at java.awt.Component.processEvent(Component.java:6179)

at java.awt.Container.processEvent(Container.java:2084)

at java.awt.Component.dispatchEventImpl(Component.java:4776)

at java.awt.Container.dispatchEventImpl(Container.java:2142)

at java.awt.Component.dispatchEvent(Component.java:4604)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)

at java.awt.Container.dispatchEventImpl(Container.java:2128)

at java.awt.Window.dispatchEventImpl(Window.java:2492)

at java.awt.Component.dispatchEvent(Component.java:4604)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)

at java.awt.EventQueue.access$400(EventQueue.java:82)

at java.awt.EventQueue$2.run(EventQueue.java:676)

at java.awt.EventQueue$2.run(EventQueue.java:674)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:690)

at java.awt.EventQueue$3.run(EventQueue.java:688)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:573)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Hi after last update I get following error when I try to go to declaration (ctrl b), only for included javascipts in twig template. (Using Ubuntu 14.04 + JDK JVM)

null
java.lang.NullPointerException
at fr.adrienbrault.idea.symfony2plugin.TwigHelper.resolveAssetsFiles(TwigHelper.java:913)
at fr.adrienbrault.idea.symfony2plugin.asset.AssetGoToDeclarationHandler.getGotoDeclarationTargets(AssetGoToDeclarationHandler.java:36)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:204)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findAllTargetElements(GotoDeclarationAction.java:186)
at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.invoke(GotoDeclarationAction.java:77)
at com.intellij.codeInsight.actions.CodeInsightAction$1$1.run(CodeInsightAction.java:62)
at com.intellij.codeInsight.actions.CodeInsightAction$1.run(CodeInsightAction.java:69)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:54)
at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:40)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:614)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:663)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:513)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:546)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Do not call synchronous refresh under read lock (except from EDT) - this will cause a deadlock if there are any events to fire. error

Wenn PhpStorm eine Anfrage an den Server stellt ob es neue Versionen gibt crasht das Symfony2Plugin.
Gerade verwendete Version PS-141.89.

Trying to autocomplete on query builder->join method
_______________________________________________________________

Error Message:null

java.lang.NullPointerException

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.processor.QueryBuilderChainProcessor.isQueryBuilderInstance(QueryBuilderChainProcessor.jav...:174)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.processor.QueryBuilderChainProcessor.getMethodReferencesAfter(QueryBuilderChainProcessor.jav...:64)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.processor.QueryBuilderChainProcessor.collectMethods(QueryBuilderChainProcessor.jav...:31)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.QueryBuilderCompletionContributor.getQueryBuilderParser(QueryBuilderCompletionContribu...:464)

at fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.QueryBuilderCompletionContributor$2.addCompletions(QueryBuilderCompletionContribu...:125)

at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)

at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:154)

at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:84)

at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)

at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)

at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContribu...:75)

at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)

at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:154)

at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:84)

at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:115)

at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.ja...:788)

at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$1000(CompletionProgressIndicator.ja...:89)

at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.ja...:770)

at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:93)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:908)

at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:88)

at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:194)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:281)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:181)

at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:84)

at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:406)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)

at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)

file=PHP file; tree=Element(FILE)

each of class class com.jetbrains.php.lang.psi.elements.impl.MethodImpl; valid=true; node=null; stub=PhpMethodStubImpl

each of class class com.jetbrains.php.lang.psi.elements.impl.PhpClassImpl; valid=true; node=null; stub=PhpClassStubImpl{Invoice}

each of class class com.jetbrains.php.lang.psi.elements.impl.PhpNamespaceImpl; valid=true; node=null; stub=PhpNamespaceStubImpl

each of class class com.jetbrains.php.lang.psi.PhpFileImpl; valid=true; same file=true; current tree= Element(FILE); stubTree=StubTree{myDebugInfo='created in getStubTree(); with backReference', myRoot=PsiFileStubImpl}47903296; physical=true

each stub PhpMethodStubImpl

each stub PhpClassStubImpl{Invoice}

each stub PhpNamespaceStubImpl

each stub PsiFileStubImplPsiFileStubImpl{myFile=PHP file, myInvalidationReason=null, myStubRoots=[Lcom.intellij.psi.stubs.PsiFileStub;@6eaab690, stubTree=StubTree{myDebugInfo='created in getStubTree(); with backReference', myRoot=PsiFileStubImpl}47903296, lastStubTreeHash=null}

java.lang.AssertionError: file=PHP file; tree=Element(FILE)

each of class class com.jetbrains.php.lang.psi.elements.impl.MethodImpl; valid=true; node=null; stub=PhpMethodStubImpl

each of class class com.jetbrains.php.lang.psi.elements.impl.PhpClassImpl; valid=true; node=null; stub=PhpClassStubImpl{Invoice}

each of class class com.jetbrains.php.lang.psi.elements.impl.PhpNamespaceImpl; valid=true; node=null; stub=PhpNamespaceStubImpl

each of class class com.jetbrains.php.lang.psi.PhpFileImpl; valid=true; same file=true; current tree= Element(FILE); stubTree=StubTree{myDebugInfo='created in getStubTree(); with backReference', myRoot=PsiFileStubImpl}47903296; physical=true

each stub PhpMethodStubImpl

each stub PhpClassStubImpl{Invoice}

each stub PhpNamespaceStubImpl

each stub PsiFileStubImplPsiFileStubImpl{myFile=PHP file, myInvalidationReason=null, myStubRoots=[Lcom.intellij.psi.stubs.PsiFileStub;@6eaab690, stubTree=StubTree{myDebugInfo='created in getStubTree(); with backReference', myRoot=PsiFileStubImpl}47903296, lastStubTreeHash=null}

at com.intellij.extapi.psi.StubBasedPsiElementBase.b(StubBasedPsiElementBase.java:183)

at com.intellij.extapi.psi.StubBasedPsiElementBase.getNode(StubBasedPsiElementBase.java:104)

at com.intellij.extapi.psi.ASTDelegatePsiElement.getLastChild(ASTDelegatePsiElement.java:100)

at fr.adrienbrault.idea.symfony2plugin.util.PhpElementsUtil.getMethodParameterReferences(PhpElementsUtil.java:788)

at fr.adrienbrault.idea.symfony2plugin.util.MethodMatcher$StringParameterRecursiveMatcher.match(MethodMatcher.java:191)

at fr.adrienbrault.idea.symfony2plugin.util.MethodMatcher.getMatchedSignatureWithDepth(MethodMatcher.java:41)

at fr.adrienbrault.idea.symfony2plugin.util.MethodMatcher.getMatchedSignatureWithDepth(MethodMatcher.java:22)

at fr.adrienbrault.idea.symfony2plugin.navigation.controller.ModelsControllerRelatedGotoCollector.collectGotoRelatedItems(ModelsControllerRelatedGotoCol...:25)

at fr.adrienbrault.idea.symfony2plugin.dic.ControllerMethodLineMarkerProvider.getGotoRelatedItems(ControllerMethodLineMarkerProv...:90)

at fr.adrienbrault.idea.symfony2plugin.dic.ControllerMethodLineMarkerProvider.collect(ControllerMethodLineMarkerProv...:49)

at fr.adrienbrault.idea.symfony2plugin.dic.ControllerMethodLineMarkerProvider.collectSlowLineMarkers(ControllerMethodLineMarkerProv...:100)

at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.addLineMarkers(SlowLineMarkersPass.java:78)

at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:65)

at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.jav...:67)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1169)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)

at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:432)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)

at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

I have the plugin version 0.11.102 and phpstorm 143.790 and errors after latest update from 0.11.101:

com.jetbrains.php.lang.psi.resolve.types.PhpType.add(Ljava/util/Collection;)Lcom/jetbrains/php/lang/psi/resolve/types/PhpType;

java.lang.NoSuchMethodError: com.jetbrains.php.lang.psi.resolve.types.PhpType.add(Ljava/util/Collection;)Lcom/jetbrains/php/lang/psi/resolve/types/PhpType;

at fr.adrienbrault.idea.symfony2plugin.util.PhpElementsUtil.getClassFromPhpTypeSetArrayClean(PhpElementsUtil.java:731)

at fr.adrienbrault.idea.symfony2plugin.config.SymfonyPhpReferenceContributor$5.getReferencesByElement(SymfonyPhpReferenceContributor...:173)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.doGetReferencesFromProviders(ReferenceProvidersRegistryImpl...:120)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.jav...:66)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.jav...:60)

at com.jetbrains.php.lang.psi.elements.impl.StringLiteralExpressionImpl.getReferences(StringLiteralExpressionImpl.ja...:283)

at org.intellij.plugins.intelliLang.references.InjectedReferencesContributor.getInjectedReferences(InjectedReferencesContributor....:56)

at org.intellij.plugins.intelliLang.references.InjectedReferencesInspection$1.visitElement(InjectedReferencesInspection.j...:38)

at com.jetbrains.php.lang.psi.elements.impl.StringLiteralExpressionImpl.accept(StringLiteralExpressionImpl.ja...:29)

at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)

at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:320)

at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:315)

at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:122)

at com.intellij.concurrency.ApplierCompleter.c(ApplierCompleter.java:211)

at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:140)

at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)

at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1169)

at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)

at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)

at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)

at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)

at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

Error after last update: Argument for @NotNull parameter 'psiElement' of fr/adrienbrault/idea/symfony2plugin/form/util/FormUtil.getFormTypeClassOnParameter must not be null

Argument for @NotNull parameter 'psiElement' of fr/adrienbrault/idea/symfony2plugin/form/util/FormUtil.getFormTypeClassOnParameter must not be null

java.lang.IllegalArgumentException: Argument for @NotNull parameter 'psiElement' of fr/adrienbrault/idea/symfony2plugin/form/util/FormUtil.getFormTypeClassOnParameter must not be null

at fr.adrienbrault.idea.symfony2plugin.form.util.FormUtil.getFormTypeClassOnParameter(FormUtil.java)

at fr.adrienbrault.idea.symfony2plugin.form.util.FormUtil.getFormTypeClass(FormUtil.java:146)

at fr.adrienbrault.idea.symfony2plugin.form.util.FormUtil.resolveFormGetterCall(FormUtil.java:129)

at fr.adrienbrault.idea.symfony2plugin.form.util.FormUtil.resolveFormGetterCallMethod(FormUtil.java:155)

at fr.adrienbrault.idea.symfony2plugin.form.FormTypeReferenceContributor$5.getReferencesByElement(FormTypeReferenceContributor.j...:261)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistryImpl.doGetReferencesFromProviders(ReferenceProvidersRegistryImpl...:120)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.jav...:66)

at com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry.getReferencesFromProviders(ReferenceProvidersRegistry.jav...:60)

at com.jetbrains.php.lang.psi.elements.impl.StringLiteralExpressionImpl.getReferences(StringLiteralExpressionImpl.ja...:283)

at org.intellij.plugins.intelliLang.references.InjectedReferencesContributor.getInjectedReferences(InjectedReferencesContributor....:56)

at org.intellij.plugins.intelliLang.references.InjectedReferencesInspection$1.visitElement(InjectedReferencesInspection.j...:38)

at com.jetbrains.php.lang.psi.elements.impl.StringLiteralExpressionImpl.accept(StringLiteralExpressionImpl.ja...:29)

at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)

at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:320)

at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:315)

at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:122)

at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)

at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:85)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1169)

at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:94)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)

at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)

at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:106)

at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:82)

at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

Assertion failed: unable to get stub builder for com.intellij.json.JsonFileType@468415
Full error here: http://pastebin.com/scQszZiZ

Seems it happen when I tried to get the autocomplete values of render controller (twig)
Final result is: {{ render(controller('AppBundle:Category:menu')) }}
On my side, all went fine the second try.

Hello,
Thanks for your great work!

I wanted to submit a bug that appeared in the last version of PHPStorm 2016.1 (build 145.258.2). It happens when opening a yaml file.

org/jetbrains/yaml/psi/YAMLHash

java.lang.NoClassDefFoundError: org/jetbrains/yaml/psi/YAMLHash

at fr.adrienbrault.idea.symfony2plugin.util.yaml.YamlHelper.findServiceInContext(YamlHelper.java:591)

at fr.adrienbrault.idea.symfony2plugin.intentions.yaml.YamlServiceTagIntention.isAvailable(YamlServiceTagIntention.java:43)

at com.intellij.codeInsight.intention.PsiElementBaseIntentionAction.isAvailable(PsiElementBaseIntentionAction....:64)

at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.isAvailable(IntentionActionWrapper.java:56)

at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.availableFor(ShowIntentionActionsHandler.ja...:128)

at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$3.process(ShowIntentionsPass.java:307)

at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$3.process(ShowIntentionsPass.java:304)

at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseBetweenHostAndInjected(ShowIntentionActionsHandler.ja...:153)

at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:304)

at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.a(ShowIntentionsPass.java:225)

at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:201)

at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.jav...:70)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)

at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:432)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)

at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

Hi, there is error with YAML parser in latest version of PhPStorm (2016.1 - 145.258). Here is error stack :

org/jetbrains/yaml/psi/YAMLArray

java.lang.NoClassDefFoundError: org/jetbrains/yaml/psi/YAMLArray

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlAnnotator.annotateConstructorArguments(YamlAnnotator.java:188)

at fr.adrienbrault.idea.symfony2plugin.config.yaml.YamlAnnotator.annotate(YamlAnnotator.java:62)

at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:135)

at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:99)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:351)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$100(GeneralHighlightingPass.java:62)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$3.run(GeneralHighlightingPass.java:280)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:305)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$200(GeneralHighlightingPass.java:62)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$4.run(GeneralHighlightingPass.java:311)

at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:83)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:308)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:277)

at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:216)

at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighligh...:82)

at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.jav...:70)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444)

at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435)

at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)

at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:432)

at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408)

at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206)

at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)

at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)

at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)

at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)

at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

Caused by: java.lang.ClassNotFoundException: org.jetbrains.yaml.psi.YAMLArray PluginClassLoader[fr.adrienbrault.idea.symfony2plugin, 0.11.113]

at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:64)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 30 more

Thanks

Hi, there! After last update at 0.12.121, this stack appears on twig template
null
java.lang.UnsupportedOperationException
at java.util.AbstractCollection.add(AbstractCollection.java:262)
at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectForArrayScopeVariables(TwigTypeResolveUtil.java:353)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectScopeVariables(TwigTypeResolveUtil.java:260)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectScopeVariables(TwigTypeResolveUtil.java:224)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.getRootVariableByName(TwigTypeResolveUtil.java:363)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.resolveTwigMethodName(TwigTypeResolveUtil.java:117)
at fr.adrienbrault.idea.symfony2plugin.templating.inspection.TwigVariableDeprecatedInspection$MyPsiRecursiveElementVisitor.visit(TwigVariableDeprecatedInspecti...:57)
at fr.adrienbrault.idea.symfony2plugin.templating.inspection.TwigVariableDeprecatedInspection$MyPsiRecursiveElementVisitor.visitElement(TwigVariableDeprecatedInspecti...:45)
at com.intellij.psi.impl.source.tree.LeafPsiElement.accept(LeafPsiElement.java:215)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:294)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256)
at com.intellij.concurrency.ApplierCompleter.c(ApplierCompleter.java:128)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:217)
at com.intellij.concurrency.ApplierCompleter.c(ApplierCompleter.java:146)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178)
at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:100)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:112)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:88)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.r...(ForkJoinWorkerThread.java:108)

Bug report:

//////////////// Thank you very much for this plugin!

//////////////// Version:
PhpStorm 2016.2
Build #PS-162.1121.38, built on July 12, 2016
JRE: 1.8.0_76-release-b216 x86
JVM: OpenJDK Server VM by JetBrains s.r.o

//////////////// Exception:
null
java.lang.NullPointerException
at fr.adrienbrault.idea.symfony2plugin.codeInsight.caret.overlay.CaretTextOverlayListener.clear(CaretTextOverlayListener.java:99)
at fr.adrienbrault.idea.symfony2plugin.codeInsight.caret.overlay.CaretTextOverlayListener.caretPositionChanged(CaretTextOverlayListener.java:38)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j...:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)
at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35)
at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79)
at com.sun.proxy.$Proxy27.caretPositionChanged(Unknown Source)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j...:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)
at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35)
at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79)
at com.sun.proxy.$Proxy27.caretPositionChanged(Unknown Source)
at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:517)
at com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:665)
at com.intellij.openapi.editor.impl.CaretImpl.b(CaretImpl.java:600)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:437)
at com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:600)
at com.intellij.openapi.editor.impl.CaretModelImpl.moveToVisualPosition(CaretModelImpl.java:130)
at com.intellij.openapi.editor.impl.EditorImpl.g(EditorImpl.java:4458)
at com.intellij.openapi.editor.impl.EditorImpl.f(EditorImpl.java:4380)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
at com.intellij.openapi.editor.impl.EditorImpl.e(EditorImpl.java:4380)
at com.intellij.openapi.editor.impl.EditorImpl.access$13000(EditorImpl.java:125)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseDragged(EditorImpl.java:6179)
at java.awt.Component.processMouseMotionEvent(Component.java:6581)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3342)
at java.awt.Component.processEvent(Component.java:6302)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4542)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:863)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:695)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.r...(EventDispatchThread.java:82)

############## Bug Report:
IntelliJ IDEA 2016.2.5
Build #IU-162.2228.15, built on October 14, 2016
JRE: 1.8.0_112-release-287-b2 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

This happens when I tried insert a if condition in action form attribute
The error happens when I tried to apply a condition to a form path:

<form method="post" {%="" if="" action="=" 'add'="" %}="" action="{{ path('add') }}" {%="" else="" %}="" action="{{ path('edit', {id: item.id}) }}" {%="" endif="" %}="">

########## Exception:
null
java.lang.UnsupportedOperationException
at java.util.AbstractCollection.add(AbstractCollection.java:262)
at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectForArrayScopeVariables(TwigTypeResolveUtil.java:345)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectScopeVariables(TwigTypeResolveUtil.java:256)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.collectScopeVariables(TwigTypeResolveUtil.java:220)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.getRootVariableByName(TwigTypeResolveUtil.java:355)
at fr.adrienbrault.idea.symfony2plugin.templating.util.TwigTypeResolveUtil.resolveTwigMethodName(TwigTypeResolveUtil.java:117)
at fr.adrienbrault.idea.symfony2plugin.templating.inspection.TwigVariableDeprecatedInspection$MyPsiRecursiveElementVisitor.visit(TwigVariableDeprecatedInspecti...:57)
at fr.adrienbrault.idea.symfony2plugin.templating.inspection.TwigVariableDeprecatedInspection$MyPsiRecursiveElementVisitor.visitElement(TwigVariableDeprecatedInspecti...:45)
at com.intellij.psi.impl.source.tree.LeafPsiElement.accept(LeafPsiElement.java:215)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:310)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:123)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1026)
at com.intellij.concurrency.ApplierCompleter.a(ApplierCompleter.java:96)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:106)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:91)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinW...(ForkJoinWorkerThread.java:157)

Hello, updated to latest version PHPStorm 2016.3.1 and getting the following error on a non-symfony project :

update failed for AnAction with ID=SymfonyWebDeploymentDownload: SERVER_CONFIG
java.lang.NoSuchFieldError: SERVER_CONFIG
at fr.adrienbrault.idea.symfony2plugin.webDeployment.actions.SymfonyWebDeploymentDownloadAction.update(SymfonyWebDeploymentDownloadAc...:31)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:122)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:188)
at com.intellij.openapi.actionSystem.impl.Utils.updateGroupChild(Utils.java:265)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:239)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:209)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:147)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:86)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:280)
at com.intellij.openapi.actionSystem.impl.ActionMenu.a(ActionMenu.java:324)
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$600(ActionMenu.java:51)
at com.intellij.openapi.actionSystem.impl.ActionMenu$MenuListenerImpl.menuSelected(ActionMenu.java:278)
at javax.swing.JMenu.fireMenuSelected(JMenu.java:1038)
at javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1118)
at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:349)
at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:232)
at javax.swing.JMenu.setSelected(JMenu.java:305)
at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1187)
at com.intellij.openapi.actionSystem.impl.ActionMenu.menuSelectionChanged(ActionMenu.java:240)
at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:125)
at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:526)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.retargetMouseEnterExit(Container.java:4676)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4654)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4505)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:675)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.r...(EventDispatchThread.java:82)

I started getting this error today. Im on PHPStorm 2016.3.1:

_______________________________
Error message:
update failed for AnAction with ID=SymfonyWebDeploymentDownload: SERVER_CONFIG
_______________________________
Details:
update failed for AnAction with ID=SymfonyWebDeploymentDownload: SERVER_CONFIG
java.lang.NoSuchFieldError: SERVER_CONFIG
at fr.adrienbrault.idea.symfony2plugin.webDeployment.actions.SymfonyWebDeploymentDownloadAction.update(SymfonyWebDeploymentDownloadAc...:31)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:122)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:188)
at com.intellij.openapi.actionSystem.impl.Utils.updateGroupChild(Utils.java:265)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:239)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:209)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:147)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:86)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:280)
at com.intellij.openapi.actionSystem.impl.ActionMenu.a(ActionMenu.java:324)
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$600(ActionMenu.java:51)
at com.intellij.openapi.actionSystem.impl.ActionMenu$MenuListenerImpl.menuSelected(ActionMenu.java:278)
at javax.swing.JMenu.fireMenuSelected(JMenu.java:1038)
at javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1118)
at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:349)
at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:232)
at javax.swing.JMenu.setSelected(JMenu.java:305)
at com.apple.laf.ScreenMenu$2.run(ScreenMenu.java:135)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.r...(EventDispatchThread.java:82)

PhpStorm 2016.3.1
Build #PS-163.9735.1, built on December 6, 2016
JRE: 1.8.0_112-release-408-b2 x86
JVM: OpenJDK Server VM by JetBrains s.r.o

Symfony Plugin Version: 0.12.132
Exception:
update failed for AnAction with ID=SymfonyWebDeploymentDownload: SERVER_CONFIG

full trace http://pastebin.com/kwjANZYp

I have the same error on PHPStorm 2016.3.2

Constantly getting NullPointerException error in the latest version of PhpStorm and the plugin:

null
java.lang.NullPointerException
at fr.adrienbrault.idea.symfony2plugin.config.ConfigLineMarkerProvider.visitRootElements(ConfigLineMarkerProvider.java:62)
at fr.adrienbrault.idea.symfony2plugin.config.ConfigLineMarkerProvider.collectSlowLineMarkers(ConfigLineMarkerProvider.java:43)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:209)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:111)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:96)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:106)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.jav...:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:433)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1061)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:426)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:425)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:405)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:155)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinW...(ForkJoinWorkerThread.java:157)

i get alot of erros on latest phpstorm/symfony plugin under linux
Error while indexing /PhpStorm/lib/phpstorm.jar!/standardSchemas/catalog.xsd etc