JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

Exception: java.lang.Throwable: Non-idempotent computation: it returns different results when invoked multiple times or on different threads: #582

Closed catalin-a24 closed 1 year ago

catalin-a24 commented 2 years ago

Description

Stacktrace

Please paste the full stacktrace from the IDEA error popup.

java.lang.Throwable: Non-idempotent computation: it returns different results when invoked multiple times or on different threads:
  GraphQL (class com.intellij.lang.jsgraphql.psi.GraphQLFile) != GraphQL (class com.intellij.lang.jsgraphql.psi.GraphQLFile)

Recomputation gives com.intellij.util.CachedValueBase$Data@6c5732c3 which is different from both values
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:182)
    at com.intellij.util.IdempotenceChecker.reportFailure(IdempotenceChecker.java:89)
    at com.intellij.util.IdempotenceChecker.checkEquivalence(IdempotenceChecker.java:76)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
    at com.intellij.lang.jsgraphql.ide.introspection.GraphQLIntrospectionFilesManager.getOrCreateIntrospectionSDL(GraphQLIntrospectionFilesManager.java:27)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper$4.visitElement(GraphQLPsiSearchHelper.java:271)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:273)
    at com.intellij.json.psi.impl.JsonLiteralImpl.accept(JsonLiteralImpl.java:26)
    at com.intellij.json.psi.impl.JsonStringLiteralImpl.accept(JsonStringLiteralImpl.java:28)
    at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69)
    at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:41)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper$4.visitElement(GraphQLPsiSearchHelper.java:282)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:273)
    at com.intellij.json.psi.impl.JsonPropertyImpl.accept(JsonPropertyImpl.java:27)
    at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69)
    at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:41)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper$4.visitElement(GraphQLPsiSearchHelper.java:282)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:273)
    at com.intellij.json.psi.impl.JsonValueImpl.accept(JsonValueImpl.java:26)
    at com.intellij.json.psi.impl.JsonContainerImpl.accept(JsonContainerImpl.java:27)
    at com.intellij.json.psi.impl.JsonObjectImpl.accept(JsonObjectImpl.java:27)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:185)
    at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:751)
    at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:41)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper$4.visitElement(GraphQLPsiSearchHelper.java:282)
    at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:35)
    at com.intellij.psi.PsiRecursiveElementVisitor.visitFile(PsiRecursiveElementVisitor.java:60)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:60)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper.lambda$processElementsWithWordUsingIdentifierIndex$3(GraphQLPsiSearchHelper.java:286)
    at com.intellij.util.indexing.FileBasedIndexEx.processVirtualFiles(FileBasedIndexEx.java:529)
    at com.intellij.util.indexing.FileBasedIndexEx.processFilesContainingAllKeys(FileBasedIndexEx.java:362)
    at com.intellij.util.indexing.FileBasedIndexEx.getFilesWithKey(FileBasedIndexEx.java:433)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper.processElementsWithWordUsingIdentifierIndex(GraphQLPsiSearchHelper.java:249)
    at com.intellij.lang.jsgraphql.ide.search.GraphQLPsiSearchHelper.processElementsWithWord(GraphQLPsiSearchHelper.java:301)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLReferenceService.resolveUsingIndex(GraphQLReferenceService.java:443)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLReferenceService.resolveTypeName(GraphQLReferenceService.java:330)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLReferenceService.innerResolveReference(GraphQLReferenceService.java:107)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLReferenceService.doResolveReference(GraphQLReferenceService.java:87)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLCachingReference.resolveInner(GraphQLCachingReference.java:42)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLCachingReference$MyResolver.resolve(GraphQLCachingReference.java:56)
    at com.intellij.lang.jsgraphql.ide.resolve.GraphQLCachingReference$MyResolver.resolve(GraphQLCachingReference.java:51)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolve$1(ResolveCache.java:154)
    at com.intellij.openapi.util.Computable.get(Computable.java:18)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$4(ResolveCache.java:260)
    at com.intellij.openapi.util.Computable.get(Computable.java:18)
    at com...

Version and Environment Details

Operation system: macOS 12.1 IDE version: IU-212.5080.55 Plugin version: 3.1.0