nette-intellij / intellij-latte

Latte plugin for IntelliJ IDEA platform
MIT License
113 stars 22 forks source link

Entity related suggestions #210

Open SlavikMilan opened 1 week ago

SlavikMilan commented 1 week ago

Describe the bug Suggestions on entity behaves differently in newest version. I had to downgrade my Php Storm version and download older version of Latte because 1.2.0 is unusable at this point of time. difference_between_versions

Environment (please complete the following information):

Error message com.intellij.diagnostic.PluginException: Cannot distinguish StubFileElementTypes. This might worsen the performance. Providing unique externalId or adding a distinctive debugName when instantiating StubFileElementTypes can help (override getExternalId() and/or getDebugName() in StubFileElementType). See attachment for additional information. [Plugin: com.jantvrdik.intellij.latte] at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.reportStubFileElementTypeVersionConflict(PerFileElementTypeStubModificationTracker.java:294) at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.lambda$determinePreviousFileElementType$8(PerFileElementTypeStubModificationTracker.java:269) at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916) at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.determinePreviousFileElementType(PerFileElementTypeStubModificationTracker.java:265) at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.fastCheck(PerFileElementTypeStubModificationTracker.java:159) at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.lambda$endUpdatesBatch$3(PerFileElementTypeStubModificationTracker.java:120) at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:54) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:228) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:221) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:857) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66) at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53) at com.intellij.psi.stubs.PerFileElementTypeStubModificationTracker.endUpdatesBatch(PerFileElementTypeStubModificationTracker.java:119) at com.intellij.util.indexing.events.ChangedFilesCollector$4.endBatch(ChangedFilesCollector.java:217) at com.intellij.util.indexing.events.ChangedFilesCollector$5.lambda$endBatch$2(ChangedFilesCollector.java:254) at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:264) at com.intellij.util.indexing.events.ChangedFilesCollector$5.endBatch(ChangedFilesCollector.java:253) at com.intellij.util.indexing.events.VfsEventsMerger.processChanges(VfsEventsMerger.java:127) at com.intellij.util.indexing.events.ChangedFilesCollector.processFilesInReadAction(ChangedFilesCollector.java:236) at com.intellij.util.indexing.events.ChangedFilesCollector.processFilesToUpdateInReadAction(ChangedFilesCollector.java:184) at com.intellij.util.indexing.events.ChangedFilesCollector.ensureUpToDate(ChangedFilesCollector.java:145) at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:805) at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:303) at com.intellij.util.indexing.FileBasedIndexEx.getFileData(FileBasedIndexEx.java:195) at com.intellij.psi.impl.include.FileIncludeIndex.getIncludes(FileIncludeIndex.java:33) at com.intellij.psi.impl.include.FileIncludeManagerImpl.processIncludes(FileIncludeManagerImpl.java:62) at com.intellij.psi.impl.include.FileIncludeManagerImpl$1.computeFiles(FileIncludeManagerImpl.java:48) at com.intellij.psi.impl.include.FileIncludeManagerImpl$IncludeCacheHolder$1.computeFiles(FileIncludeManagerImpl.java:200) at com.intellij.psi.impl.include.FileIncludeManagerImpl$IncludedFilesProvider.compute(FileIncludeManagerImpl.java:260) at com.intellij.psi.impl.include.FileIncludeManagerImpl$IncludedFilesProvider.compute(FileIncludeManagerImpl.java:249) at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.kt:23) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236) at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.kt:17) at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:97) at com.intellij.psi.impl.include.FileIncludeManagerImpl$IncludeCacheHolder.getFiles(FileIncludeManagerImpl.java:240) at com.intellij.psi.impl.include.FileIncludeManagerImpl$IncludeCacheHolder.getAllFiles(FileIncludeManagerImpl.java:222) at com.intellij.psi.impl.include.FileIncludeManagerImpl.getIncludedFiles(FileIncludeManagerImpl.java:155) at com.intellij.psi.impl.include.FileIncludeManagerImpl.getIncludedFiles(FileIncludeManagerImpl.java:149) at org.intellij.plugins.relaxNG.model.resolve.RelaxIncludeIndex.processForwardDependencies(RelaxIncludeIndex.java:27) at org.intellij.plugins.relaxNG.model.descriptors.RngNsDescriptor.getDependencies(RngNsDescriptor.java:232) at com.intellij.psi.impl.source.html.dtd.HtmlNSDescriptorImpl.getDependencies(HtmlNSDescriptorImpl.java:167) at com.intellij.psi.impl.source.xml.XmlDocumentImpl.lambda$getDefaultNSDescriptor$0(XmlDocumentImpl.java:136) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.kt:40) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236) at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.kt:34) at com.intellij.psi.impl.source.xml.XmlDocumentImpl.getDefaultNSDescriptor(XmlDocumentImpl.java:140) at com.intellij.psi.impl.source.xml.XmlTagDelegate.getNSDescriptor(XmlTagDelegate.java:233) at com.intellij.psi.impl.source.xml.XmlTagImpl.getNSDescriptor(XmlTagImpl.java:93) at com.intellij.html.webSymbols.HtmlDescriptorUtils.getStandardHtmlElementDescriptor$intellij_xml_psi_impl(HtmlDescriptorUtils.kt:61) at com.intellij.html.webSymbols.WebSymbolsHtmlQueryConfigurator$StandardHtmlSymbolsScope.getMatchingSymbols(WebSymbolsHtmlQueryConfigurator.kt:151) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl$runNameMatchQuery$1$result$1.invoke(WebSymbolsQueryExecutorImpl.kt:136) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl$runNameMatchQuery$1$result$1.invoke(WebSymbolsQueryExecutorImpl.kt:134) at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:315) at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303) at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169) at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194) at kotlin.sequences.DistinctIterator.computeNext(Sequences.kt:570) at kotlin.collections.AbstractIterator.tryToComputeNext(AbstractIterator.kt:42) at kotlin.collections.AbstractIterator.hasNext(AbstractIterator.kt:29) at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:809) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl$runNameMatchQuery$1.invoke(WebSymbolsQueryExecutorImpl.kt:140) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl$runNameMatchQuery$1.invoke(WebSymbolsQueryExecutorImpl.kt:128) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl.runQuery$lambda$13(WebSymbolsQueryExecutorImpl.kt:267) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl.runQuery(WebSymbolsQueryExecutorImpl.kt:251) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl.runNameMatchQuery(WebSymbolsQueryExecutorImpl.kt:128) at com.intellij.webSymbols.query.impl.WebSymbolsQueryExecutorImpl.runNameMatchQuery(WebSymbolsQueryExecutorImpl.kt:68) at com.intellij.webSymbols.query.WebSymbolsQueryExecutor.runNameMatchQuery(WebSymbolsQueryExecutor.kt:43) at com.intellij.webSymbols.query.WebSymbolsQueryExecutor.runNameMatchQuery$default(WebSymbolsQueryExecutor.kt:36) at com.intellij.html.webSymbols.elements.WebSymbolElementDescriptorsProvider.getDescriptor(WebSymbolElementDescriptorsProvider.kt:24) at com.intellij.psi.impl.source.xml.XmlTagDelegate.computeElementDescriptor(XmlTagDelegate.java:455) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.psi.impl.source.xml.XmlTagDelegate$1.compute(XmlTagDelegate.java:436) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173) at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236) at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:136) at com.intellij.psi.impl.source.xml.XmlTagDelegate.getDescriptor(XmlTagDelegate.java:432) at com.intellij.psi.impl.source.xml.XmlTagImpl.getDescriptor(XmlTagImpl.java:120) at com.intellij.html.webSymbols.elements.WebSymbolInTagNameRefProvider.getSymbol(WebSymbolInTagNameRefProvider.kt:13) at com.intellij.html.webSymbols.elements.WebSymbolInTagNameRefProvider.getOffsetsToSymbols(WebSymbolInTagNameRefProvider.kt:18) at com.intellij.html.webSymbols.elements.WebSymbolInTagNameRefProvider.getOffsetsToSymbols(WebSymbolInTagNameRefProvider.kt:10) at com.intellij.webSymbols.references.WebSymbolReferenceProvider.getReferences(WebSymbolReferenceProvider.kt:70) at com.intellij.webSymbols.references.WebSymbolReferenceProvider.getReferences$lambda$0(WebSymbolReferenceProvider.kt:43) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173) at com.intellij.psi.impl.PsiCachedValueImpl$Direct.doCompute(PsiCachedValueImpl.kt:77) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236) at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiCachedValueImpl$Direct.getValue(PsiCachedValueImpl.kt:81) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:170) at com.intellij.webSymbols.references.WebSymbolReferenceProvider.getReferences(WebSymbolReferenceProvider.kt:41) at com.intellij.model.psi.impl.PsiSymbolReferenceServiceImpl.lambda$doGetExternalReferences$1(PsiSymbolReferenceServiceImpl.java:92) at com.intellij.model.psi.impl.PsiSymbolReferenceServiceImpl.doGetExternalReferences(PsiSymbolReferenceServiceImpl.java:104) at com.intellij.model.psi.impl.PsiSymbolReferenceServiceImpl.getReferences(PsiSymbolReferenceServiceImpl.java:47) at com.intellij.model.psi.impl.PsiSymbolReferenceServiceImpl.getReferences(PsiSymbolReferenceServiceImpl.java:23) at com.intellij.model.psi.impl.ReferencesKt.referencesInElement(references.kt:76) at com.intellij.model.psi.impl.ReferencesKt.allReferencesInElement(references.kt:59) at com.intellij.model.psi.impl.ReferencesKt.allReferencesAround(references.kt:36) at com.intellij.model.psi.impl.TargetsKt.declarationsOrReferences(targets.kt:134) at com.intellij.model.psi.impl.TargetsKt.declaredReferencedData(targets.kt:42) at com.intellij.model.psi.impl.TargetsKt.targetSymbols(targets.kt:24) at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.getTargetSymbols(IdentifierHighlighterPass.java:219) at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.highlightReferencesAndDeclarations(IdentifierHighlighterPass.java:210) at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.doCollectInformation(IdentifierHighlighterPass.java:99) at com.intellij.codeInsight.highlighting.BackgroundHighlighter.lambda$submitIdentifierHighlighterPass$8(BackgroundHighlighter.java:317) at com.intellij.codeInsight.daemon.impl.HighlightingSessionImpl.runInsideHighlightingSession(HighlightingSessionImpl.java:179) at com.intellij.codeInsight.highlighting.BackgroundHighlighter.lambda$submitIdentifierHighlighterPass$9(BackgroundHighlighter.java:314) at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:66) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:155) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:138) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:135) at com.intellij.codeInsight.highlighting.BackgroundHighlighter.lambda$submitIdentifierHighlighterPass$10(BackgroundHighlighter.java:311) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$OTelMonitor.callWrapped(NonBlockingReadActionImpl.java:840) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$OTelMonitor$MonitoredComputation.call(NonBlockingReadActionImpl.java:872) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:604) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$4(NonBlockingReadActionImpl.java:567) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:291) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:93) at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:66) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:155) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:138) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:217) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:135) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:93) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:567) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:466) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$2(NonBlockingReadActionImpl.java:481) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732) at java.base/java.lang.Thread.run(Thread.java:1583)