neoclide / coc.nvim

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

List not work after some operation #4971

Closed aispeaking closed 2 months ago

aispeaking commented 3 months ago

Result from CocInfo

The CocInfo seems broken, I don't know why. coc.nvim is the latest master. vim 9.0.1563/ nvim v0.9.0

[coc.nvim]: Error on notification "showInfo": stripAnsi3 is not a function

Describe the bug

Some keymaps not work in list window. Enter do not open the file (for files list), TAB no not show the action.

Reproduce the bug

case 1:

case 2:

Screenshots (optional)

NULL

fannheyward commented 3 months ago

Your coc.nvim is broken, how do you install it?

aispeaking commented 3 months ago

@fannheyward I just use the "PlugUpdate" command few days ago and it says my nodejs v18.12.1 is too old, so I upgraded it to 20.12.0 and every thing works fine. I'm just using the CocListResume command and found it not working in somecase, not sure if it is ok before.

Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn --install --frozen-lockfile'}

fannheyward commented 3 months ago

It's recommended to use Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'npm ci'}, https://github.com/neoclide/coc.nvim?tab=readme-ov-file#quick-start

Will check the CocListResume issue.

aispeaking commented 3 months ago

CocInfo is ok now after reinstall with the new command.

versions

vim version: VIM - Vi IMproved 9.0 9001563 node version: v20.12.0 coc.nvim version: 0.0.82-ede39ea 2024-03-28 17:57:50 +0800 coc.nvim directory: /home/liyt/code/extern/vim-runtime/plugged/coc.nvim term: dumb platform: linux

Log of coc.nvim

2024-04-07T17:22:27.540 INFO (pid:45548) [configurations] - Add folder configuration from cwd: /home/liyt/code/extern/vim-runtime/plugged/coc.nvim/.vim/coc-settings.json 2024-04-07T17:22:27.735 INFO (pid:45548) [extension:coc-git] - Looking for git in: git 2024-04-07T17:22:27.768 WARN (pid:45548) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow. 2024-04-07T17:22:28.102 INFO (pid:45548) [plugin] - coc.nvim initialized with node: v20.12.0 after 630

fannheyward commented 2 months ago

case 1 is by designed, : cancels the list, <CR> does line downward same as normal vim buffer.

https://github.com/neoclide/coc.nvim/blob/48bae5f48c274e41637b8d7e4cfede1a0fe15dea/src/list/mappings.ts#L69-L72