IntelliJ Elixir 10.5.1
-
Numerous users have reported that annotation can encounter a
StackOverflowError. A reproduction case shows that they are called by PhoenixWebmodules where one function containingquoteblockuses the same module again, such as anadmin_viewdepending on the baseviewthroughuse App.Web, :view. When theuse App.Web, :viewis resolving, thedefmacro __using__is re-entered as is theadmin_viewbecause there was no tracking of already visitedPsiElements. The fix is to track the visited elements and not re-enter the visited elements so thatadmin_viewis skipped and the other call definition clauses can be checked to findview.
Read next Configuring Distillery
