Closed lithammer closed 4 years ago
Thanks for the report! I'll try to replicate the error.
Ah. So, this looks to be because rust-analyzer
sends that rustAnalyzer/cargoWatcher
message as an "end" kind without a corresponding "begin" first.
It looks like this might be a known rust-analyzer
bug: https://github.com/rust-analyzer/rust-analyzer/issues/4384
However, I should still add code to check that we have info for a token before trying to update it.
Thanks for the quick response and fix! 👍
I get this error when opening Rust file using rust-analyzer.
Did some print debugging, and I suspect that maybe goes wrong because of the global
messages
table inlua/lsp-status/messaging.lua
and there's two messages in parallel (rustAnalyzer/cargoWatcher
andrustAnalyzer/startup
). But that's just a hunch.As you can see in the first message
msg.token
isrustAnalyzer/cargoWatcher
, but the progress table only containsrustAnalyzer/startup
causing a lookup error on this line:https://github.com/wbthomason/lsp-status.nvim/blob/d6ad84228c7a30dc6295afde110edb31bc331bdb/lua/lsp-status/messaging.lua#L24