Cannot get credo-language-server working #1
-
Hi, I just installed this great stuff (🔥) yesterday and got the elixir tools working but am struggling to get credo working. Here's my config. use {
"elixir-tools/elixir-tools.nvim",
requires = { "nvim-lua/plenary.nvim" },
config = function()
require("elixir").setup({
elixirls = {enable=false},
credo = {enable=true}
})
end
} require("mason-lspconfig").setup_handlers {
["elixirls"] = function()
nvim_lsp.elixirls.setup {
capabilities = capabilities,
on_attach = function(client, bufnr)
require('elixir.elixirls').on_attach(client, bufnr)
end,
cmd = {
vim.loop.os_homedir() .. "/dev/private/elixir-ls/rel/language_server.sh"
},
settings = {
elixirLS = {
dialyzerEnabled = true,
}
}
}
end,
} Happy to share any logs you think would be helpful! Just lmk what to look for and what commands to get them. Here's how I determined it's not working.
Also, just a side note, figuring out how to run the elixir tools without it auto installing the lsp was an adventure. Could we add a bit about this in the readme? 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 32 replies
-
Couple questions
I believe it is documented, unless you are referring to the usage of |
Beta Was this translation helpful? Give feedback.
-
Great questions, sorry I didn't include that before.
Yes, that usage was hard to find. It wasn't working before adding that. |
Beta Was this translation helpful? Give feedback.
-
I think this is the cause. I will prioritize this fix. |
Beta Was this translation helpful? Give feedback.
-
credo-language-server does not support Credo plugins yet, tracking in elixir-tools/credo-language-server#26 |
Beta Was this translation helpful? Give feedback.
-
@jared-mackey elixir-tools/credo-language-server#32 should allow credo plugins and and custom credo checks to work. I'll be releasing an rc release soon and i would appreciate if you could test it. |
Beta Was this translation helpful? Give feedback.
-
@jared-mackey I am just trying to get that CredoContribu plugin to work at all and am having trouble (I just installed credo and credo_contrib in the phoenix code repo) and even running You can confirm that that plugin works? |
Beta Was this translation helpful? Give feedback.
-
@jared-mackey you should be able to try the rc release by updating the neovim plugin and then setting the credo-language-server now will run your app in it's own node and compile it (it won't start it or anything, basically just an erlang node with your code in it), so it might take a little longer to put for the first time (if you check the logs or use my output-panel.nvim plugin, you should see the compiler logs. local elixir = require("elixir")
elixir.setup {
credo = { version = "0.1.0-rc.1" },
},
} |
Beta Was this translation helpful? Give feedback.
credo-language-server does not support Credo plugins yet, tracking in elixir-tools/credo-language-server#26