KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.83k stars 153 forks source link

Don't know how process element as type at org.elixir_lang.psi.scope.Type$Companion.error(Type.kt:202) #2989

Closed twallgren closed 1 year ago

twallgren commented 1 year ago

System

Plugin Version: 12.2.1 Application: IntelliJ IDEA Ultimate Edition (2021.2.4) Operating System: Mac OS X (12.6.2)

Event

Message

Excerpt

def __info__(p0) do
    # body not decompiled
  end

From: <redacted>/_build/dev/lib/ecto/ebin/Elixir.Ecto.Changeset.beam:288 To: <redacted>/_build/dev/lib/ecto/ebin/Elixir.Ecto.Changeset.beam:290

Element Class Name

org.elixir_lang.beam.psi.impl.CallDefinitionImpl

Exception

Stacktrace

java.lang.Throwable: Don't know how process element as type
    at org.elixir_lang.errorreport.Logger.error(Logger.kt:43)
    at org.elixir_lang.errorreport.Logger.error(Logger.kt:25)
    at org.elixir_lang.psi.scope.Type$Companion.error(Type.kt:202)
    at org.elixir_lang.psi.scope.Type.execute(Type.kt:49)
    at org.elixir_lang.psi.scope.Type$execute$1.invoke(Type.kt:84)
    at org.elixir_lang.psi.scope.Type$execute$1.invoke(Type.kt:84)
    at org.elixir_lang.psi.Import.treeWalkUpImportedModularChildExpression(Import.kt:158)
    at org.elixir_lang.psi.Import.treeWalkUpImportedModular(Import.kt:109)
    at org.elixir_lang.psi.Import.treeWalkUpImportedModular(Import.kt:82)
    at org.elixir_lang.psi.Import.treeWalkUp(Import.kt:62)
    at org.elixir_lang.psi.QuoteMacro.treeWalkUp(QuoteMacro.kt:43)
    at org.elixir_lang.psi.QuoteMacro.treeWalkUp(QuoteMacro.kt:18)
    at org.elixir_lang.psi.Using.treeWalkUpFromLastChildCall(Using.kt:59)
    at org.elixir_lang.psi.Using.treeWalkUp(Using.kt:44)
    at org.elixir_lang.psi.Using.treeWalkUp(Using.kt:27)
    at org.elixir_lang.psi.Use.treeWalkUp(Use.kt:39)
    at org.elixir_lang.psi.scope.Type.execute(Type.kt:84)
    at org.elixir_lang.psi.scope.Type.execute(Type.kt:70)
    at org.elixir_lang.psi.scope.Type.execute(Type.kt:36)
    at org.elixir_lang.psi.impl.ProcessDeclarationsImpl.processDeclarations(ProcessDeclarationsImpl.kt:147)
    at org.elixir_lang.psi.impl.ElixirPsiImplUtil.processDeclarations(ElixirPsiImplUtil.java:600)
    at org.elixir_lang.psi.impl.ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.processDeclarations(ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java:156)
    at com.intellij.psi.util.PsiTreeUtil.treeWalkUp(PsiTreeUtil.java:1218)
    at org.elixir_lang.psi.scope.type.MultiResolve$Companion.resolveResults(MultiResolve.kt:184)
    at org.elixir_lang.psi.scope.type.MultiResolve$Companion.resolveResults$default(MultiResolve.kt:176)
    at org.elixir_lang.reference.resolver.Type.resolve(Type.kt:32)
    at org.elixir_lang.reference.resolver.Type.resolve(Type.kt:21)
    at org.elixir_lang.reference.resolver.Type.resolve(Type.kt:16)
    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.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:238)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:154)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:169)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:162)
    at org.elixir_lang.reference.Type.multiResolve(Type.kt:19)
    at org.elixir_lang.ReferenceKt.safeMultiResolve(reference.kt:16)
    at org.elixir_lang.annotator.Callable$annotate$1.visitPlainCall(Callable.kt:97)
    at org.elixir_lang.annotator.Callable$annotate$1.visitNonModuleAttributeCall(Callable.kt:87)
    at org.elixir_lang.annotator.Callable$annotate$1.visitCall(Callable.kt:47)
    at org.elixir_lang.annotator.Callable$annotate$1.visitElement(Callable.kt:78)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:273)
    at org.elixir_lang.psi.impl.ElixirUnmatchedQualifiedParenthesesCallImpl.accept(ElixirUnmatchedQualifiedParenthesesCallImpl.java:38)
    at org.elixir_lang.annotator.Callable.annotate(Callable.kt:39)

Attachments

<redacted>/_build/dev/lib/ecto/ebin/Elixir.Ecto.Changeset.beam

Please copy the contents of the above path into this report: files are too long to include in the URL when opening the browser. You can get the exact contents of that path when the error occurred from the Attachments tab of the IDE Fatal Errors dialog that you had open before clicking the button to submit this issue.

twallgren commented 1 year ago

Elixir.Ecto.Changeset.beam.zip

KronicDeth commented 1 year ago

Duplicate of https://github.com/KronicDeth/intellij-elixir/issues/2596

KronicDeth commented 1 year ago

Fixed in #2645. Update to 13.1.0 or later to get the fix.