Hey there, I can no longer start expert from Zed editor on my system (whatever the project)
It used to work perfectly for weeks and I don't know what environment change is messing with the LSP.
10:39:17.161 [notice] Application hex exited: exited in: Hex.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (ArgumentError) The module Hex.State was given as a child to a supervisor but it does not exist
expert_erts-15.2.7_0.1.0-rc.2
erlang 28.2
elixir 1.19.4-otp-28
[Project file:///Users/cblavier/code/phenixdigital/phenix_displays] Using path: /Users/cblavier/Library/Application Support/.burrito/expert_erts-15.2.7_0.1.0-rc.2-ba10ae8/erts-15.2.7/bin:/Users/cblavier/Library/Application Support/.burrito/expert_erts-15.2.7_0.1.0-rc.2-ba10ae8/bin:/Users/cblavier/go/bin:/opt/homebrew/opt/mysql-client/bin:/Applications/Docker.app/Contents/Resources/bin/:/Applications/Postgres.app/Contents/Versions/18/bin:/Users/cblavier/.cargo/bin:/Users/cblavier/.local/bin:/Users/cblavier/bin:/Users/cblavier/.local/share/mise/installs/erlang/28.2/bin:/Users/cblavier/.local/share/mise/installs/elixir/1.19.4-otp-28/bin:/Users/cblavier/.local/share/mise/installs/elixir/1.19.4-otp-28/.mix/escripts:/Users/cblavier/.local/share/mise/installs/node/24.13.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin
[Project file:///Users/cblavier/code/phenixdigital/phenix_displays] Found elixir executable at /Users/cblavier/.local/share/mise/installs/elixir/1.19.4-otp-28/bin/elixir
[Project file:///Users/cblavier/code/phenixdigital/phenix_displays] Found erl executable at /Users/cblavier/.local/share/mise/installs/erlang/28.2/bin/erl
[Project file:///Users/cblavier/code/phenixdigital/phenix_displays] Finding or building engine
sent request server -> client window/workDoneProgress/create
sent notification server -> client $/progress
Building engine:
10:39:17.155 [error] beam/beam_load.c(594): Error loading function 'Elixir.Hex.State':print_invalid_config_error/2: op bs_add p x x u x:
please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version
Building engine:
10:39:17.158 [error] beam/beam_load.c(594): Error loading function 'Elixir.Hex.State':print_invalid_config_error/2: op bs_add p x x u x:
please re-compile this module with an Erlang/OTP 28 compiler or update your Erlang/OTP version
Building engine:
10:39:17.161 [notice] Application hex exited: exited in: Hex.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (ArgumentError) The module Hex.State was given as a child to a supervisor but it does not exist
(elixir 1.19.4) lib/supervisor.ex:814: Supervisor.init_child/1
(elixir 1.19.4) lib/enum.ex:1688: Enum."-map/2-lists^map/1-1-"/2
(elixir 1.19.4) lib/enum.ex:1688: Enum."-map/2-lists^map/1-1-"/2
(elixir 1.19.4) lib/supervisor.ex:800: Supervisor.init/2
(elixir 1.19.4) lib/supervisor.ex:724: Supervisor.start_link/2
(kernel 10.4.2) application_master.erl:299: :application_master.start_it_old/4
Building engine:
10:39:17.163 [notice] Application inets exited: :stopped
Building engine:
10:39:17.164 [notice] Application ssl exited: :stopped
Building engine:
10:39:17.164 [notice] Application public_key exited: :stopped
10:39:17.164 [notice] Application asn1 exited: :stopped
10:39:17.164 [notice] Application crypto exited: :stopped
Building engine: ==> engine
Building engine: Could not start Hex. Try fetching a new version with "mix local.hex" or uninstalling it with "mix archive.uninstall hex.ez"
Building engine: ** (MatchError) no match of right hand side value:
{:error,
{:hex,
{:bad_return,
{{Hex.Application, :start, [:normal, []]},
{:EXIT,
{%ArgumentError{
message: "The module Hex.State was given as a child to a supervisor but it does not exist"
},
[
{Supervisor, :init_child, 1, [file: ~c"lib/supervisor.ex", line: 814]},
{Enum, :"-map/2-lists^map/1-1-", 2, [file: ~c"lib/enum.ex", line: 1688]},
{Enum, :"-map/2-lists^map/1-1-", 2, [file: ~c"lib/enum.ex", line: 1688]},
{Supervisor, :init, 2, [file: ~c"lib/supervisor.ex", line: 800]},
{Supervisor, :start_link, 2, [file: ~c"lib/supervisor.ex", line: 724]},
{:application_master, :start_it_old, 4,
[file: ~c"application_master.erl", line: 299]}
]}}}}}}
(hex 2.3.1) lib/hex.ex:5: Hex.start/0
(mix 1.19.4) lib/mix/hex.ex:64: Mix.Hex.start/0
(mix 1.19.4) lib/mix/dep/loader.ex:193: Mix.Dep.Loader.with_scm_and_app/5
(mix 1.19.4) lib/mix/dep/loader.ex:145: Mix.Dep.Loader.to_dep/4
(elixir 1.19.4) lib/enum.ex:1688: Enum."-map/2-lists^map/1-1-"/2
(mix 1.19.4) lib/mix/dep/loader.ex:368: Mix.Dep.Loader.mix_children/3
(mix 1.19.4) lib/mix/dep/loader.ex:321: anonymous fn/5 in Mix.Dep.Loader.mix_dep/3
(mix 1.19.4) lib/mix/project.ex:557: Mix.Project.in_project/4
Hey there, I can no longer start expert from Zed editor on my system (whatever the project)
It used to work perfectly for weeks and I don't know what environment change is messing with the LSP.
The error:
My environment is :
The full stacktrace from Zed LSP logs:
Thanks for your help!