From e4c0282b8c2afa68652227992a223b1a9aab2c54 Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Sun, 21 Jan 2024 17:07:00 +0100 Subject: [PATCH] rescue system limit error --- lib/elixir_sense/core/introspection.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/elixir_sense/core/introspection.ex b/lib/elixir_sense/core/introspection.ex index df51493e..10d47d36 100644 --- a/lib/elixir_sense/core/introspection.ex +++ b/lib/elixir_sense/core/introspection.ex @@ -880,6 +880,13 @@ defmodule ElixirSense.Core.Introspection do # erlang module or `Elixir` mod end + rescue + e in SystemLimitError -> + Logger.warning( + "Unable to expand alias #{inspect(mod)}; env aliases #{inspect(aliases)}: #{Exception.blame(:error, e, __STACKTRACE__)}" + ) + + mod end @spec actual_mod_fun(