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: too many open files when the workspace is large #172

Open
3 tasks done
konosubakonoakua opened this issue Jan 12, 2024 · 1 comment
Open
3 tasks done

bug: too many open files when the workspace is large #172

konosubakonoakua opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@konosubakonoakua
Copy link

Did you check docs and existing issues?

  • I have read all the neodev.nvim docs
  • I have searched the existing issues of neodev.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0-dev-a8fc94a

Operating system/version

ubuntu 22

Describe the bug

when the workspace exceed some size, open some lua file, we can see the workspace is loading, then try to open nnn (terminal file manager) will get error: too many open files.

I tried to disable some random large plugin, the problem disappered.
Here's my config link: https://github.com/konosubakonoakua/lazyvim.conf

Please give me a hand, or some hint to solve this (except setting via ulimit -n <some large number>)

Steps To Reproduce

  1. install nnn binary
  2. enable a lot nvim plugins
  3. open lua file, neodev loading
  4. open nnn, failed.

Expected Behavior

open nnn normally.

Repro

https://github.com/konosubakonoakua/lazyvim.conf
@konosubakonoakua konosubakonoakua added the bug Something isn't working label Jan 12, 2024
@wookayin
Copy link

The error is literally because too many open files are not allowed by OS. So ulimit is the only way to go.

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