Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElixirLS error #407

Closed
hissssst opened this issue Nov 16, 2020 · 6 comments
Closed

ElixirLS error #407

hissssst opened this issue Nov 16, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@hissssst
Copy link

  • nvim --version: NVIM v0.5.0-765-g75996a2cd
  • nvim-lsp version(commit hash): 1f86bfd62d0ba78b0479373661be3fa13f1f8f35
  • :checkhealth result - everything OK
  • What language server(If the problem is related to a specific language server): ElixirLS 0.6.2 3acc1fdb2ef2c1167935f7b6e74300e039200ec5
  • Operating system/version: linux 5.7.12

How to reproduce the problem from neovim startup

  • Enter directory with mix.exs (a.k.a elixir project root)
  • $ nvim mix.exs

Actual behaviour

Error detected while processing function LspStatus:
line    2:
E5108: Error executing lua ...m/plugged/lsp-status.nvim/lua/lsp-status/diagnostics.lua:12: attempt to index field 'diagnostic' (a nil value)
Press ENTER or type command to continue
Error detected while processing function LspStatus:
line    2:
E5108: Error executing lua ...m/plugged/lsp-status.nvim/lua/lsp-status/diagnostics.lua:12: attempt to index field 'diagnostic' (a nil value)

Expected behaviour

No errors

Additional info

  • Happened after upgrade from nvim-lsp to lspconfig
  • All elixir_ls tests successfully passed
@hissssst hissssst added the bug Something isn't working label Nov 16, 2020
@lithammer
Copy link
Collaborator

lithammer commented Nov 16, 2020

I think you just need to update https://github.com/nvim-lua/lsp-status.nvim to include the recent diagnostic changes. See nvim-lua/lsp-status.nvim#19 and neovim/neovim#12655.

@hissssst
Copy link
Author

@lithammer thanks, I'll try it out right now

@lithammer
Copy link
Collaborator

lithammer commented Nov 16, 2020

Also ensure you have the latest Neovim nightly for good measure (at least including neovim/neovim#12655 is very important).

@hissssst
Copy link
Author

Same issue with NVIM v0.5.0-828-g0a95549d6 (latest prebuilt package avaliable in AUR)
Guess I'll have to build from master

@mjlbach
Copy link
Contributor

mjlbach commented Dec 18, 2020

@hissssst Is this still an issue?

@hissssst
Copy link
Author

Fixed in current nighly release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants