You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Using the Eclipse Corrosion Plugin with rls I found that I get wrong error reports when formatting the code. How to reproduce?
Mark spaces at the beginning of the line and delete them.
Move ahead one line at the time
The Log File org.eclipse.corrosion.rls.log reports:
[t=1610534599878] LSP4E to org.eclipse.corrosion.rls:
Content-Length: 28636
[t=1610534599878] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///path/to/my_project/src/my-project-1.rs"},"text":"\[...\]"}}
[t=1610535058631] LSP4E to org.eclipse.corrosion.rls:
Content-Length: 291
[t=1610535058631] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":27,"uri":"file:///path/to/my_project/src/my-project-1.rs"},"contentChanges":[{"range":{"start":{"line":415,"character":0},"end":{"line":415,"character":6}},"rangeLength":6,"text":""}]}}
[t=1610535060371] LSP4E to org.eclipse.corrosion.rls:
Content-Length: 291
[t=1610535060371] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":28,"uri":"file:///path/to/my_project/src/my-project-1.rs"},"contentChanges":[{"range":{"start":{"line":416,"character":0},"end":{"line":416,"character":6}},"rangeLength":6,"text":""}]}}
[t=1610535060769] org.eclipse.corrosion.rls to LSP4E:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"","message":"expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `vlocs`\n\nexpected one of 8 possible tokens","range":{"end":{"character":7,"line":416},"start":{"character":2,"line":416}},"severity":1,"source":"rustc"}],"uri":"file:///path/to/my_project/src/my-project-1.rs"}}
[t=1610535061666] LSP4E to org.eclipse.corrosion.rls:
Content-Length: 291
[t=1610535061666] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":29,"uri":"file:///path/to/my_project/src/my-project-1.rs"},"contentChanges":[{"range":{"start":{"line":417,"character":0},"end":{"line":417,"character":6}},"rangeLength":6,"text":""}]}}
[t=1610535065149] LSP4E to org.eclipse.corrosion.rls:
Content-Length: 291
[t=1610535065150] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":30,"uri":"file:///path/to/my_project/src/my-project-1.rs"},"contentChanges":[{"range":{"start":{"line":418,"character":0},"end":{"line":418,"character":6}},"rangeLength":6,"text":""}]}}
[t=1610535065336] org.eclipse.corrosion.rls to LSP4E:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"","message":"expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `vlocs`\n\nexpected one of 8 possible tokens","range":{"end":{"character":7,"line":416},"start":{"character":2,"line":416}},"severity":1,"source":"rustc"}],"uri":"file:///path/to/my_project/src/my-project-1.rs"}}
Although the source code file was resubmitted recently the submitted deletions lead to a corrupted Index of the File in rls accusing of an error where there isn't any.
The text was updated successfully, but these errors were encountered:
domibay-hugo
changed the title
RLS reponds code deletions when formatting with Unexpected Operator Error
RLS responds code deletions when formatting with Unexpected Operator Error
Jan 13, 2021
Using the Eclipse Corrosion Plugin with
rls
I found that I get wrong error reports when formatting the code.How to reproduce?
The Log File
org.eclipse.corrosion.rls.log
reports:Although the source code file was resubmitted recently the submitted deletions lead to a corrupted Index of the File in
rls
accusing of an error where there isn't any.The text was updated successfully, but these errors were encountered: