Skip to content

nvim_del_user_command must not be called in a lua loop callback #331

Answered by afonsolage
afonsolage asked this question in Q&A
Discussion options

You must be logged in to vote

I'm using the latest version, but after checking :LspLog I noticed that this error wasn't the root cause:

[ERROR][2024-03-28 19:20:36] .../vim/lsp/rpc.lua:789	"rpc"	"rust-analyzer"	"stderr"	"Could not start dynamically linked executable: rust-analyzer\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n"
[ERROR][2024-03-28 19:20:36] ...m/lsp/client.lua:967	"LSP[rust-analyzer]"	"on_error"	{  code = "ON_EXIT_CALLBACK_ERROR",  err = "...vim/lazy/rustaceanvim/lua/rustaceanvim/commands/init.lua:183: E5560: nvim_del_user_command must not be called in a lua loop callback"}

It was…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@afonsolage
Comment options

Answer selected by afonsolage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants