Ash FrameworkAF
Ash Framework3y ago
10 replies
cro

Adding elixir_sense to mix.exs seems to break autocomplete

Hi folks,

I setup a new Ash project tonight, following the documentation for AshAuthentication. I added elixir_sense to mix.exs but this seems to be breaking autocomplete and other LSP functions. In case there is some difference between nvim and VS Code I tried both, but have the same issue. In the LSP logfile that nvim generates I see:

[WARN][2023-02-05 19:07:58] ...lsp/handlers.lua:487     "warning: undefined function add_first_alias_positions/3 (expected ElixirSense.Core.MetadataBuilder to define such a function or for it to be imported, but none are available)\n  lib/elixir_sense/core/metadata_builder.ex:739\n"
[WARN][2023-02-05 19:07:58] ...lsp/handlers.lua:487     'could not compile dependency :elixir_sense, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile elixir_sense", update it with "mix deps.update elixir_sense" or clean it with "mix deps.clean elixir_sense"'


Ideas on how to overcome this? Or should I open an issue over in the Github Elixir Sense repo?
Was this page helpful?