vkryukov
Problems compiling elixir-ls
Hi, I have some challenges compiling elixir-ls. I’m using Erlang 28.1.1 and Elixir 1.19.2-otp-28 installed with mise on Omarchy 3.1.5. using the latest nvim/lazyvim, I can see the following error generated in the logs in ~/.local/state/nvim/lsp.log.
[ERROR][2025-11-04 11:56:04] ...p/_transport.lua:36 "rpc" "elixir-ls" "stderr" "==> elixir_ls_utils\nCompiling 10 files (.ex)\n"
[ERROR][2025-11-04 11:56:04] ...p/_transport.lua:36 "rpc" "elixir-ls" "stderr" " error: ElixirSense.Core.Metadata.__struct__/1 is undefined, cannot expand struct ElixirSense.Core.Metadata. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code\n │\n 7 │ def get_field_types(%Metadata{} = metadata, mod, include_private) when is_atom(mod) do\n │ ^\n │\n └─ lib/field.ex:7:23: ElixirLS.Utils.Field.get_field_types/3\n\n"
[ERROR][2025-11-04 11:56:04] ...p/_transport.lua:36 "rpc" "elixir-ls" "stderr" "\n== Compilation error in file lib/field.ex ==\n** (CompileError) lib/field.ex: cannot compile module ElixirLS.Utils.Field (errors have been logged)\n (stdlib 7.1) lists.erl:2466: :lists.foldl/3\n"
[ERROR][2025-11-04 11:56:04] ...p/_transport.lua:36 "rpc" "elixir-ls" "stderr" '==> elixir_ls\ncould not compile dependency :elixir_ls, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile elixir_ls --force", update it with "mix deps.update elixir_ls" or clean it with "mix deps.clean elixir_ls"\n'
Any idea what might be going on here?
Also, related question: is elixir-ls still supported, and is it better to switch to expert from now on? What are the pros and cons of using expert vs elixir-ls nowadays?
Marked As Solved
vkryukov
Nevermind, I was able to resolve this problem by uninstalling and installing the elixir-ls via Mason from inside nvim:
:MasonUninstall elixir-ls
:MasonInstall elixir-ls
1
Popular in Questions
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
I would like to know what is the best IDE for elixir development?
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
Student & New to elixir. Nice language.
I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
I want to know absolute current module path. In python i could do that: os.path.abspath(__file__) Does elixir have anything similar?
New
Hi all
I want to have a unix time, from the current time plus 1 hour.
DateTime.now + 1 hour
How to get it in elixir?
Thanks
New
Expanding on this topic: https://forum.elixirforum.net/t/map-typespec-question/19217
Let’s say I have a map with required and optional k...
New
Other popular topics
Manning 2016 Halloween weekend sale via Deal of the Day
Friday, October 28 - Half off all MEAPs - code WM102816LT
Saturday, October 29 ...
New
Phoenix 1.4.0 released
Phoenix 1.4 is out! This release ships with exciting new features, most notably
with HTTP2 support, improved deve...
New
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New








