KronicDeth / intellij-elixir

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

Don't know how to find variable use scope at org.elixir_lang.reference.Callable$Companion.error(Callable.kt:419) #2389

Open imcvampire opened 2 years ago

imcvampire commented 2 years ago

System

Plugin Version: 12.0.1 Application: IntelliJ IDEA Ultimate Edition (2021.2) Operating System: Mac OS X (12.0.1)

Event

Message

Excerpt

<%= render Web.FragmentView, "title.html", title= "haha" %>

From: /lib/web/templates/page/index.html.heex:4 To: /lib/web/templates/page/index.html.heex:4

Element Class Name

org.elixir_lang.psi.impl.ElixirEexTagImpl

Exception

Stacktrace

java.lang.Throwable: Don't know how to find variable use scope
    at org.elixir_lang.errorreport.Logger.error(Logger.kt:43)
    at org.elixir_lang.errorreport.Logger.error(Logger.kt:25)
    at org.elixir_lang.reference.Callable$Companion.error(Callable.kt:419)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:573)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:485)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:566)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:523)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:564)
    at org.elixir_lang.reference.Callable$Companion.variableUseScope(Callable.kt:416)
    at org.elixir_lang.psi.impl.declarations.UseScopeImpl.get(UseScopeImpl.kt:119)
    at org.elixir_lang.psi.impl.ElixirPsiImplUtil.getUseScope(ElixirPsiImplUtil.java:991)
    at org.elixir_lang.psi.impl.ElixirMatchedUnqualifiedNoArgumentsCallImpl.getUseScope(ElixirMatchedUnqualifiedNoArgumentsCallImpl.java:100)
KronicDeth commented 2 years ago

Not that I think it affects the bug report, but so you're aware, the EEx support only supports the EEx tags if you use it on .heex. It won't support the new HEEx-only syntax. That needs to be added in #2102.