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

[BUG] vim freeze when there are too many files #535

Open
moetayuko opened this issue Jul 27, 2022 · 0 comments
Open

[BUG] vim freeze when there are too many files #535

moetayuko opened this issue Jul 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@moetayuko
Copy link

Describe the bug

When the directory contains a large number of files (>5k in my experiments), launching coc-explorer will freeze vim entirely.

Result from CocInfo

(Obtained in another directory with fewer files, otherwise vim freezes and there's no way to run the command)

## versions

vim version: VIM - Vi IMproved 9.0 9000000
node version: v16.16.0
coc.nvim version: 0.0.81-2522eee5 2022-06-14 19:03:29 +0800
coc.nvim directory: /home/dianlujitao/.dotfiles/vim/.vim/plugged/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2022-07-27T12:55:07.366 INFO (pid:3491417) [services] - registered service "languageserver.bash"
2022-07-27T12:55:07.417 INFO (pid:3491417) [services] - registered service "highlight"
2022-07-27T12:55:07.455 INFO (pid:3491417) [plugin] - coc.nvim initialized with node: v16.16.0 after 162ms
2022-07-27T12:55:07.638 INFO (pid:3491417) [attach] - receive notification: runCommand [ 'explorer', '--root-strategies', 'keep' ]
2022-07-27T12:55:07.689 INFO (pid:3491417) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufDelete',
  2
]
2022-07-27T12:55:07.690 INFO (pid:3491417) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufDelete',
  2
]
2022-07-27T12:55:08.215 INFO (pid:3491417) [attach] - receive notification: highlight []
2022-07-27T12:55:08.954 INFO (pid:3491417) [attach] - receive notification: highlight []
2022-07-27T12:55:10.959 INFO (pid:3491417) [attach] - receive notification: showInfo []

Steps to reproduce
Steps to reproduce the behavior:

  1. mkdir test && cd test
  2. touch {1..5000} or more files
  3. :CocCommand explorer
  4. Get your dead vim

Expected behavior

Vim works and files are properly listed in explorer's buffer

@moetayuko moetayuko added the bug Something isn't working label Jul 27, 2022
@weirongxu weirongxu self-assigned this Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants