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

Switching sessions multiple times will cause nvim to be in a suspended state #5230

Open
zhruith opened this issue Dec 21, 2024 · 3 comments
Open

Comments

@zhruith
Copy link

zhruith commented Dec 21, 2024

Switching session multiple times(two or more, random), when exit nvim will cause nvim to be in a suspended state, can't exit. have to close the terminal.
Test platform: windows 11 and wsl(Ubuntu) both.
Switch command: CocCommand session.load

cocinfo:

versions

vim version: NVIM v0.10.2
node version: v23.4.0
coc.nvim version: 0.0.82-aacbbcad 2024-11-23 13:34:02 +0800
coc.nvim directory: C:\Users\zhrui.vim\plugged\coc.nvim
term: xterm-256color
platform: win32

Log of coc.nvim

2024-12-21T19:13:28.548 WARN (pid:12436) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow.
2024-12-21T19:13:28.575 INFO (pid:12436) [plugin] - coc.nvim initialized with node: v23.4.0 after 185
2024-12-21T19:13:30.731 INFO (pid:12436) [attach] - receive notification: openList [ 'commands' ]
2024-12-21T19:13:32.744 INFO (pid:12436) [attach] - receive notification: openList [ 'vimcommands' ]

@zhruith
Copy link
Author

zhruith commented Dec 21, 2024

@wwqwq2313 I change the coc#rpc#stop() function as your direction commit, but it's still not working for me. suspended state when :exit nvim

@zhruith
Copy link
Author

zhruith commented Dec 21, 2024

And sometimes got this error when load session:
[coc.nvim]: UnhandledRejection: transport disconnected
Error: request error on "nvim_eval" - transport disconnected at MruList._addRecentFile (C:\Users\zhrui\AppData\Local\coc\extensions\node_modules\coc-lists\lib\index.js:3606:35) at C:\Users\zhrui\AppData\Local\coc\extensions\node_modules\coc-lists\lib\index.js:3590:19

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

2 participants
@zhruith and others