-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP no text synchronization. #1498
Comments
I am also getting the same issue.
I think this issue could be related to #1490 |
I think we are experiencing the same issue, but your workaround hasn't fixed it for me. I can save the file with many blank lines, but as soon as my client gets beyond the saved state of the file I get the out of bounds exception. I also only get proper completion responses based on the saved state of the file. This maybe expected behavior for omnisharp in It would be great to get some insight from a contributor as to the current state of |
I've seen issues with incremental changes with omnisharp-roslyn/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs Line 35 in 479ce0c
It could it be so that incremental changes is broken also for plain C# as @Aayush04 suggests. @ElayneB does it work if you send only full changes from your client? |
@mholo65 So, I am working with .cs file. In my case, incremental changes are not working. And yes, in case of full changes. You can see my issue details #1490 where when I am sending full changes it started working. |
@mholo65 My client is sending full changes and I am still getting the error. Here's an example didChange request my client is sending.
|
@Aayush04, do you have logs of it working with full changes that you can share? I'd like to compare them to mine and see if I see differences in the workflow / formatting. |
I believe sync issues (at least partially) are fixed with:
The underlying issue was in LSP library: |
Text synchronization does not appear to be working when running roslyn in
-lsp
mode. I've attached a log from the server showing this error.The log shows my client initializing the server, opening a document, and then making some changes. It ends with an error when it requests autocompletion from a cursor position that the server believes does not exist.
lsp-textsync-errorlog.txt
The text was updated successfully, but these errors were encountered: