-
Notifications
You must be signed in to change notification settings - Fork 791
Error when running null-ls in macOS, neovim 0.8 #1156
Comments
Same exact thing has been happening to me for a week and driving me insane trying to debug Nvim version:
My minimal config with formatting as original poster does.
|
Hey @jose-elias-alvarez, I appreciate your work and thank you for the link to the closed PR. Can you provide some guidance as to how you validate this fix? Because I am running the most recent build for neovim:
And I am still having this issue with the above minimal config I pasted above. Is there something I am perhaps doing wrong? Apologies, but I am relatively new to neovim |
@brymon68 |
The error is caused by an incompatibility in your runtime files. If you are running or ever were running a dev version of Neovim, then you need to make sure that your runtime files match the version of Neovim you are currently running. This is automatically handled by the I don't know how you installed Neovim in the first place, but the gist of the issue is that you have old runtime files on your system, and you need to delete them. |
Thanks @jose-elias-alvarez - That was helpful. Turns out I had a few artifiacts lying around in /usr/local/bin/. Sort of wish the neovim docs had something about where to place the binary, and other artifacts when you download. Perhaps that is an opportunity for me to contribute :) Thanks again |
FAQ
Issues
Neovim Version
NVIM v0.8.0-dev+377-gae02c02f1
Operating System
Osx
Minimal config
Steps to reproduce
open a file
Expected behavior
no errors popup
Actual behavior
errors pop up
First error msg:
Error detected while processing FileType Autocommands for "":
Error executing lua callback: ...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:214: cmd: expected list, got function:
0x010a5fc090
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:214: in function '_cmd_parts'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:281: in function 'validate_client_config'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:854: in function 'start_client'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:111: in function 'start_client'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:126: in function 'try_add'
...site/pack/packer/start/null-ls.nvim/lua/null-ls/init.lua:43: in function <...site/pack/packer/start/null-ls.nvim/lua/
null-ls/init.lua:42>
*Second error msg:
Error executing vim.schedule lua callback: ...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:214: cmd: expected list,
got function: 0x010a5fc090
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:214: in function '_cmd_parts'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:281: in function 'validate_client_config'
...r/neovim/HEAD-ae02c02/share/nvim/runtime/lua/vim/lsp.lua:854: in function 'start_client'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:111: in function 'start_client'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:126: in function 'try_add'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:222: in function 'retry_add'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:191: in function 'cb'
...ite/pack/packer/start/null-ls.nvim/lua/null-ls/utils.lua:240: in function 'for_each_bufnr'
...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:189: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Debug log
[TRACE Mon Oct 3 22:27:15 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Mon Oct 3 22:27:33 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:14:52 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:15:31 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:16:22 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:34:27 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:34:36 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:34:41 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:35:50 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:36:01 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:39:11 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:41:40 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:42:26 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:44:05 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:45:57 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
[TRACE Tue Oct 4 11:46:12 2022] ...te/pack/packer/start/null-ls.nvim/lua/null-ls/client.lua:110: starting null-ls client
Help
No
Implementation help
No response
Requirements
The text was updated successfully, but these errors were encountered: