Questions tagged [elixirls]

A frontend-independent IDE "smartness" server for Elixir. Implements the JSON-based "Language Server Protocol" standard and provides debugger support via VS Code's debugger protocol.

9 questions
21
votes
2 answers

how to fix vscode extension elixirls alert "OTP compiled without EEP48 documentation chunks"?

This is the alert I am getting and I don't know how to fix it... I created new bug for it on their github (providing a bit more details in there), but I am not sure if it is bug, or I am doing sth wrong.
9
votes
1 answer

ElixirLS debugger unexpectedly stops when used with Phoenix and VSCode

Trying to debug my Phoenix project in VSCode using ElixirLS. The launch config is defined as { "type": "mix_task", "name": "mix phx.server", "request": "launch", "task": "phx.server", "projectDir": "${workspaceRoot}" } The debugger starts…
rickythefox
  • 6,601
  • 6
  • 40
  • 62
3
votes
1 answer

How to format elixir files with elixirls by default?

I use elixirls lsp-client and efm-server (mainly for credo) for working with elixir-files in Neovim. I want to use lsp-config for formatting elixir files and want to make it default lsp-client for vim.lsp.buf.formatting() command. Currently,…
arpit
  • 728
  • 7
  • 22
2
votes
2 answers

How do I setup elixir-ls using nvim-lspconfig with autocompletion in neovim?

I would like to set up the Elixir language server in Neovim using the built-in language server client and nvim-lspconfig. Documentation for this seems to be spread out in multiple places: nvim-lspconfig README nvim-lspconfig wiki about…
Adam Millerchip
  • 20,844
  • 5
  • 51
  • 74
2
votes
1 answer

How do I change the PATH for VSCode? (Linux)

One of my extensions (ElixirLS) crashes because it is unable to find the elixir executable in the VSCode PATH. However, VSCode's PATH is correct if I launch it from my terminal. How do I make sure that the PATH is correct when I launch it from my…
Pistrie
  • 23
  • 4
1
vote
0 answers

VSCode editor.language.brackets in Elixir

After looking at different issues and conversations, I can't figure out how to configure VSCode to handle Elixir do...end, do: and fn...end as matching brackets. I tried this configuration (in settings.json): "editor.language.brackets": [ …
GournaySylvain
  • 461
  • 1
  • 3
  • 16
0
votes
0 answers

ElixirLS Code Completion Not Working in Visual Studio Code Windows

I'm currently experiencing an issue with the ElixirLS extension in Visual Studio Code where the code completion feature is not working as expected. I've followed the recommended installation steps, but despite that, I'm not seeing any code…
IvonaK
  • 119
  • 10
0
votes
1 answer

ElixirLS Dialyzer errors: "no local return" and "will never be called"

I have a relatively simple Elixir code: gql_parser.ex defmodule GqlParser do def get_sql(gql) do result = GraphQL.Parser.parse(gql) case result do {:ok, ast} -> build_sql(ast) {:error, message} -> raise…
Moon
  • 33,439
  • 20
  • 81
  • 132
0
votes
0 answers

How to switch `elixir-ls` vscode plugin-in version for the same as local `erlang`, `elixir` verison to avoid `nif` bad lib problem?

I found the vscode's elixir-ls version is 0.11.0, which is ElixirLS compiled with Elixir 1.11.4 and erlang 22. The local erlang and elixir version is macbook:~ yuchen$ cat .tool-versions erlang 24.3.4.6 elixir 1.14.1-otp-24 One of deps application…
Chen Yu
  • 3,955
  • 1
  • 24
  • 51