-
Notifications
You must be signed in to change notification settings - Fork 791
bad argument #1 to 'unpack' (table expected , got string) #919
Comments
I have the same problem. |
I can't replicate this. Your issue is almost definitely outdated runtime files - looking at the error trace, it points at this line followed by this line, neither one of which actually corresponds to the referenced function. You can verify by running If that's the case, all I can suggest is to clean out your runtime files, rebuild from source (or use whatever method you used in the first place), and make sure you don't have any other versions of Neovim installed. |
output of {
["codeLens/resolve"] = "code_lens_resolve",
["textDocument/codeAction"] = "code_action",
["textDocument/codeLens"] = "code_lens",
["textDocument/completion"] = "completion",
["textDocument/declaration"] = "declaration",
["textDocument/definition"] = "goto_definition",
["textDocument/documentHighlight"] = "document_highlight",
["textDocument/documentSymbol"] = "document_symbol",
["textDocument/formatting"] = "document_formatting",
["textDocument/hover"] = "hover",
["textDocument/implementation"] = "implementation",
["textDocument/prepareCallHierarchy"] = "call_hierarchy",
["textDocument/prepareRename"] = "rename",
["textDocument/rangeFormatting"] = "document_range_formatting",
["textDocument/references"] = "find_references",
["textDocument/rename"] = "rename",
["textDocument/signatureHelp"] = "signature_help",
["textDocument/typeDefinition"] = "type_definition",
["workspace/executeCommand"] = "execute_command",
["workspace/symbol"] = "workspace_symbol"
} let me try with clean neovim |
@jose-elias-alvarez you're correct. My runtime files were corrupted. But, i tried by uninstalling and reinstalling neovim, i was still getting that error. after deleting ~/.local/share/nvim and reinstalling, it get fixed. |
and now i understand why, because i have installed nevim-0.7 using My distoro's package manager (pacman) and that's why |
Thank you @shaeinst. You just got me out of ~3 hours of debugging on my latest update. As a note for anyone who can't read (like me lol) you need to wipe out |
FAQ
Issues
Neovim Version
NVIM v0.8.0-dev+436-g279bc71f3-dirty
Operating System
Linux IL 5.18.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Jun 2022 16:14:10 +0000 x86_64 GNU/Linux
Minimal config
Steps to reproduce
as you can clearly see, this line complaining about
string and table
. That's whyunpack
causing error because it got string instead of table.i tried with removing
unpack
from that line and every thing worked fine as expected.Expected behavior
formatting with null-ls should work on latest neovim v0.8 as it working with v0.7
Actual behavior
formatting with null-ls should does not work with latest neovim v0.8 but it works fine with v0.7
Debug log
Help
No
Implementation help
No response
Requirements
The text was updated successfully, but these errors were encountered: