-
Notifications
You must be signed in to change notification settings - Fork 256
"Out of order or duplicate change" panic #752
Comments
This means that we're handling 'TextDocument/didChange' notifications out of order, which is a big we can't really recover from. Either the client is sending the messages out of order (in which case there is nothing we can do) or our buffering of messages is going wrong. The bad location errors are almost certainly a knock-on effect of the out of order notifications - it'll put the VFS into an inconsistent state. |
Seeing this with https://github.com/autozimu/LanguageClient-neovim (see autozimu/LanguageClient-neovim#320).
|
This should be fixed on master now. |
Hi @nrc, it appears I still have this problem in the latest nightly as well as stable. It happens anywhere for me in VSCode, all that it takes is for me to backspace or make some changes while RLS is trying to run and it will crash. On nightly it prints:
Whereas on stable it is:
Curiously, this problem only seems to have surfaced in the past 48 hours for me. In that time, I noticed that the VSCode extension has had a patch version bump and so it may be related to that or it may not. |
@OnlyLys have you tried with master? There is currently a PR to update nightly, so you this should be fixed soon (maybe tomorrow's nightly? Maybe the next day). |
Thank you for the update @nrc. I haven't tried with master actually, I incorrectly assumed that the changes have been reflected in nightly, my bad! I'll give the latest update a try in a day or two and report back. |
Hi @nrc, so I tried out the new changes in the latest Rust nightly toolchain (which includes the previously mentioned rust-lang/rust@3b1fa86) and I'm still getting the I also tried specifying |
Ok so, based on what @chipp said, I did some digging around the From that commit onwards, the What I observed was that However, prior to the commit mentioned above ( But after commit ( Hopefully someone can try it out and confirm my observations. |
Awesome thanks for checking that out! |
This seems to happen around the same context as things like #749 - when you keep modifying things in a big workspace while RLS is working.
Interestingly, I start seeing BadLocation errors immediately after that:
The text was updated successfully, but these errors were encountered: