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

LspInfo is broken #3342

Closed
acederberg opened this issue Oct 2, 2024 · 7 comments
Closed

LspInfo is broken #3342

acederberg opened this issue Oct 2, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@acederberg
Copy link

Description

Running results in

==============================================================================
lspconfig: require("lspconfig.health").check()

- ERROR Failed to run healthcheck for "lspconfig" plugin. Exception:
  function health#check, line 25
  Vim(eval):E5108: Error executing lua .../share/nvim/lazy/nvim-lspconfig/lua/lspconfig/health.lua:192: attempt to call field 'get_clients' (a nil value)
  stack traceback:
  .../share/nvim/lazy/nvim-lspconfig/lua/lspconfig/health.lua:192: in function 'check_lspconfig'
  .../share/nvim/lazy/nvim-lspconfig/lua/lspconfig/health.lua:283: in function 'check'
  [string "luaeval()"]:1: in main chunk
@acederberg acederberg added the bug Something isn't working label Oct 2, 2024
@samuelvp360
Copy link

After a :PackerSyncminutes ago, my lspconfig is completely broken. Not working on require('lspconfig') statements in lua files. The same for require('lspconfig/util'). I had to uninstall it.

E5113: Error while calling lua chunk: lsp.lua:1: loop or previous error loading module 'lspconfig' stack traceback: [C]: in function 'require' lsp.lua:1: in main chunk

@acederberg
Copy link
Author

I was in the same boat, I had to specify my version explicitly in my lazy config.

@samuelvp360
Copy link

Thanks Bro, v0.1.8 worked for me. Why?, I don't know.

@justinmk
Copy link
Member

justinmk commented Oct 2, 2024

what exact :version of Nvim are you using?

nvim-lspconfig now requires Nvim 0.10

@acederberg
Copy link
Author

Ah I'm using version 0.9.5 of nvim. My problems are my fault for not setting package versions in my lazy config - not doing so meant that updating resulted in a number of plugins updating with breaking changes since many of the plugins I use have had new major versions lately.

Thanks for your help justin!

@mehalter
Copy link
Contributor

mehalter commented Oct 2, 2024

@justinmk should we go through and make sure that all of lspconfig supports neovim 0.9? Things such as LSP commands?

Or is it that just the checkhealth supports 0.9?

@justinmk
Copy link
Member

justinmk commented Oct 2, 2024

make sure that all of lspconfig supports neovim 0.9? Things such as LSP commands?

I think existing configs should support Nvim 0.9 , but going forward, new configs/commands will not.

So c25b9dd should be reverted

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

4 participants