Closed ZHOUXING1997 closed 3 months ago
file:///test.go 这个文件方便发一下吗?
抱歉,不太方便。 这个是非Model文件,就是我在编辑非model文件的时候,经常报错
周星 @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年4月3日(星期三) 晚上6:06 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [maiqingqiang/go-orm-helper] 一直报错 (Issue #15)
file:///test.go 这个文件方便发一下吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
要不你设置固定的扫描路径,让插件只扫存在model的目录
java.lang.Throwable: psiElement is not instance of requiredClass. psiElement=TYPE, psiElement.class=class com.goide.psi.impl.GoTypeImpl, requiredClass=interface com.goide.psi.GoMethodDeclaration, operation=Looking for biz.Test in go.method, stubIdList=[56, 67, 78]. ref: 50cf572587cf com.intellij.psi.stubs.ManyProjectsStubIndexMismatch: PSI and index do not match. Please report the problem to JetBrains with the files attached file=GO_FILE, file.class=class com.goide.psi.GoFile, file.lang=Language: go, modStamp=0 tree consistent stub debugInfo=created in calcStubTree; with backReference viewProvider=com.intellij.psi.SingleRootFileViewProvider{vFile=file:///test.go, vFileId=628313, content=VirtualFileContent{size=2150}, eventSystemEnabled=true} viewProvider stamp: 344697; file stamp: 344697; file modCount: 1712134059916; file length: 2150 doc saved: false; doc stamp: 344697; doc size: 2150; committed: true indexing info: indexing timestamp = 1710488127232, binary = false, byte size = 2248, char size = 2150 ref: 50cf572587cf latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=GoFileStub}567171584 same size=true debugInfo=created from index; with backReference at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376) at com.intellij.psi.stubs.StubProcessingHelperBase.inconsistencyDetected(StubProcessingHelperBase.java:156) at com.intellij.psi.stubs.StubProcessingHelperBase.checkType(StubProcessingHelperBase.java:90) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:61) at com.intellij.psi.stubs.StubIndexEx.lambda$processElements$5(StubIndexEx.java:152) at com.intellij.psi.stubs.StubIndexEx.processElements(StubIndexEx.java:202) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:102) at com.goide.stubs.index.GoMethodIndex.find(GoMethodIndex.java:52) at com.goide.psi.impl.GoPsiImplUtil.calcMethods(GoPsiImplUtil.java:1658) at com.goide.psi.impl.GoPsiImplUtil.lambda$getMethods$32(GoPsiImplUtil.java:1514) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:37) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:240) at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:240) 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:241) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:27) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:69) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:121) at com.goide.psi.impl.GoPsiImplUtil.getMethods(GoPsiImplUtil.java:1510) at com.github.maiqingqiang.goormhelper.services.GoORMHelperCacheManager.findTableName(GoORMHelperCacheManager.java:188) at com.github.maiqingqiang.goormhelper.services.GoORMHelperCacheManager.lambda$parseGoFile$2(GoORMHelperCacheManager.java:149) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:878) at com.github.maiqingqiang.goormhelper.services.GoORMHelperCacheManager.parseGoFile(GoORMHelperCacheManager.java:127) at com.github.maiqingqiang.goormhelper.listeners.SchemaFileListener.after(SchemaFileListener.java:36) at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:700) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:660) at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:492) at com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:310) at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:449) at jdk.proxy1/jdk.proxy1.$Proxy96.after(Unknown Source) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.lambda$fireAfterEvents$20(PersistentFSImpl.java:1424) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.runSuppressing(PersistentFSImpl.java:1053) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.fireAfterEvents(PersistentFSImpl.java:1421) at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$3.close(PersistentFSImpl.java:973) at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:398) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocumentInWriteAction$3(FileDocumentManagerImpl.java:433) at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:321) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocumentInWriteAction(FileDocumentManagerImpl.java:422) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocument$2(FileDocumentManagerImpl.java:375) at com.intellij.openapi.application.WriteAction.lambda$run$1(WriteAction.java:85) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:963) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:989) at com.intellij.openapi.application.WriteAction.run(WriteAction.java:84) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocument(FileDocumentManagerImpl.java:375) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveDocuments(FileDocumentManagerImpl.java:292) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:267) at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:260) at com.intellij.openapi.externalSystem.autoimport.ProjectSettingsTracker$submitSettingsFilesRefresh$2.invoke(ProjectSettingsTracker.kt:165) at com.intellij.openapi.externalSystem.autoimport.ProjectSettingsTracker$submitSettingsFilesRefresh$2.invoke(ProjectSettingsTracker.kt:163) at com.intellij.openapi.externalSystem.autoimport.settings.EdtAsyncSupplier.supply$lambda$0(EdtAsyncSupplier.kt:16) at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27) at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209) at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22) at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:843) at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:463) at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75) at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67) at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1436) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:124) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:44) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:695) at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:589) at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:44) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589) at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:72) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:355) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:354) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:793) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:354) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:349) at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1014) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106) at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1014) at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:349) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:848) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:391) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)