erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
632 stars 137 forks source link

Compiling _build/default/plugins/katana_code/src/ktn_code.erl failed #1532

Open fcbry opened 2 months ago

fcbry commented 2 months ago

Describe the bug

Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns] Version 0.52.0 Fails to compile (log attached)

Checked out the repository (tag 0.52.0), was able to repeat same issue. Checked out the latest version main (a71c3d76ddf17c1885d3f9b0e3932a86d00a0fd8) bug is fixed.

Y'all need to get a release out and update Mason registry 💌

To Reproduce Nvim - Mason - install latest erlang_ls (0.52.0) - fail

Expected behavior It would compile

Actual behavior If fails to compile

Context

nvim-erlang-lsp-install-fail.txt

trevin-j commented 2 months ago

Running into the same frustrating issue. Seeing that we can specify a version when installing via Mason, can we just install erlang_ls at main rather than 0.52.0? I tried 0.51.0 but had this issue on that version as well. Is this due to a recent change in katana_code?

Just tried it, if you're using mason just do :MasonInstall erlang-ls@main and it should successfully install.

plux commented 2 months ago

We have now released 0.53.0. There seems to be an automatic bump in the mason registry here: https://github.com/mason-org/mason-registry/pull/7257

However it seems like setup-beam fails to run rebar3 on some jobs (linux_x64) for example.