ElixirLS does not suggest Typespecs OTP 25/Elixir 1.13.4

Hi, recently I updated my elixir and OTP to the latest version with asdf, after that ElixirLS does not suggest me any Typespecs

Screen Shot 2022-06-25 at 12.47.10

How can I fix this?
Thank you in advance.

Erlang/OTP 25 [erts-13.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Elixir 1.13.4 (compiled with Erlang/OTP 25)
Mac os 12.4
1 Like

Recompile (reinstall) elixirLSP, and remove the folder .elixir_ls in your project folder. Should work :slight_smile:

I reinstalled in VScode but it did not fix this
in output of elixirLS I can see

12:58:19.663 [error] Process #PID<0.204.0> raised an exception
** (ErlangError) Erlang error: {:badrecord, {:analysis, :undefined, :succ_typings, [], :undefined, ['/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.Collectable.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.Enumerable.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.IEx.Info.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.Inspect.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.List.Chars.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/consolidated/Elixir.String.Chars.beam', '/Users/shahryar/Desktop/tozz/.elixir_ls/build/test/lib/tozz/ebin/Elixir.Tozz.beam'], [], :byte_code, {:plt, #Reference<0.2453210251.306053124.20267>, #Reference<0.2453210251.306053124.20269>, #Reference<0.2453210251.306053124.20268>, #Reference<0.2453210251.306053124.20270>, #Reference<0.2453210251.306053124.20271>}, true, false, false, false, :none, [], []}}
2 Likes

Had the same issue, wich I fixed downgrading to erlang erlang-24.3.2-3-x86_64.pkg.tar.zst found in my arch /var/cache/pacman/pkg dir …

1 Like

I has the same issue on my M1 Max, I forked and recompiled ElixirLS with OTP 25/Elixir 1.13.4 now it works.

1 Like