Closed ghost closed 10 months ago
Hello, @leoner-omnipro ! Thank you for your report! Could you please provide full stack trace of this bug and describe steps to reproduce? Thank you!
Hello, @leoner-omnipro !
Could you please give updates here?
Hey @bohdan-harniuk! I can't give more details aboout this issue because I'm not sure how it happened, I just was using normally the IDE when error appeared. I just did the report with the "Report and close" option and the trace was what the option completed. Sorry if this can't be of much help.
As I can see, manual reindex can help with solving this issue. To be sure about it, I need to see full stack trace. Let's leave this issue opened for a month. If you will face this issue again, please, update stack trace here instead of opening new issue. If not, I'll close this issue. What do you think?
Sure, it sounds good for me.
Hey @bohdan-harniuk! The issue happened again, here the log copied by PHPStorm
Outdated stub in index: file:////wsl$/Ubuntu-22.04/home/omnipro/Sites/oms-lab/app/code/Oms/OrderSync/Controller/Adminhtml/OrderSyncReport.php indexing timestamp = 1679931130608, binary = false, byte size = 1518, char size = 1518, doc=DocumentImpl[file:////wsl$/Ubuntu-22.04/home/omnipro/Sites/oms-lab/app/code/Oms/OrderSync/Controller/Adminhtml/OrderSyncReport.php], docSaved=false, wasIndexedAlready=true, queried at 1679931130608
doc length=1519
file length=1518
cached PSI class com.jetbrains.php.lang.psi.PhpFileImpl
projects with file: 1
physical file exists; length = 1518
java.lang.Exception
at com.intellij.psi.stubs.StubTreeLoaderImpl.diagnoseLengthMismatch(StubTreeLoaderImpl.java:191)
at com.intellij.psi.stubs.StubTreeLoaderImpl.checkLengthMatch(StubTreeLoaderImpl.java:157)
at com.intellij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:124)
at com.intellij.psi.stubs.StubTreeLoaderImpl.readOrBuild(StubTreeLoaderImpl.java:49)
at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:634)
at com.intellij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:956)
at com.intellij.psi.impl.source.PsiFileImpl.getGreenStub(PsiFileImpl.java:611)
at com.jetbrains.php.lang.psi.PhpPsiUtil.findClasses(PhpPsiUtil.java:566)
at com.jetbrains.php.lang.psi.PhpPsiUtil.findAllClasses(PhpPsiUtil.java:602)
at com.atwix.magento.lang.php.util.PhpClassReaderUtil.getFirstClassOfFile(PhpClassReaderUtil.kt:32)
at com.atwix.magento.framework.test.MagentoTestSourceVerifier.isTestSource(MagentoTestSourceVerifier.java:118)
at com.atwix.magento.framework.test.MagentoTestSourceVerifier.isTestSource(MagentoTestSourceVerifier.java:111)
at com.atwix.magento.project.configurator.MagentoTestSourceFilterService.isTestSource(MagentoTestSourceFilterService.java:33)
at com.intellij.openapi.roots.TestSourcesFilter.isTestSources(TestSourcesFilter.java:31)
at com.intellij.psi.search.scope.TestsScope$1.contains(TestsScope.java:25)
at com.intellij.psi.search.scope.packageSet.FilteredPackageSet.contains(FilteredPackageSet.java:22)
at com.intellij.ui.tabs.FileColorsModel.findConfiguration(FileColorsModel.java:239)
at com.intellij.ui.tabs.FileColorsModel.getColor(FileColorsModel.java:210)
at com.intellij.ui.tabs.FileColorManagerImpl.getFileColor(FileColorManagerImpl.java:167)
at com.intellij.ui.tabs.EditorTabColorProviderImpl.getProjectViewColor(EditorTabColorProviderImpl.java:41)
at com.intellij.openapi.fileEditor.impl.EditorTabPresentationUtil.getFileBackgroundColor(EditorTabPresentationUtil.java:66)
at com.intellij.openapi.vfs.newvfs.VfsPresentationUtil.getFileBackgroundColor(VfsPresentationUtil.java:48)
at com.intellij.presentation.impl.FilePresentationServiceImpl.getFileBackgroundColor(FilePresentationServiceImpl.kt:22)
at com.intellij.presentation.impl.FilePresentationServiceImpl.getFileBackgroundColor(FilePresentationServiceImpl.kt:31)
at com.intellij.ide.util.treeView.AbstractTreeNode.computeBackgroundColor(AbstractTreeNode.java:278)
at com.intellij.ide.projectView.ProjectViewNode.computeBackgroundColor(ProjectViewNode.java:294)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.getUpdatedPresentation(PresentableNodeDescriptor.java:77)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.update(PresentableNodeDescriptor.java:30)
at com.intellij.ui.tree.StructureTreeModel$Node.update(StructureTreeModel.java:487)
at com.intellij.ui.tree.StructureTreeModel$Node.<init>(StructureTreeModel.java:468)
at com.intellij.ui.tree.StructureTreeModel$Node.<init>(StructureTreeModel.java:461)
at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:419)
at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:330)
at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:324)
at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:344)
at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:548)
at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:443)
at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:409)
at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:305)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1111)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:71)
at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:128)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:109)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:68)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(Core
Hello, @leoner-omnipro!
I'll check provided stack trace. From the first sight they are different. But both should be resolved for sure.
Thank you,
Hi, @leoner-omnipro!
I apologize for the delayed response. We attempted to reproduce the issue multiple times, but without success. After some time, we sought assistance from the JetBrains (PHP-related) team. It turned out that this issue is connected to PHPStorm's native functionality and shouldn't impact anything critically important. Invalidate caches should always resolve it: https://www.jetbrains.com/help/phpstorm/invalidate-caches.html
Please, reopen this issue if you need more help here. Regards,
Describe the bug (*)
Please, describe as much as possible about of what the bug is. It will help to solve this issue faster.
StackTrace from IDE
To Reproduce (*)
Screenshots
If applicable, add screenshots to help explain your problem.
System information: