packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

Too many open files when I run :PackerSync

Open Roiqk7 opened this issue 2 years ago • 10 comments

  • nvim --version: 0.8.2
  • Operating system/version: MacOS Ventura 13.1
  • Terminal name/version:

Actual behaviour

When I run PackerSync I get this error message usually multiple times

[packer.nvim] [ERROR 06:28:24] jobs.lua:83: Failed spawning command: git because EMFILE: too many open files

Plugin specification file(s)

Here

packer log file

[WARN Fri Jan 20 06:31:55 2023 4.7391659533954e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled! [WARN Fri Jan 20 06:32:30 2023 4.7395206143238e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled! [ERROR Fri Jan 20 06:33:05 2023 4.73987264081e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Fri Jan 20 06:36:05 2023 4.7416724705729e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Fri Jan 20 06:36:05 2023 4.7416726912658e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [WARN Fri Jan 20 06:36:42 2023 4.7420388893863e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled! [WARN Fri Jan 20 06:36:55 2023 4.7421722024379e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:730: Unable to find the diff for this line [WARN Fri Jan 20 06:45:17 2023 4.7471939522788e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:812: No plugin selected! [ERROR Sat Jan 21 12:57:43 2023 5.8346559061433e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [WARN Sat Jan 21 13:01:50 2023 5.8371213574583e+14] .../site/pack/packer/start/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled! [ERROR Sat Jan 21 13:02:26 2023 5.8374882555879e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:14:28 2023 5.8807076708179e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:14:28 2023 5.8807077351046e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:14:28 2023 5.8807078379442e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:15:15 2023 5.8811702536713e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:15:15 2023 5.8811704504675e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:16:12 2023 5.881739694e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:16:12 2023 5.8817397969679e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:16:12 2023 5.8817398058983e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [WARN Sat Jan 21 14:16:19 2023 5.8818143810858e+14] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:837: folke/lsp-colors.nvim wasn't updated; can't revert! [ERROR Sat Jan 21 14:19:26 2023 5.8836834991725e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:19:26 2023 5.8836835811988e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:19:26 2023 5.8836835885958e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:19:26 2023 5.8836835951554e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:22:23 2023 5.8854569600242e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:22:23 2023 5.8854571397288e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:22:23 2023 5.8854571438692e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:22:23 2023 5.8854571477621e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:24:34 2023 5.8867651833033e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:24:34 2023 5.8867653102358e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:24:34 2023 5.8867653229442e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:26:27 2023 5.887892036805e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:26:27 2023 5.8878921112733e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 14:26:27 2023 5.8878921354642e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:30:48 2023 6.1065056484683e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:30:48 2023 6.1065057004829e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:30:48 2023 6.1065057437471e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:30:48 2023 6.1065057987663e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:31:14 2023 6.1067691500083e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:31:14 2023 6.1067691578675e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:31:14 2023 6.1067691648204e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sat Jan 21 20:31:15 2023 6.1067691720308e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sun Jan 22 06:28:23 2023 6.4650556672329e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sun Jan 22 06:28:23 2023 6.4650556975742e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sun Jan 22 06:28:23 2023 6.4650557181304e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files [ERROR Sun Jan 22 06:28:23 2023 6.4650557432013e+14] ...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:83: Failed spawning command: git because EMFILE: too many open files

packer compiled file

-- Automatically generated packer.nvim plugin loader code

if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end

vim.api.nvim_command('packadd packer.nvim')

local no_errors, error_msg = pcall(function()

_G._packer = _G._packer or {} _G._packer.inside_compile = true

local time local profile_info local should_profile = false if should_profile then local hrtime = vim.loop.hrtime profile_info = {} time = function(chunk, start) if start then profile_info[chunk] = hrtime() else profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 end end else time = function(chunk, start) end end

local function save_profiles(threshold) local sorted_times = {} for chunk_name, time_taken in pairs(profile_info) do sorted_times[#sorted_times + 1] = {chunk_name, time_taken} end table.sort(sorted_times, function(a, b) return a[2] > b[2] end) local results = {} for i, elem in ipairs(sorted_times) do if not threshold or threshold and elem[2] > threshold then results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' end end if threshold then table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') end

_G._packer.profile_output = results end

time([[Luarocks path setup]], true) local package_path_str = "/Users/roiqk/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/roiqk/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/roiqk/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/roiqk/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/Users/roiqk/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end

if not string.find(package.cpath, install_cpath_pattern, 1, true) then package.cpath = package.cpath .. ';' .. install_cpath_pattern end

time([[Luarocks path setup]], false) time([[try_loadstring definition]], true) local function try_loadstring(s, component, name) local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) if not success then vim.schedule(function() vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) end) end return result end

time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { ["Comment.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/Comment.nvim", url = "https://github.com/numToStr/Comment.nvim" }, LuaSnip = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/LuaSnip", url = "https://github.com/L3MON4D3/LuaSnip" }, ["bufferline.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/bufferline.nvim", url = "https://github.com/akinsho/bufferline.nvim" }, ccls = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/ccls", url = "https://github.com/MaskRay/ccls" }, ["clangd_extensions.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/clangd_extensions.nvim", url = "https://github.com/p00f/clangd_extensions.nvim" }, ["cmp-buffer"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/cmp-buffer", url = "https://github.com/hrsh7th/cmp-buffer" }, ["cmp-emoji"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/cmp-emoji", url = "https://github.com/hrsh7th/cmp-emoji" }, ["cmp-nvim-lsp"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", url = "https://github.com/hrsh7th/cmp-nvim-lsp" }, ["cmp-path"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/cmp-path", url = "https://github.com/hrsh7th/cmp-path" }, cmp_luasnip = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/cmp_luasnip", url = "https://github.com/saadparwaiz1/cmp_luasnip" }, ["coc.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/coc.nvim", url = "https://github.com/neoclide/coc.nvim" }, ["deoplete-clang"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/deoplete-clang", url = "https://github.com/deoplete-plugins/deoplete-clang" }, ["editorconfig.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/editorconfig.nvim", url = "https://github.com/gpanders/editorconfig.nvim" }, ["fidget.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/fidget.nvim", url = "https://github.com/j-hui/fidget.nvim" }, ["friendly-snippets"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/friendly-snippets", url = "https://github.com/rafamadriz/friendly-snippets" }, fzf = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/fzf", url = "https://github.com/junegunn/fzf" }, ["gitsigns.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", url = "https://github.com/lewis6991/gitsigns.nvim" }, ["guihua.lua"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/guihua.lua", url = "https://github.com/ray-x/guihua.lua" }, ["lsp-colors.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim", url = "https://github.com/folke/lsp-colors.nvim" }, ["lsp-setup.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lsp-setup.nvim", url = "https://github.com/junnplus/lsp-setup.nvim" }, ["lsp-status.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lsp-status.nvim", url = "https://github.com/nvim-lua/lsp-status.nvim" }, ["lsp_signature.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim", url = "https://github.com/ray-x/lsp_signature.nvim" }, ["lspkind.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lspkind.nvim", url = "https://github.com/onsails/lspkind.nvim" }, ["lspsaga.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lspsaga.nvim", url = "https://github.com/glepnir/lspsaga.nvim" }, ["lualine.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, ["mason-lspconfig.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", url = "https://github.com/williamboman/mason-lspconfig.nvim" }, ["mason-null-ls.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/mason-null-ls.nvim", url = "https://github.com/jayp0521/mason-null-ls.nvim" }, ["mason.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/mason.nvim", url = "https://github.com/williamboman/mason.nvim" }, melange = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/melange", url = "https://github.com/savq/melange" }, ["monokai.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/monokai.nvim", url = "https://github.com/tanvirtin/monokai.nvim" }, ["navigator.lua"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/navigator.lua", url = "https://github.com/ray-x/navigator.lua" }, neorg = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/neorg", url = "https://github.com/nvim-neorg/neorg" }, nerdtree = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nerdtree", url = "https://github.com/preservim/nerdtree" }, ["null-ls.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/null-ls.nvim", url = "https://github.com/jose-elias-alvarez/null-ls.nvim" }, nvim = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim", url = "https://github.com/catppuccin/nvim" }, ["nvim-autopairs"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-autopairs", url = "https://github.com/windwp/nvim-autopairs" }, ["nvim-cmp"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-cmp", url = "https://github.com/hrsh7th/nvim-cmp" }, ["nvim-custom-diagnostic-highlight"] = { config = { "\27LJ\2\nR\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup%nvim-custom-diagnostic-highlight\frequire\0" }, loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-custom-diagnostic-highlight", url = "https://github.com/Kasama/nvim-custom-diagnostic-highlight" }, ["nvim-dap"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-dap", url = "https://github.com/mfussenegger/nvim-dap" }, ["nvim-dap-go"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-dap-go", url = "https://github.com/leoluz/nvim-dap-go" }, ["nvim-dap-ui"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-dap-ui", url = "https://github.com/rcarriga/nvim-dap-ui" }, ["nvim-dap-virtual-text"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text", url = "https://github.com/theHamsta/nvim-dap-virtual-text" }, ["nvim-lsp-installer"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", url = "https://github.com/williamboman/nvim-lsp-installer" }, ["nvim-lspconfig"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, ["nvim-lspfuzzy"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-lspfuzzy", url = "https://github.com/ojroques/nvim-lspfuzzy" }, ["nvim-lsputils"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-lsputils", url = "https://github.com/RishabhRD/nvim-lsputils" }, ["nvim-treesitter"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, ["nvim-ts-autotag"] = { load_after = {}, loaded = true, needs_bufread = false, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/opt/nvim-ts-autotag", url = "https://github.com/windwp/nvim-ts-autotag" }, ["onedark.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/onedark.nvim", url = "https://github.com/navarasu/onedark.nvim" }, ["open-browser.vim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/open-browser.vim", url = "https://github.com/tyru/open-browser.vim" }, ["packer.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/packer.nvim", url = "https://github.com/wbthomason/packer.nvim" }, ["plenary.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, popfix = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/popfix", url = "https://github.com/RishabhRD/popfix" }, ["rust-tools.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/rust-tools.nvim", url = "https://github.com/simrat39/rust-tools.nvim" }, ["sad.nvim"] = { config = { "\27LJ\2\n5\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\bsad\frequire\0" }, loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/sad.nvim", url = "https://github.com/ray-x/sad.nvim" }, ["startup.nvim"] = { config = { "\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fstartup\frequire\0" }, loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/startup.nvim", url = "https://github.com/startup-nvim/startup.nvim" }, ["symbols-outline.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim", url = "https://github.com/simrat39/symbols-outline.nvim" }, ["telescope-dap.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/telescope-dap.nvim", url = "https://github.com/nvim-telescope/telescope-dap.nvim" }, ["telescope-fzf-native.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" }, ["telescope.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, ["tender.vim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/tender.vim", url = "https://github.com/jacoborus/tender.vim" }, ["todo-comments.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/todo-comments.nvim", url = "https://github.com/folke/todo-comments.nvim" }, ["trouble.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/trouble.nvim", url = "https://github.com/folke/trouble.nvim" }, ["typescript.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/typescript.nvim", url = "https://github.com/jose-elias-alvarez/typescript.nvim" }, ["vim-ReplaceWithRegister"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-ReplaceWithRegister", url = "https://github.com/inkarkat/vim-ReplaceWithRegister" }, ["vim-cpp-modern"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-cpp-modern", url = "https://github.com/bfrg/vim-cpp-modern" }, ["vim-devicons"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-devicons", url = "https://github.com/ryanoasis/vim-devicons" }, ["vim-grammarous"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-grammarous", url = "https://github.com/rhysd/vim-grammarous" }, ["vim-maximizer"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-maximizer", url = "https://github.com/szw/vim-maximizer" }, ["vim-nerdtree-syntax-highlight"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight", url = "https://github.com/tiagofumo/vim-nerdtree-syntax-highlight" }, ["vim-nightfly-guicolors"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-nightfly-guicolors", url = "https://github.com/bluz71/vim-nightfly-guicolors" }, ["vim-surround"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-surround", url = "https://github.com/tpope/vim-surround" }, ["vim-tmux-navigator"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", url = "https://github.com/christoomey/vim-tmux-navigator" }, ["vista.vim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/vista.vim", url = "https://github.com/liuchengxu/vista.vim" }, ["which-key.nvim"] = { loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/which-key.nvim", url = "https://github.com/folke/which-key.nvim" }, ["whitespace.nvim"] = { config = { "\27LJ\2\nÜ\1\0\0\a\0\f\0\0196\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\0016\0\6\0009\0\a\0009\0\b\0'\2\t\0'\3\n\0006\4\0\0'\6\1\0B\4\2\0029\4\v\4B\0\4\1K\0\1\0\ttrim\14<Leader>t\6n\bset\vkeymap\bvim\22ignored_filetypes\1\4\0\0\20TelescopePrompt\fTrouble\thelp\1\0\1\14highlight\15DiffDelete\nsetup\20whitespace-nvim\frequire\0" }, loaded = true, path = "/Users/roiqk/.local/share/nvim/site/pack/packer/start/whitespace.nvim", url = "https://github.com/johnfrankmorgan/whitespace.nvim" } }

time([[Defining packer_plugins]], false) -- Config for: sad.nvim time([[Config for sad.nvim]], true) try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\bsad\frequire\0", "config", "sad.nvim") time([[Config for sad.nvim]], false) -- Config for: startup.nvim time([[Config for startup.nvim]], true) try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fstartup\frequire\0", "config", "startup.nvim") time([[Config for startup.nvim]], false) -- Config for: whitespace.nvim time([[Config for whitespace.nvim]], true) try_loadstring("\27LJ\2\nÜ\1\0\0\a\0\f\0\0196\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\0016\0\6\0009\0\a\0009\0\b\0'\2\t\0'\3\n\0006\4\0\0'\6\1\0B\4\2\0029\4\v\4B\0\4\1K\0\1\0\ttrim\14<Leader>t\6n\bset\vkeymap\bvim\22ignored_filetypes\1\4\0\0\20TelescopePrompt\fTrouble\thelp\1\0\1\14highlight\15DiffDelete\nsetup\20whitespace-nvim\frequire\0", "config", "whitespace.nvim") time([[Config for whitespace.nvim]], false) -- Config for: nvim-custom-diagnostic-highlight time([[Config for nvim-custom-diagnostic-highlight]], true) try_loadstring("\27LJ\2\nR\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup%nvim-custom-diagnostic-highlight\frequire\0", "config", "nvim-custom-diagnostic-highlight") time([[Config for nvim-custom-diagnostic-highlight]], false) -- Load plugins in order defined by after time([[Sequenced loading]], true) vim.cmd [[ packadd nvim-treesitter ]] vim.cmd [[ packadd nvim-ts-autotag ]] time([[Sequenced loading]], false)

_G._packer.inside_compile = false if _G._packer.needs_bufread == true then vim.cmd("doautocmd BufRead") end _G._packer.needs_bufread = false

if should_profile then save_profiles() end

end)

if not no_errors then error_msg = error_msg:gsub('"', '\"') vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') end

Roiqk7 avatar Jan 22 '23 05:01 Roiqk7

I'm having the same issue on the same OS and nvim version.

madskjeldgaard avatar Jan 24 '23 08:01 madskjeldgaard

Have you tried tinkering with clone_timeout? #1202

salkin-mada avatar Feb 01 '23 21:02 salkin-mada

"EMFILE: too many open files seems to be a Mac specific constrain not related to "straight up": ulimit.. hmm 🤔 It seems like there is entirely different methods for changing the limit on each OS X version. Maybe something changed again for Ventura? https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1

salkin-mada avatar Feb 01 '23 21:02 salkin-mada

Have you tried tinkering with clone_timeout? #1202

This doesn't make a difference in my case, but thanks!

madskjeldgaard avatar Feb 02 '23 09:02 madskjeldgaard

"EMFILE: too many open files seems to be a Mac specific constrain not related to "straight up": ulimit.. hmm 🤔 It seems like there is entirely different methods for changing the limit on each OS X version. Maybe something changed again for Ventura? https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1

This doesn't help either, but thanks!

madskjeldgaard avatar Feb 02 '23 09:02 madskjeldgaard

@madskjeldgaard - Same problem. I solved it by setting max_jobs to 5 in packer.init

stephenprater avatar Feb 06 '23 07:02 stephenprater

Solved

Sorry, I forgot to update you guys. You can fix it (on MacOS) by going to the terminal and running

ulimit -n 10240

and then opening neovim. Now you shouldn't get this error.

Roiqk7 avatar Feb 06 '23 08:02 Roiqk7

max_jobs

This solved it for me ! Thanks

madskjeldgaard avatar Feb 06 '23 10:02 madskjeldgaard

For what it's worth, I set mine to max_jobs = 70 and the problem went away.

Seems to be near the limit though, for me; setting it to 75 and I still see the error.

(and I just added my 76th package to my config that triggered this issue! So I wonder how long I was sitting on that knife edge.... although only upgraded to M-class Macbook and latest MacOS in the last few months)

phantomwhale avatar May 22 '23 06:05 phantomwhale

Creating a LaunchDaemon plist to persist the soft and hard file limits across reboots fixed this error on Ventura 13.3, nvim ver 0.10.

Note, the above requires SIP to be disabled.

ulimit -n 10240 only changed the max file limit for the current shell environment and child processes.

There is also launchctl limit maxfiles <soft_limit> <hard_limit which did not persist across reboots (although I did not test this enough to know for certain). If you do try this, be careful not to set these values too low.

fhill2 avatar Jun 09 '23 11:06 fhill2