Closed shirotech closed 3 years ago
Here's another one I encountered
java.lang.IllegalStateException: jsElement must not be null
at dev.blachut.svelte.lang.codeInsight.SvelteTypeScriptReferenceExpressionResolver.resolve(SvelteTypeScriptReferenceExpressionResolver.kt:35)
at dev.blachut.svelte.lang.codeInsight.SvelteTypeScriptReferenceExpressionResolver.resolve(SvelteTypeScriptReferenceExpressionResolver.kt:13)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.lambda$resolve$11(JSResolveUtil.java:2013)
at com.intellij.lang.javascript.psi.resolve.JSComplexityAwareRecursionGuard.lambda$getCachedValue$1(JSComplexityAwareRecursionGuard.java:59)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil$7.lambda$calculateWithCaching$0(JSResolveUtil.java:2019)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolve$1(ResolveCache.java:155)
at com.intellij.openapi.util.Computable.get(Computable.java:17)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$3(ResolveCache.java:227)
at com.intellij.openapi.util.Computable.get(Computable.java:17)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:205)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:155)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:256)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil$7.calculateWithCaching(JSResolveUtil.java:2017)
at com.intellij.lang.javascript.psi.resolve.JSComplexityAwareRecursionGuard.getCachedValue(JSComplexityAwareRecursionGuard.java:63)
at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.resolve(JSResolveUtil.java:2011)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.multiResolve(JSReferenceExpressionImpl.java:521)
at com.intellij.lang.typescript.inspection.TypeScriptLibraryInspection.processReference(TypeScriptLibraryInspection.java:64)
at com.intellij.lang.typescript.inspection.TypeScriptLibraryInspection.access$000(TypeScriptLibraryInspection.java:41)
at com.intellij.lang.typescript.inspection.TypeScriptLibraryInspection$1.visitJSReferenceExpression(TypeScriptLibraryInspection.java:58)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:509)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:65)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:56)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:294)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$3(LocalInspectionsPass.java:263)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:155)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:147)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:262)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:126)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:115)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:262)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:162)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:162)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1110)
at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:117)
at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:170)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:182)
at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96)
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Bad day for plugin 😓
@shirotech I have no idea what happened yet, thanks for reporting. I see PasteHandler
so you probably pasted something specific hmm.
@unlocomqx yeah missing null check. I'll try to release something today (tomorrow in Marketplace)
No big deal, It's been a huge help as I refactor my apps!
Both fixed (I hope)
Yes, I can confirm that it fixed the error that I reported, Thank you!
I still have this error:
java.lang.IllegalStateException: jsElement must not be null at dev.blachut.svelte.lang.codeInsight.SvelteTypeScriptReferenceExpressionResolver.resolve(SvelteTypeScriptReferenceExpressionResolver.kt:35) at dev.blachut.svelte.lang.codeInsight.SvelteTypeScriptReferenceExpressionResolver.resolve(SvelteTypeScriptReferenceExpressionResolver.kt:13) at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.lambda$resolve$11(JSResolveUtil.java:2013) at com.intellij.lang.javascript.psi.resolve.JSComplexityAwareRecursionGuard.lambda$getCachedValue$1(JSComplexityAwareRecursionGuard.java:59) at com.intellij.lang.javascript.psi.resolve.JSResolveUtil$7.lambda$calculateWithCaching$0(JSResolveUtil.java:2019) at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolve$1(ResolveCache.java:155) at com.intellij.openapi.util.Computable.get(Computable.java:17) at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$3(ResolveCache.java:227) at com.intellij.openapi.util.Computable.get(Computable.java:17) at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:205) at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:155) at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:256) at com.intellij.lang.javascript.psi.resolve.JSResolveUtil$7.calculateWithCaching(JSResolveUtil.java:2017) at com.intellij.lang.javascript.psi.resolve.JSComplexityAwareRecursionGuard.getCachedValue(JSComplexityAwareRecursionGuard.java:63) at com.intellij.lang.javascript.psi.resolve.JSResolveUtil.resolve(JSResolveUtil.java:2011) at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.multiResolve(JSReferenceExpressionImpl.java:521) at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.resolve(JSReferenceExpressionImpl.java:142) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor.valueRead(JSControlFlowProcessor.java:346) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor.processInstruction(JSControlFlowProcessor.java:138) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor$2.fun(JSControlFlowProcessor.java:84) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor$2.fun(JSControlFlowProcessor.java:67) at com.intellij.codeInsight.dataflow.DFAEngine.applyTransferFunction(DFAEngine.java:129) at com.intellij.codeInsight.dataflow.DFAEngine.performDFA(DFAEngine.java:80) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor.processInstructions(JSControlFlowProcessor.java:97) at com.intellij.lang.javascript.inspection.dataflow.JSControlFlowProcessor.processControlFlow(JSControlFlowProcessor.java:127) at com.intellij.lang.javascript.inspection.JSUnusedAssignmentInspection$1.processDataFlow(JSUnusedAssignmentInspection.java:81) at com.intellij.lang.javascript.inspection.JSUnusedAssignmentInspection$1.visitJSFunctionDeclaration(JSUnusedAssignmentInspection.java:60) at com.intellij.lang.javascript.inspection.JSUnusedAssignmentInspection$1.visitJSFunctionExpression(JSUnusedAssignmentInspection.java:55) at com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl.accept(JSFunctionExpressionImpl.java:52) at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:65) at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:56) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:296) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$3(LocalInspectionsPass.java:265) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:155) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:147) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:264) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:126) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:115) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:264) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:149) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:162) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1110) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:117) at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:170) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:182) at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
Also quite big slowdown and CPU usage spikes.
@vedmant Did you install update from GitHub? It's not yet available in the Plugin Repository
@tomblachut No it was from Plugin Repository, I'll try to install from here, when it can be available in Plugin Repository? As I understand if I install from here it will not auto update?
@vedmant It's pending approval, I've installed it many times from github, and can confirm it will still detect new updates.
Update: actually it just got approved very recently.
Update is actually already available
On Sat, Oct 31, 2020, 7:01 PM Van Nguyen notifications@github.com wrote:
@vedmant https://github.com/vedmant It's pending approval, I've installed it many times from github, and can confirm it will still detect new updates.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tomblachut/svelte-intellij/issues/170#issuecomment-719960342, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGRP5UKBV2T5PWG7K2JMRDSNQ7FFANCNFSM4TDGIKFA .
Yes, IDE updates are version based, as long as you don't bump version manually when building from master, you'll get notifications about later versions
@vedmant sadly I don't control time of release in the Plugin Repository/Marketplace. I just upload the build and it's published after verification by staff, usually after less than 24h during the week
Not sure what caused this stacktrace, hope this will be useful.