You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to bootstrap on MacOS, using an up to date packer configuration that I have working on multiple other machines (Linux machines).
Actual behaviour
I install neovim, either from brew install neovim or installing from source, and the result of attempting to bootstrap is a wall of red text stating:
[packer.nvim] [ERROR 18:26:06] jobs.lua:83: Failed spawning command: git because ENAMETOOLONG: name too long
After outright failing to use my configuration, I deleted everything and started from scratch using the currently recommended bootstrapping code from the packer github page. Same issue, same message as above "... name too long".
Expected behaviour
On all other machines with this configuration, I can either enter my pluings, save and have packer bootstrap, or initiate bootstrapping, executing nvim headless from the terminal.
packer files
-- bootstraping packer plugin managerlocalinstall_path=vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'localis_bootstrap=falseifvim.fn.empty(vim.fn.glob(install_path)) >0thenis_bootstrap=truevim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd[[packadd packer.nvim]]end-- Use a protected call so we don't error out on first uselocalstatus_ok, packer=pcall(require, "packer")
ifnotstatus_okthenreturnend-- Have packer use a popup windowpacker.init {
display= {
open_fn=function()
returnrequire("packer.util").float { border="rounded" }
end,
},
}
-- Autocommand that reloads neovim whenever you save the plugins.lua filevim.cmd[[ augroup packer_user_config autocmd! autocmd BufWritePost plugins.lua source <afile> | PackerSync augroup end]]-- pluginsrequire('packer').startup(function(use)
-- Packer manageruse { 'wbthomason/packer.nvim' }
-- tpope pluginsuse { 'tpope/vim-surround' } -- adds support for surrounding & removing text with charactersuse { 'tpope/vim-fugitive' } -- adds support for running git commints with `G` within neovimuse { 'tpope/vim-repeat' } -- adds support for selecting words and inserting brackets around themuse { 'tpope/vim-sleuth' } -- Detect tabstop and shiftwidth automatically-- utilitiesuse { 'akinsho/nvim-toggleterm.lua' } -- floating/embedded terminaluse { 'numToStr/comment.nvim', -- a commenter that supports tree sitter and embedded comments:wconfig=function()
require('Comment').setup({
toggler= {
line='<leader>cc',
block='<leader>ccb',
},
opleader= {
line='<leader>c',
block='<leader>b'
},
extra= {
above='<leader>cO',
below='<leader>co',
eol='<leader>cA',
},
mappings= {
basic=true,
extra=true,
}
})
end
}
use { 'lewis6991/impatient.nvim' } -- reduces the load time of nvim (by lazy loading I think)use { 'lewis6991/gitsigns.nvim' } -- reduces the load time of nvim (by lazy loading I think)use { 'windwp/nvim-autopairs' } -- an app that helps insert all kinds of pairs (), [], {}, etcuse { 'ThePrimeagen/harpoon' } -- an app that allows quick switching between harpooned filesuse { 'mbbill/undotree' } -- a pluing that facilitates visualizing & applying a tree of undo statesuse { 'ibhagwan/smartyank.nvim' } -- a plugin to modernize yanking and pastinguse { 'famiu/nvim-reload' }
use { 'ibhagwan/fzf-lua',
-- optional for icon supportrequires= { 'nvim-tree/nvim-web-devicons' }
}
use { 'smjonas/inc-rename.nvim',
config=function()
require('inc_rename').setup()
end,
}
-- "project wide" highlighting on `TODO`, `FIX`, `PERF`, `NOTE`, `WARNING`, `HACK`use {
'folke/todo-comments.nvim',
requires='nvim-lua/plenary.nvim',
config=function()
require('todo-comments').setup {
-- your configuration comes here-- or leave it empty to use the default settings-- refer to the configuration section below
}
end
}
-- "project-wide" interface for viewing all the errors in the current fileuse {
'folke/trouble.nvim',
requires='kyazdani42/nvim-web-devicons',
config=function()
require('trouble').setup {
-- your configuration comes here-- or leave it empty to use the default settings-- refer to the configuration section below
}
end
}
-- fuzzy search UIuse { 'nvim-telescope/telescope.nvim', branch='0.1.x',requires= {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}}
use { 'nvim-telescope/telescope-fzf-native.nvim', run='make', cond=vim.fn.executable'make' ==1 }
-- use { 'nvim-telescope/telescope-media-files.nvim', cmd = 'Telescope' }-- Highlight, edit, and navigate codeuse { 'nvim-treesitter/nvim-treesitter',
run=function()
pcall(require('nvim-treesitter.install').update { with_sync=true })
end,
}
-- Additional text objects via treesitteruse { 'nvim-treesitter/nvim-treesitter-textobjects', after='nvim-treesitter'}
-- navigation pluginsuse { 'ggandor/leap.nvim', commit='a9d3232b178fddabb6660dc19abf40e05d6841b0' }
-- file navigationuse {
'kyazdani42/nvim-tree.lua',
--commit = 'cdb40dc42e5521367b9b1c40b8683331cf3500d7',--requires = 'kyazdani42/nvim-web-devicons',--config = function() require'nvim-tree'.setup {} end
}
-- cmp pluginsuse { -- Autocompletion'hrsh7th/nvim-cmp',
requires= {
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
'rafamadriz/friendly-snippets',
'hrsh7th/cmp-nvim-lsp-signature-help',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lua'
},
}
-- LSP installationuse { -- LSP Configuration & Plugins'neovim/nvim-lspconfig',
requires= {
-- Automatically install LSPs to stdpath for neovim'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
-- Useful status updates for LSP'j-hui/fidget.nvim',
-- Additional lua configuration, makes nvim stuff amazing'folke/neodev.nvim',
},
}
--use { 'jose-elias-alvarez/null-ls.nvim' }-- colors & themes & iconsuse { 'onsails/lspkind.nvim' }
use { 'navarasu/onedark.nvim' }
use { 'nvim-lualine/lualine.nvim' }
use { 'lukas-reineke/indent-blankline.nvim' } -- Add indentation guides even on blank lines-- Markdown previewuse { 'iamcco/markdown-preview.nvim',
run='cd app && npm install',
setup=function() vim.g.mkdp_filetypes= { 'markdown' } end,
ft= { 'markdown' },
}
-- DAP Plugins-- use { 'nvim-lua/plenary.nvim' }-- use { 'mfussenegger/nvim-dap' }-- use {-- "rcarriga/nvim-dap-ui",-- --commit = "a861906c8d1c457965c64ce6e83ea5e930bf8fd1",-- requires = { "mfussenegger/nvim-dap" }-- }------------------------------------------------------------------------ Language Specific Plugins -------------------------------------------------------------------------- Java plugins-- use {'mfussenegger/nvim-jdtls'}-- Rustuse { 'simrat39/rust-tools.nvim' }
-- Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua-- local has_plugins, plugins = pcall(require, 'custom.plugins')-- if has_plugins then-- plugins(use)-- endifis_bootstrapthenrequire('packer').sync()
endend)
-- You'll need to restart nvim, and then it will work.ifis_bootstrapthenprint'=================================='print' Plugins are being installed'print' Wait until Packer completes,'print' then restart nvim'print'=================================='returnend
Post the contents of ~/.cache/nvim/packer.nvim.log here
There's no packer.nvim.log, since I imagine the installation and bootstrapping process doesn't get that far. However, I do see that the git command that is called out as being too long, at least does pull some/all? of packer into the ~/.local/share/.../start/packer.nvim folder.
Post the contents of packer_compiled.vim here
packer_compiled.lua:
nvim --version
:git --version
:Steps to reproduce
Attempting to bootstrap on MacOS, using an up to date packer configuration that I have working on multiple other machines (Linux machines).
Actual behaviour
I install neovim, either from
brew install neovim
or installing from source, and the result of attempting to bootstrap is a wall of red text stating:After outright failing to use my configuration, I deleted everything and started from scratch using the currently recommended bootstrapping code from the packer github page. Same issue, same message as above "... name too long".
Expected behaviour
On all other machines with this configuration, I can either enter my pluings, save and have packer bootstrap, or initiate bootstrapping, executing
nvim
headless from the terminal.packer files
Post the contents of ~/.cache/nvim/packer.nvim.log here
There's no packer.nvim.log, since I imagine the installation and bootstrapping process doesn't get that far. However, I do see that the git command that is called out as being too long, at least does pull some/all? of packer into the ~/.local/share/.../start/packer.nvim folder.
Post the contents of
packer_compiled.vim
herepacker_compiled.lua:
The text was updated successfully, but these errors were encountered: