Skip to content

Commit 67501bc

Browse files
author
José Valim
committed
Avoid non-fixed table errors on autocomplete
1 parent 1f05e7c commit 67501bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/iex/lib/iex/autocomplete.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,17 @@ defmodule IEx.Autocomplete do
177177
end
178178

179179
defp get_modules_from_applications do
180-
for {app, _, _} <- :application.loaded_applications(),
180+
for [app] <- loaded_applications(),
181181
{_, modules} = :application.get_key(app, :modules),
182182
module <- modules do
183183
Atom.to_string(module)
184184
end
185185
end
186186

187+
defp loaded_applications do
188+
:ets.match(:ac_tab, {{:loaded, :"$1"}, :_})
189+
end
190+
187191
defp match_module_funs(mod, hint) do
188192
case ensure_loaded(mod) do
189193
{:module, _} ->

0 commit comments

Comments
 (0)