Getting method textDocument/prepareRename is not supported by any of the servers registered for the current buffer

Since like 3 days ago I started getting the message in the title when trying to rename variables with some of the servers, mainly prismals and tsserver. Strangely enough, it works on sumneko_lua lsp.

Here is my prisma lsp config and typescript lsp config.

The only notable change I did was migrate to the new LSP installer way of setting up lsp servers. I tried rolling those changes back but the message persisted so I have no idea what is causing it or how to debug it.

If someone can point me in the right direction of trying to debug of fix this I would be grateful.

Let me know if there is any other info I can provide in order to debug this.

Version:

NVIM v0.8.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/domagoj/neovim/build/config -I/home/domagoj/neovim/src -I/home/domagoj/neovim/.deps/usr/include -I/usr/include -I/home/domagoj/neovim/build/src/nvim/auto -I/home/domagoj/neovim/build/include
Compiled by root@domagoj-ubuntu

I’m having the same issue with tsserver. I can’t rename symbols and I keep getting this message

method textDocument/prepareRename is not supported by any of the servers registered for the current buffer

I’m using v0.8 too of neovim

1 Like

Fixed in fix(lsp): fix rename capability checks and multi client support by mfussenegger · Pull Request #18441 · neovim/neovim · GitHub

1 Like