neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.47k stars 954 forks source link

[coc.nvim] invalid position for rename #3871

Closed theTechGoose closed 2 years ago

theTechGoose commented 2 years ago

Result from CocInfo

versions

vim version: NVIM v0.8.0-dev+1793-g8427da929 node version: v17.7.1 coc.nvim version: 0.0.81-9510f9f3 2022-05-30 21:43:03 +0800 coc.nvim directory: /Users/goose/.local/share/nvim/site/plugins/coc.nvim term: tmux platform: darwin

Log of coc.nvim

2022-06-02T09:51:23.210 INFO (pid:64896) [extensions] - Skipped load vim plugin from "/Users/goose/.config/coc/extensions/node_modules/coc-snippets/", "coc-snippets" already global extension. 2022-06-02T09:51:23.262 INFO (pid:64896) [services] - registered service "diagnostic-languageserver" 2022-06-02T09:51:23.278 INFO (pid:64896) [services] - registered service "eslint" 2022-06-02T09:51:23.278 INFO (pid:64896) [services] - ESLint state change: stopped => starting 2022-06-02T09:51:23.288 INFO (pid:64896) [coc-git] - Looking for git in: git 2022-06-02T09:51:23.303 INFO (pid:64896) [coc-tabnine] - Using tabnine from /Users/goose/.config/coc/extensions/coc-tabnine-data/binaries/4.4.21/aarch64-apple-darwin/TabNine 2022-06-02T09:51:23.320 INFO (pid:64896) [services] - registered service "tsserver" 2022-06-02T09:51:23.324 INFO (pid:64896) [plugin] - coc.nvim initialized with node: v17.7.1 after 145ms 2022-06-02T09:51:23.332 INFO (pid:64896) [services] - service tsserver started 2022-06-02T09:51:23.645 INFO (pid:64896) [services] - ESLint state change: starting => running 2022-06-02T09:51:23.648 INFO (pid:64896) [services] - service eslint started 2022-06-02T09:51:25.017 INFO (pid:64896) [attach] - receive notification: highlight [] 2022-06-02T09:51:25.416 INFO (pid:64896) [attach] - receive notification: rename [] // did not work 2022-06-02T09:51:26.008 INFO (pid:64896) [attach] - receive notification: highlight [] 2022-06-02T09:51:33.331 INFO (pid:64896) [attach] - receive notification: showInfo []

Describe the bug

Using the rename function in COC does not work after restart

Reproduce the bug

open any typescript file. run :CocRestart then try to rename a variable

unsure of what mini.vim is

Screenshots (optional)

image
chemzqm commented 2 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel