-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
The abnormal behavior in neovim when use csharp-ls #18147
Comments
I don't know if it is the bug of neovim or the server, because before 0.7, it works well.. |
This looks like incremental document sync error to me -- i.e. the editor things the contents of the file are different from what the server does.
|
After I disable the incremental sync, It works, however, the neovim cannot diagnose and format the script yes this is deterministic, and I type slower,It may works |
Hmm, I believe csharp-ls has broken behaviour wr.t. incremental sync.. I was trying to replicate the problem and managed to setup packer+nvim-lspconfig and immediately hit the problem where typing things too fast in nvim triggers document sync problems. My plan here is to:
|
So apparently were was a bug in csharp-ls that was related to incremental sync which was being hit by nvim (more often than by other clients): I have released a new version of csharp-ls that should fix the bug: |
Fixed |
Neovim version (nvim -v)
0.7.0
Vim (not Nvim) behaves the same?
no
Operating system/version
Arch Linux kernel 5.17.3-arch1-1
Terminal name/version
foot
$TERM environment variable
foot
Installation
archlinux repo
How to reproduce the issue
put this line into your config
mkdir test
cd test
dotnet new console --language "C#"
nvim Program.cs
copy the line above to the file and exit
reopen the file
enter "using System."
the menu will not popup
Then save the file
then the format will wrong
Expected behavior
Format right and does not report wrong thing when use csharp-ls
Actual behavior
I use format and cmp here. but cmp work not well. After "System", it should has menu before.But there is no menu. In neovim 0.6.1 it work. and when delete the line where it report bugs, the warning is not fade.
And I use the format. In neovim 0.6.1, the format work well, but It format wrong in neovim 0.7
test.mp4
The text was updated successfully, but these errors were encountered: