coc-git icon indicating copy to clipboard operation
coc-git copied to clipboard

快速切换buffer会导致报错,但不影响使用

Open sheldonleung opened this issue 1 year ago • 0 comments

我在vim中设置给:bn:bp绑定了快捷键,打开修改过内容的几个文件,快速在两个文件之间切换会导致报错。不过这个问题并不影响实际使用,只是在状态栏会提示错误信息。 我把coc-git卸载之后,在两个文件中快速切换导致报错的问题就没有了。 另外我在neovim中测试没有出现这个情况。

vim版本: VIM - Vi IMproved 9.0 (2022 Jun 28, 编译于 Oct 28 2023 22:49:40) MS-Windows 64 位控制台版本 包含补丁: 1-2081

coc-git版本: 2.7.0

日志: 2023-11-02T11:02:56.885 ERROR (pid:5444) [node-client] - request error on "nvim_buf_get_option" [ 'fileencoding' ] Error: request error on "nvim_buf_get_optio n" - Invalid buffer id: 3 on api "buf_get_option" [3,"fileencoding"] 11 at new GitBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:6679:21) 12 at GitService.createBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:7548:12) 13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 14 2023-11-02T11:02:56.885 ERROR (pid:5444) [server] - unhandledRejection Promise { 15 Error: request error on "nvim_buf_get_option" - Invalid buffer id: 3 on api "buf_get_option" [3,"fileencoding"] 16 at new GitBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:6679:21) 17 at GitService.createBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:7548:12) 18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 19 } Error: request error on "nvim_buf_get_option" - Invalid buffer id: 3 on api "buf_get_option" [3,"fileencoding"] 20 at new GitBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:6679:21) 21 at GitService.createBuffer (C:\Users\SheldonLeung\AppData\Local\coc\extensions\node_modules\coc-git\lib\index.js:7548:12) 22 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

sheldonleung avatar Nov 02 '23 03:11 sheldonleung