STEPS TO REPRODUCE 1. Open a file in some repository that has LSP support 2. Edit it, introducing a bug that LSP highlights, and save 3. Outside Kate, revert it to the previous state in the way corresponding to the VCS used 4. Return to Kate and allow it to reload the externally modified file OBSERVED RESULT Kate is still showing old error positions corresponding to the pre-revert state EXPECTED RESULT Kate should propagate the new stat of the file to the language server so that its output matches the displayed state of the file. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Gentoo, Frameworks 5.85.0, Kate 21.08.1
Which LSP? > Kate should propagate the new stat of the file to the language server Kate does that. Try pressing F5, and if the errors are still being highlighted, then it is most likely a bug in the server.
(In reply to Waqar Ahmed from comment #1) > Which LSP? RLS (Rust) > > Kate should propagate the new stat of the file to the language server > > Kate does that. > > Try pressing F5, and if the errors are still being highlighted, then it is > most likely a bug in the server. The errors are still being highlighted immediately after a revert. F5 does not help, but a small edit (like adding a space to the last line) causes them to disappear. Does the propagation on reload and propagation on edit happen in different ways?..
Weird that F5 doesn't help since it reloads everything about the doc. Anyways, for the warnings to disappear, that is expected behaviour but yeah could be improved.
Closing as doesn't seem like a bug in our client + rust-analyzer is the prefered way to go these days.