djblue / portal

A clojure tool to navigate through your data.
https://djblue.github.io/portal/
MIT License
905 stars 83 forks source link

java.lang.IllegalStateException: Attempting to call unbound fn: #'cursive.inspections.list/namespace-differs-from-package #240

Open devurandom opened 2 months ago

devurandom commented 2 months ago

IntelliJ gives me an "IDE Internal Errors" report for "Exception in plugin Portal Inspector (0.57.3)" with following stack trace:

java.lang.IllegalStateException: Attempting to call unbound fn: #'cursive.inspections.list/namespace-differs-from-package
    at clojure.lang.Var$Unbound.throwArity(Var.java:47)
    at clojure.lang.AFn.invoke(AFn.java:40)
    at clojure.lang.Var.invoke(Var.java:395)
    at cursive.api.DelayedFn.invoke(DelayedFn.java:41)
    at cursive.inspections.ClListInspection$buildVisitor$1.visitList(Inspections.kt:73)
    at cursive.psi.impl.list.ClListImpl.accept(ClListImpl.java:25)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.visitElement(InspectionRunner.java:544)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processContext$19(InspectionRunner.java:370)
    at com.intellij.codeInsight.daemon.impl.InspectionVisitorOptimizer.acceptElements(InspectionVisitorOptimizer.java:197)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.processContext(InspectionRunner.java:368)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$7(InspectionRunner.java:169)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:279)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$16(InspectionRunner.java:349)
    at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:158)
    at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:150)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$17(InspectionRunner.java:340)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:129)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:118)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.executeInImpatientReadAction(InspectionRunner.java:340)
    at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$8(InspectionRunner.java:167)
    at com.intellij.concurrency.ApplierCompleter.processArrayItem(ApplierCompleter.java:116)
    at com.intellij.concurrency.ApplierCompleter.processArray(ApplierCompleter.java:196)
    at com.intellij.concurrency.ApplierCompleter.helpOthers(ApplierCompleter.java:215)
    at com.intellij.concurrency.ApplierCompleter.helpAll(ApplierCompleter.java:176)
    at com.intellij.concurrency.ApplierCompleter.lambda$exec$0(ApplierCompleter.java:106)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:291)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:965)
    at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$2(ApplierCompleter.java:148)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:159)
    at com.intellij.concurrency.ApplierCompleter.lambda$wrapAndRun$1(ApplierCompleter.java:140)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.executeByImpatientReader(AnyThreadWriteThreadingSupport.kt:486)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:178)
    at com.intellij.concurrency.ApplierCompleter.wrapAndRun(ApplierCompleter.java:140)
    at com.intellij.concurrency.ApplierCompleter.exec(ApplierCompleter.java:108)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

Not sure whether IntelliJ is right and I am reporting this to the right place. Cursive is at version 1.14.0-eap1-2024.2.

djblue commented 1 month ago

@devurandom I don't see any portal namespaces in this stack trace šŸ¤”

devurandom commented 1 month ago

@devurandom I don't see any portal namespaces in this stack trace šŸ¤”

Yes, that was confusing me, too:

Not sure whether IntelliJ is right and I am reporting this to the right

But IntelliJ attributed the error to Portal, so I thought I'd come here first.

If this does not make sense to you, either, I'll move the report to Cursive and see whether the stacktrace makes sense to Colin. Maybe he even has an idea why IntelliJ thinks this is an error in the Portal plugin...

djblue commented 1 month ago

I'll try and see if I can reproduce it but it might not hurt to ping Colin as well. I know very little when it comes to IntelliJ šŸ˜‚