From dace8526919b1f9737b61ec37c408560322c4fdd Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Wed, 18 Oct 2023 21:10:36 -0400 Subject: [PATCH] fix(hover): use String.to_atom/1 Erlang modules from dependencies will not have been loaded on the LSP node, so the atoms of their module names will not have been created yet --- lib/next_ls.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/next_ls.ex b/lib/next_ls.ex index 2d78b242..93ac960a 100644 --- a/lib/next_ls.ex +++ b/lib/next_ls.ex @@ -317,7 +317,7 @@ defmodule NextLS do [reference] -> mod = if reference.module == String.downcase(reference.module) do - String.to_existing_atom(reference.module) + String.to_atom(reference.module) else Module.concat([reference.module]) end