Inspections broken/frozen

Hi, 

I have a strange bug happening to me regarding inspections. For some files in my project the inspections seem to freeze. The files are fine (no warnings) when I start up WebStorm but as soon as I get a warning from the inspections while changing my code, that warning will stay until I copy and paste the code block or restart WebStorm.

I already tried disabling all non-bundled plugins and invalidating and restarting WebStorm 2019.1.3.

This is my idea.log with the error that is being reported:

java.lang.ClassCastException: com.intellij.lang.javascript.psi.impl.JSFileImpl cannot be cast to com.intellij.extapi.psi.StubBasedPsiElementBase
at com.intellij.lang.javascript.psi.util.JSStubBasedPsiTreeUtil.findOwnDocCommentForStub(JSStubBasedPsiTreeUtil.java:487)
at com.intellij.lang.javascript.psi.util.JSStubBasedPsiTreeUtil.findOwnDocComment(JSStubBasedPsiTreeUtil.java:460)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1518)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$addEvaluableOnlyType$11(JSTypeEvaluator.java:379)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processWithEvaluationGuard$45(JSTypeEvaluator.java:2783)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processWithEvaluationGuard(JSTypeEvaluator.java:2777)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processItem(JSTypeEvaluator.java:2757)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$evaluateWithComplexityCheck$47(JSTypeEvaluator.java:2858)
at com.intellij.lang.javascript.psi.resolve.JSEvaluatorComplexityTracker.runComplexTask(JSEvaluatorComplexityTracker.java:24)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.evaluateWithComplexityCheck(JSTypeEvaluator.java:2858)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addEvaluableOnlyType(JSTypeEvaluator.java:377)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doAddType(JSTypeEvaluator.java:306)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.doAddType(ES6TypeEvaluator.java:279)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:299)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:290)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$addEvaluableOnlyType$12(JSTypeEvaluator.java:413)
at com.intellij.lang.javascript.psi.resolve.JSEvaluateContext.processWithJSElementToApply(JSEvaluateContext.java:102)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addEvaluableOnlyType(JSTypeEvaluator.java:412)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doAddType(JSTypeEvaluator.java:306)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.doAddType(ES6TypeEvaluator.java:279)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:299)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:290)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromVariableResolveResult(JSTypeEvaluator.java:1589)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.addTypeFromVariableResolveResult(ES6TypeEvaluator.java:123)
at com.intellij.lang.javascript.ecmascript6.TypeScriptTypeEvaluator.addTypeFromVariableResolveResult(TypeScriptTypeEvaluator.java:321)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1527)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$addEvaluableOnlyType$11(JSTypeEvaluator.java:379)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processWithEvaluationGuard$45(JSTypeEvaluator.java:2783)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processWithEvaluationGuard(JSTypeEvaluator.java:2777)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processItem(JSTypeEvaluator.java:2757)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$evaluateWithComplexityCheck$47(JSTypeEvaluator.java:2858)
at com.intellij.lang.javascript.psi.resolve.JSEvaluatorComplexityTracker.runComplexTask(JSEvaluatorComplexityTracker.java:24)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.evaluateWithComplexityCheck(JSTypeEvaluator.java:2858)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addEvaluableOnlyType(JSTypeEvaluator.java:377)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doAddType(JSTypeEvaluator.java:306)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.doAddType(ES6TypeEvaluator.java:279)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:299)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:290)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$addEvaluableOnlyType$12(JSTypeEvaluator.java:413)
at com.intellij.lang.javascript.psi.resolve.JSEvaluateContext.processWithJSElementToApply(JSEvaluateContext.java:102)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addEvaluableOnlyType(JSTypeEvaluator.java:412)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doAddType(JSTypeEvaluator.java:306)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.doAddType(ES6TypeEvaluator.java:279)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:299)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addType(JSTypeEvaluator.java:290)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromDefExpr(JSTypeEvaluator.java:2654)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromElementResolveResult(JSTypeEvaluator.java:1920)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1531)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.addTypeFromResolveResult(JSTypeEvaluator.java:1477)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processRefExpr$30(JSTypeEvaluator.java:1451)
at com.intellij.lang.javascript.psi.resolve.JSEvaluateContext.processExpression(JSEvaluateContext.java:203)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processRefExpr(JSTypeEvaluator.java:1445)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doEvaluateTypes(JSTypeEvaluator.java:511)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$evaluateTypes$13(JSTypeEvaluator.java:484)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processWithEvaluationGuard$45(JSTypeEvaluator.java:2783)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processWithEvaluationGuard(JSTypeEvaluator.java:2777)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processItem(JSTypeEvaluator.java:2757)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.evaluateTypes(JSTypeEvaluator.java:484)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$evaluateCallExpressionTypes$19(JSTypeEvaluator.java:1028)
at com.intellij.lang.javascript.psi.resolve.JSEvaluateContext.processWithJSElementToApply(JSEvaluateContext.java:102)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.evaluateCallExpressionTypes(JSTypeEvaluator.java:1028)
at com.intellij.lang.ecmascript6.resolve.ES6TypeEvaluator.evaluateCallExpressionTypes(ES6TypeEvaluator.java:254)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doEvaluateTypes(JSTypeEvaluator.java:517)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$null$3(JSTypeEvaluator.java:185)
at com.intellij.lang.javascript.psi.resolve.JSEvaluatorComplexityTracker.resetComplexity(JSEvaluatorComplexityTracker.java:60)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$doEvaluateExpressionOrElementTypes$4(JSTypeEvaluator.java:182)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.doEvaluateExpressionOrElementTypes(JSTypeEvaluator.java:181)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$static$0(JSTypeEvaluator.java:96)
at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:45)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:35)
at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:93)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$getElementType$5(JSTypeEvaluator.java:239)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.lambda$processWithEvaluationGuard$45(JSTypeEvaluator.java:2783)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.runWithRecursionGuard(JSTypeEvaluator.java:2802)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.processWithEvaluationGuard(JSTypeEvaluator.java:2777)
at com.intellij.lang.javascript.psi.resolve.JSTypeEvaluator.getElementType(JSTypeEvaluator.java:237)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.getElementJSType(JSResolveUtil.java:189)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.getExpressionJSType(JSResolveUtil.java:182)
at com.intellij.lang.javascript.validation.ValidateTypesUtil.checkTypesInComparison(ValidateTypesUtil.java:317)
at com.intellij.lang.javascript.inspections.JSIncompatibleTypesComparisonInspection$1.visitJSBinaryExpression(JSIncompatibleTypesComparisonInspection.java:23)
at com.intellij.lang.javascript.psi.impl.JSBinaryExpressionImpl.accept(JSBinaryExpressionImpl.java:75)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:75)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$null$8(LocalInspectionsPass.java:319)
at com.intellij.util.AstLoadingFilter.lambda$toComputable$2(AstLoadingFilter.java:169)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:127)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:116)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:111)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitRestElementsAndCleanup$9(LocalInspectionsPass.java:318)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116)
at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96)
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.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
2019-07-08 08:28:45,645 [1644344] ERROR - aemon.impl.PassExecutorService - WebStorm 2019.1.3 Build #WS-191.7479.14
2019-07-08 08:28:45,645 [1644344] ERROR - aemon.impl.PassExecutorService - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-07-08 08:28:45,645 [1644344] ERROR - aemon.impl.PassExecutorService - OS: Windows 10
2019-07-08 08:28:45,645 [1644344] ERROR - aemon.impl.PassExecutorService - Last Action: SaveAll
2019-07-08 08:28:49,284 [1647983] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 19 ms
2019-07-08 08:29:48,739 [1707438] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 27 ms

Please sign in to leave a comment.