Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sheldonleung opened this issue Nov 2, 2023 · 0 comments
Open

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

sheldonleung opened this issue Nov 2, 2023 · 0 comments

Comments

@sheldonleung
Copy link

sheldonleung commented Nov 2, 2023

我在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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant