rls icon indicating copy to clipboard operation
rls copied to clipboard

rls::actions: Out of order or duplicate change "…/lib.rs"

Open kornelski opened this issue 6 years ago • 7 comments

I'm using LSP with Sublime Text 3. When I type code in lib.rs I get an error popup for every keystroke, which makes it impossible to use the editor with RLS enabled.

server: DEBUG 2018-11-01T14:01:33Z: rls::actions: Out of order or duplicate change "/…/lib.rs", prev: 24, current: 2
server: TRACE 2018-11-01T14:01:33Z: rls::server::io: response: "Content-Length: 156\r\n\r\n{\"jsonrpc\":\"2.0\",\"method\":\"window/showMessage\",\"params\":{\"message\":\"Out of order change in \\\"/…/lib.rs\\\"\",\"type\":2}}"

kornelski avatar Nov 01 '18 14:11 kornelski

Closing and reopening editor window "fixed" the out of order error, which I can't reproduce now.

kornelski avatar Nov 01 '18 14:11 kornelski

I get this error consistently when using with a tool similar to cargo-watch. Seems like the Eclipse Corrosion plugin is having a similar issue. This is likely an issue somewhere inside of RLS; it seems to originate from here.

NathanFlurry avatar Jul 23 '19 17:07 NathanFlurry

This issue should be reopened.

norru avatar Dec 30 '20 17:12 norru

This Error can especially be reproduced with Eclipse Corrosion when Identing the Code with tabs as documented in the related issue Eclipse Corrosion - Out of Order Error

domibay-hugo avatar Jan 12 '21 11:01 domibay-hugo

@kornelski I'm interested in looking into the rls logs. How did you enable the Logging and where did you find the Logs?

domibay-hugo avatar Jan 12 '21 11:01 domibay-hugo

I've used Sublime Text's console to see the log.

kornelski avatar Jan 12 '21 15:01 kornelski

As discussed in the analysis of the related Eclipse Corrosion Issue this error might originate from an asynchronous Event Submission to the rls Service Eclipse Corrosion RLS Log Analysis

domibay-hugo avatar Jan 13 '21 10:01 domibay-hugo