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

Handle is already closing error #638

Closed
danielleontiev opened this issue Sep 30, 2022 · 8 comments
Closed

Handle is already closing error #638

danielleontiev opened this issue Sep 30, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@danielleontiev
Copy link

Description

I was working in the repository and suddenly error starts to appear:

image

Pressing ENTER supresses the error but it appears in ~15 seconds again. I do not know how to reproduce the issue, though

Neovim version

NVIM v0.7.2 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@Monterey Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.7.2_1/share/nvim" Run :checkhealth for more info

Operating system and version

Mac OS Moneterey 12.6

Expected behavior

Error should not appeat

Actual behavior

Error keeps appearing

Minimal config

vim.o.packpath = '/tmp/nvim/site'

local plugins = {
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}

for name, url in pairs(plugins) do
  local install_path = '/tmp/nvim/site/pack/test/start/'..name
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
end

require('gitsigns').setup{
  debug_mode = true, -- You must add this to enable debug messages
  -- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE

Steps to reproduce

  1. nvim --clean -u minimal.lua
  2. ...

Gitsigns debug messages

No response

@danielleontiev danielleontiev added the bug Something isn't working label Sep 30, 2022
@danielleontiev
Copy link
Author

I've enbled debug mode and it have revealed the following message:

Error executing luv callback:
...e/pack/packer/start/gitsigns.nvim/lua/gitsigns/debug.lua:97: (ERROR) ...ite/pack/packer/start/gitsigns.nvim/lua/gitsigns/git.lua(176): fatal: co
uld not open object name list: .git-blame-ignore-revs

stack traceback:
        [C]: in function 'error'
        ...e/pack/packer/start/gitsigns.nvim/lua/gitsigns/debug.lua:97: in function 'eprint'
        ...e/pack/packer/start/gitsigns.nvim/lua/gitsigns/debug.lua:102: in function 'eprint'
        ...ite/pack/packer/start/gitsigns.nvim/lua/gitsigns/git.lua:176: in function 'callback'
        ...k/packer/start/gitsigns.nvim/lua/gitsigns/subprocess.lua:68: in function <...k/packer/start/gitsigns.nvim/lua/gitsigns/subprocess.lua:53
>

My git config has the settings blame.ignorerevsfile=.git-blame-ignore-revs

The error appears in the repository without .git-blame-ignore-revs file

@lewis6991
Copy link
Owner

Ok thanks. This should be enough info for me to look into.

@danielleontiev
Copy link
Author

Thank you!

@datanoise
Copy link

After this commit I am getting error: too many files open.

@lewis6991
Copy link
Owner

Do you get this error before the commit?

@datanoise
Copy link

No. Reverting this commit fixes the issue. An easy test is to run vim with and without this commit and see how many open files are opened by nvim process.

@lewis6991
Copy link
Owner

Does 754177a fix the issue?

@datanoise
Copy link

Looks like it does. Thanks.

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
3 participants