zio / zio-intellij

A companion IntelliJ IDEA plugin for the ZIO library ecosystem.
Apache License 2.0
214 stars 41 forks source link

Unhandled exception: java.lang.NoSuchMethodError: 'java.lang.String org.jetbrains.plugins.scala.codeInspection.collections.package$.invocationText(org.jetbrains.plugins.scala.lang.psi.api.expr.ScExpression, java.lang.String, scala.collection.immutable.Seq)' #486

Closed msrevvity closed 1 month ago

msrevvity commented 1 month ago

The following exceptions(s) occurred in the ZIO for IntelliJ plugin:

java.lang.NoSuchMethodError: 'java.lang.String org.jetbrains.plugins.scala.codeInspection.collections.package$.invocationText(org.jetbrains.plugins.scala.lang.psi.api.expr.ScExpression, java.lang.String, scala.collection.immutable.Seq)'
    at zio.intellij.inspections.simplifications.BaseZipToSucceedSimplificationType.simplify(SimplifyZipInspection.scala:60)
    at zio.intellij.inspections.simplifications.ZipRightToSucceedSimplificationType$.getSimplification(SimplifyZipInspection.scala:67)
    at zio.intellij.inspections.ZInspection.$anonfun$simplifications$4(ZInspection.scala:50)
    at scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:118)
    at scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:105)
    at scala.collection.immutable.ArraySeq.flatMap(ArraySeq.scala:35)
    at zio.intellij.inspections.ZInspection.simplifications(ZInspection.scala:50)
    at zio.intellij.inspections.ZInspection.zio$intellij$inspections$ZInspection$$$anonfun$buildVisitor$1(ZInspection.scala:30)
    at zio.intellij.inspections.ZInspection$$anonfun$buildVisitor$3.visitPsiElement(ZInspection.scala:28)
    at org.jetbrains.plugins.scala.codeInspection.package$PsiElementVisitorSimple.visitElement(package.scala:100)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:270)
    at org.jetbrains.plugins.scala.lang.psi.impl.ScalaPsiElementImpl.org$jetbrains$plugins$scala$lang$psi$api$ScalaPsiElement$$super$accept(ScalaPsiElementImpl.scala:23)
    at org.jetbrains.plugins.scala.lang.psi.api.ScalaPsiElement.accept(ScalaPsiElement.scala:108)
    at org.jetbrains.plugins.scala.lang.psi.api.ScalaPsiElement.accept$(ScalaPsiElement.scala:106)
    at org.jetbrains.plugins.scala.lang.psi.impl.ScalaPsiElementImpl.accept(ScalaPsiElementImpl.scala:23)
    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.execAll(ApplierCompleter.java:166)
    at com.intellij.concurrency.ApplierCompleter.lambda$exec$0(ApplierCompleter.java:105)
    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)

Additional information:

ZIO plugin version: 2024.2.34.3 Scala plugin version: 2024.2.608 ZIO version(s): 2.0.22, 2.0.22 Scala version(s): 3.3.0, 2.12.17 sbt version: 1.6.2 IntelliJ version: IntelliJ IDEA 2024.2.3 Build #IU-242.23339.11 Java version: 21.0.4+13-b509.17 Operating System: aarch64 Mac OS X (15.0.1, aarch64) JVM version: OpenJDK 64-Bit Server VM JetBrains s.r.o.
github-actions[bot] commented 1 month ago

If you came here through the Intellij error reporter, there's a high probability that the issue was already reported. Please check the following list and if you find the same issue already reported, please add any additional information there, and close this issue. Potential duplicates:

hmemcpy commented 1 month ago

I pushed an update that pulls this "missing" method into the plugin, so hopefully it should solve the problem. It should be available soon, but you can also manually install it from https://plugins.jetbrains.com/plugin/download?rel=true&updateId=619133