KronicDeth / intellij-elixir

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

After upgrading to Elixir 1.15.2, Erlang/OTP 26, Can not jump to String module functions by control + click #3309

Open odk211 opened 1 year ago

odk211 commented 1 year ago

System

Plugin Version: 15.0.2-pre+20230609212153 Application: IntelliJ IDEA Ultimate Edition (2023.1.3) Operating System: Mac OS X (12.6.7) Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns] Elixir 1.15.2 (compiled with Erlang/OTP 26)

Event

After upgrading to Elixir 1.15.2, Erlang/OTP 26, Can not jump to String module functions by control + click.(Exception occurred) In my case, I can not jump String.valid? and other function. (Can jump to String module)

defmodule A do
  defp join(list) do
    Enum.map_join(list, " ", &if(String.valid?(&1), do: &1, else: "..."))
  end
end

I'm not sure this is related, but It seems failed to parse module doc of String module.

スクリーンショット 2023-07-07 10 47 15

Exception

Stacktrace

java.lang.NullPointerException: mirror must not be null ``` java.lang.NullPointerException: mirror must not be null at org.elixir_lang.beam.psi.impl.CallDefinitionImpl.getNavigationElement(CallDefinitionImpl.kt:70) at com.intellij.codeInsight.navigation.impl.CommonKt.gtdTargetNavigatable(common.kt:38) at com.intellij.codeInsight.navigation.impl.TargetGTDActionData.extractSingleTargetResult(gtd.kt:102) at com.intellij.codeInsight.navigation.impl.TargetGTDActionData.result(gtd.kt:69) at com.intellij.codeInsight.navigation.impl.GtduKt.toGTDUActionData(gtdu.kt:70) at com.intellij.codeInsight.navigation.impl.GtduKt.fromTargetData(gtdu.kt:64) at com.intellij.codeInsight.navigation.impl.GtduKt.gotoDeclarationOrUsagesInner(gtdu.kt:59) at com.intellij.codeInsight.navigation.impl.GtduKt.access$gotoDeclarationOrUsagesInner(gtdu.kt:1) at com.intellij.codeInsight.navigation.impl.GtduKt$gotoDeclarationOrUsages$1.invoke(gtdu.kt:20) at com.intellij.codeInsight.navigation.impl.GtduKt$gotoDeclarationOrUsages$1.invoke(gtdu.kt:20) ```
odk211 commented 1 year ago

Attach Elixir.String.beam Elixir.String.beam.zip