IntelliJ Elixir 10.5.1
-
Numerous users have reported that annotation can encounter a
StackOverflowError
. A reproduction case shows that they are called by PhoenixWeb
modules where one function containingquote
blockuse
s the same module again, such as anadmin_view
depending on the baseview
throughuse App.Web, :view
. When theuse App.Web, :view
is resolving, thedefmacro __using__
is re-entered as is theadmin_view
because there was no tracking of already visitedPsiElement
s. The fix is to track the visited elements and not re-enter the visited elements so thatadmin_view
is skipped and the other call definition clauses can be checked to findview
.
Read next Configuring Distillery