elixir-tools / elixir-tools.nvim

Neovim plugin for Elixir
MIT License
417 stars 31 forks source link

"Client 2 quit with exit code 1 and signal 0" when elixir file is opened #67

Closed philippseith closed 1 year ago

philippseith commented 1 year ago

Environment

Erlang/OTP 24 [erts-12.3.2.10] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit] Elixir 1.14.1 (compiled with Erlang/OTP 24) ElixirLS release v0.14.3 Ubuntu 20.04.6 LTS, x86 Language server: Installed automatically. See :LspInfo below.

Current behavior

When an elixir file is opened neovim reports Client 2 quit with exit code 1 and signal 0.

Logs

:LspInfo

Detected filetype:   elixir

 1 client(s) attached to this buffer: 

 Client: ElixirLS (id: 1, bufnr: [1])
    filetypes:       
    autostart:       false
    root directory:  /home/boschrexroth/wspc/elixir/rest_api
    cmd:             /home/boschrexroth/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.13.0/1.14.1-24/language_server.sh

 Configured servers list: gopls, clangd

:LspLog

[START][2023-04-19 18:55:10] LSP logging initiated
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "certifi" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:2:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "cowboy" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:3:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "cowboy_telemetry" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:4:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "cowlib" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:5:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "hackney" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:6:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "httpoison" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:7:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "idna" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:8:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "jason" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:9:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "metrics" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:10:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "mime" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:11:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "mimerl" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:12:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "parse_trans" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:13:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "plug" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:14:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "plug_cowboy" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:15:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "plug_crypto" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:16:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "plug_proxy" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:17:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "plug_static_index_html" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:18:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "ranch" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:19:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "reverse_proxy_plug" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:20:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "ssl_verify_fun" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:21:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "telemetry" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:22:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    'warning: found quoted keyword "unicode_util_compat" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores and not beginning with a number do not require quotes\n  mix.lock:23:4\n\n'
[ERROR][2023-04-19 18:55:10] .../vim/lsp/rpc.lua:733    "rpc"   "/home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    '** (MatchError) no match of right hand side value: {%{certifi: {:hex, :certifi, "2.9.0", "6f2a475689dd47f19fb74334859d460a2dc4e3252a3324bd2111b8f0429e7e21", [:rebar3], [], "hexpm", "266da46bdb06d6c6d35fde799bcb28d36d985d424ad7c08b5bb48f5b5cdd4641"}, cowboy: {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"}, cowboy_telemetry: {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, cowlib: {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"}, hackney: {:hex, :hackney, "1.18.1", "f48bf88f521f2a229fc7bae88cf4f85adc9cd9bcf23b5dc8eb6a1788c662c4f6", [:rebar3], [{:certifi, "~> 2.9.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "a4ecdaff44297e9b5894ae499e9a070ea1888c84afdd1fd9b7b2bc384950128e"}, httpoison: {:hex, :httpoison, "2.1.0", "655fd9a7b0b95ee3e9a3b535cf7ac8e08ef5229bab187fa86ac4208b122d934b", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "fc455cb4306b43827def4f57299b2d5ac8ac331cb23f517e734a4b78210a160c"}, idna: {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, jason: {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"}, metrics: {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, mime: {:hex, :mime, "2.0.3", "3676436d3d1f7b81b5a2d2bd8405f412c677558c81b1c92be58c00562bb59095", [:mix], [], "hexpm", "27a30bf0db44d25eecba73755acf4068cbfe26a4372f9eb3e4ea3a45956bff6b"}, mimerl: {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"}, parse_trans: {:hex, :parse_trans, "3.3.1", "16328ab840cc09919bd10dab29e431da3af9e9e7e7e6f0089dd5a2d2820011d8", [:rebar3], [], "hexpm", "07cd9577885f56362d414e8c4c4e6bdf10d43a8767abb92d24cbe8b24c54888b"}, plug: {:hex, :plug, "1.14.2", "cff7d4ec45b4ae176a227acd94a7ab536d9b37b942c8e8fa6dfc0fff98ff4d80", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "842fc50187e13cf4ac3b253d47d9474ed6c296a8732752835ce4a86acdf68d13"}, plug_cowboy: {:hex, :plug_cowboy, "2.6.1", "9a3bbfceeb65eff5f39dab529e5cd79137ac36e913c02067dba3963a26efe9b2", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "de36e1a21f451a18b790f37765db198075c25875c64834bcc82d90b309eb6613"}, plug_crypto: {:hex, :plug_crypto, "1.2.5", "918772575e48e81e455818229bf719d4ab4181fcbf7f85b68a35620f78d89ced", [:mix], [], "hexpm", "26549a1d6345e2172eb1c233866756ae44a9609bd33ee6f99147ab3fd87fd842"}, plug_proxy: {:hex, :plug_proxy, "0.4.0", "1701be9dc2aa2fea4fc5238974839d3ac227d1e035ef041570e6ad8650b1cd83", [:mix], [{:cowboy, "~> 1.0 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: false]}, {:hackney, "~> 1.10", [hex: :hackney, repo: "hexpm", optional: false]}, {:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "d74796aa504c0717fe45e7b49453d6df17e920a5ff52cb7a5aab5af65d5f4ace"}, plug_static_index_html: {:hex, :plug_static_index_html, "1.0.0", "840123d4d3975585133485ea86af73cb2600afd7f2a976f9f5fd8b3808e636a0", [:mix], [{:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "79fd4fcf34d110605c26560cbae8f23c603ec4158c08298bd4360fdea90bb5cf"}, ranch: {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, reverse_proxy_plug: {:hex, :reverse_proxy_plug, "2.2.0", "3c54f9c8e7c0a9559bc2f215990c03e68074d43f0facfd396930525e2b6a8a19", [:mix], [{:cowboy, "~> 2.4", [hex: :cowboy, repo: "hexpm", optional: false]}, {:httpoison, "~> 1.2 or ~> 2.0", [hex: :httpoison, repo: "hexpm", optional: true]}, {:plug, "~> 1.6", [hex: :plug, repo: "hexpm", optional: false]}, {:tesla, "~> 1.4", [hex: :tesla, repo: "hexpm", optional: true]}], "hexpm", "391a6307188fef99deed033e2d636e7d42d565576ca4cb1c0b2322e5939b7997"}, ssl_verify_fun: {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, telemetry: {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, unicode_util_compat: {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}}, []}\n    /home/boschrexroth/.local/share/nvim/site/pack/paqs/start/elixir-tools.nvim/bin/credo-language-server:5: (file)\n    (elixir 1.14.1) lib/code.ex:1245: Code.require_file/2\n'
philippseith commented 1 year ago

is this connected to https://github.com/elixir-lsp/elixir-ls/issues/871?

mhanberg commented 1 year ago

is this connected to elixir-lsp/elixir-ls#871?

no

mhanberg commented 1 year ago

it looks like you don't have credo installed and in your lockfile.

but do you have it in your mix.exs? the plugin checks for the presence of it in your mix.exs file and doesn't launch if it's not there, so then it will assume it's in your mix.lock

philippseith commented 1 year ago

I don't have credo in mix.exs or mix.lock. It happens with

mix new minimal
cd minimal
nvim mix.exs

When credo is added and run once, the message is gone.
Even if credo is a great tool, it should be optional and the plugin should work without warnings.

mhanberg commented 1 year ago

It is not supposed to even start the credo language server if credo isn't found, which is why I asked.

I'll see if I can replicate.

mhanberg commented 1 year ago

I was able to reproduce, this must be a regression. Thanks for the report.

yuriploc commented 1 year ago

I see the same error message when opening an umbrella project.

I have credo in mix.exs under project/services/mix.exs. As I'm an nvim newbie, please advise if there's any additional information needed or if I should open another issue.

nvim 0.9.0
elixir-tools `43c2288`
LazyVim 2.11.0

:LspLog

[START][2023-04-24 10:09:22] LSP logging initiated
[ERROR][2023-04-24 10:09:22] .../vim/lsp/rpc.lua:734    "rpc"   "/home/yuri/.local/share/nvim/lazy/elixir-tools.nvim/lua/elixir/../../bin/credo-language-server"    "stderr"    "** (Code.LoadError) could not load /home/yuri/project/mix.lock. Reason: enoent\n    (elixir 1.14.4) lib/code.ex:1826: Code.find_file!/2\n    (elixir 1.14.4) lib/code.ex:1199: Code.eval_file/2\n    /home/yuri/.local/share/nvim/lazy/elixir-tools.nvim/bin/credo-language-server:5: (file)\n"
[WARN][2023-04-24 10:09:25] ...lsp/handlers.lua:537 'warning: Phoenix now requires you to explicitly list which engine to use\nfor Phoenix JSON encoding. We recommend everyone to upgrade to\nJason by setting in your config/config.exs:\n\n    config :phoenix, :json_library, Jason\n\nAnd then adding {:jason, "~> 1.0"} as a dependency.\n\nIf instead you would rather continue using Poison, then add to\nyour config/config.exs:\n\n    config :phoenix, :json_library, Poison\n\n  (phoenix 1.6.16) lib/phoenix.ex:56: Phoenix.start/2\n  (kernel 8.5.4) application_master.erl:293: :application_master.start_it_old/4\n'
mhanberg commented 1 year ago

This is a different problem, currently the executable assumes you opened neovim in the same directory as your mix.lock, so that it can find your project's version of credo.

This seems to be broken for umbrella projects, i'll file a new issue.