Closed mikehaertl closed 1 year ago
I can't reproduce the issue and this would be either a neovim-core or server issue. nvim-jdtls doesn't contain any logic in regards to rename.
Maybe you can try with neovim nightly if you're on an earlier version, I think there have been some changes in that area.
Maybe you can try with neovim nightly if you're on an earlier version, I think there have been some changes in that area.
It's fixed there, indeed. Thanks for the pointer.
LSP client configuration
Eclipse.jdt.ls version
1.25.0
Steps to Reproduce
Run
lua vim.lsp.buf.rename("<random name>")
two times in the same file.Expected Result
It should rename the method also the second time.
I suspect a problem in jdtls because with other languages the same works fine (tried with Typescript/Volar).
Actual Result
The method is not renamed. It seems to work again if I just wait some time or restart neovim.
The LSP debug log has a "Resource '...' is out of sync with file system." message:
Note: path names redacted to obfuscate project details.