Closed
Description
nvim --version
:
NVIM v0.7.0-dev+1083-g758d7726d
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-758d772/share/nvim"
Run :checkhealth for more info
git --version
:
git version 2.30.1 (Apple Git-130)
- Operating system/version:
- Terminal name/version:
Steps to reproduce
Actual behaviour
can't install lua modules
Expected behaviour
Install lua modules
require("luasocket")
packer files
Post the contents of ~/.cache/nvim/packer.nvim.log here
[WARN Sun Mar 6 10:23:49 2022 3.5932950678468e+14] ...im/site/pack/packer/opt/packer.nvim/lua/packer/clean.lua:79: Cleaning cancelled!
[ERROR Sun Mar 6 10:24:14 2022 3.5935401737327e+14] ...site/pack/packer/opt/packer.nvim/lua/packer/luarocks.lua:104: Failed to install hererocks: {
exit_code = 1,
signal = 0
}
packer compiled file
Post the contents of packer_compiled.vim
here
-- 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()
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
_G._packer = _G._packer or {}
_G._packer.profile_output = results
end
time([[Luarocks path setup]], true)
local package_path_str = "/Users/xxxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/xxxxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/xxxxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/xxxxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/Users/xxxxx/.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 = {
conjure = {
loaded = true,
needs_bufread = false,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/opt/conjure",
url = "https://github.com/Olical/conjure"
},
["dashboard-nvim"] = {
config = { "\27LJ\2\n�\3\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0½\2 let g:dashboard_custom_shortcut={\n \\ 'last_session' : 'SPC l s l',\n \\ 'find_history' : 'SPC l f h',\n \\ 'find_file' : 'SPC l f f',\n \\ 'new_file' : 'SPC l c n',\n \\ 'change_colorscheme' : 'SPC l t c',\n \\ 'find_word' : 'SPC l f a',\n \\ 'book_marks' : 'SPC l f b',\n \\ }3let g:dashboard_default_executive ='telescope'\bcmd\bvim\0" },
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/dashboard-nvim",
url = "https://github.com/glepnir/dashboard-nvim"
},
["fennel-nvim"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/fennel-nvim",
url = "https://github.com/jaawerth/fennel-nvim"
},
["fennel.vim"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/fennel.vim",
url = "https://github.com/bakpakin/fennel.vim"
},
["glow.nvim"] = {
commands = { "Glow", "GlowInstall" },
loaded = false,
needs_bufread = false,
only_cond = false,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/opt/glow.nvim",
url = "https://github.com/ellisonleao/glow.nvim"
},
["lua-async-await"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/lua-async-await",
url = "https://github.com/ms-jpq/lua-async-await"
},
["minimap.vim"] = {
config = { "\27LJ\2\nV\0\0\2\0\3\0\a6\0\0\0)\1\1\0=\1\1\0006\0\0\0)\1\1\0=\1\2\0K\0\1\0!minimap_auto_start_win_enter\23minimap_auto_start\a_G\0" },
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/minimap.vim",
url = "https://github.com/wfxr/minimap.vim"
},
nerdtree = {
loaded = true,
needs_bufread = false,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/opt/nerdtree",
url = "https://github.com/preservim/nerdtree"
},
["nvim-local-fennel"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/nvim-local-fennel",
url = "https://github.com/Olical/nvim-local-fennel"
},
["nvim-minimap"] = {
config = { "\27LJ\2\nt\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0%let g:minimap#window#height = 50$let g:minimap#window#width = 10\bcmd\bvim\0" },
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/nvim-minimap",
url = "https://github.com/rinx/nvim-minimap"
},
["nvim-transparent"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/nvim-transparent",
url = "https://github.com/xiyaowong/nvim-transparent"
},
["nvim-treesitter"] = {
config = { "\27LJ\2\nû\1\0\0\5\0\n\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0005\4\a\0=\4\b\3=\3\t\2B\0\2\1K\0\1\0\14highlight\fdisable\1\4\0\0\6c\trust\blua\1\0\2\venable\2&additional_vim_regex_highlighting\1\19ignore_install\1\2\0\0\15javascript\1\0\2\21ensure_installed\15maintained\17sync_install\1\nsetup\28nvim-treesitter.configs\frequire\0" },
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["packer.nvim"] = {
loaded = true,
needs_bufread = false,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/opt/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
},
["plenary.nvim"] = {
loaded = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
["telescope.nvim"] = {
loaded = true,
needs_bufread = true,
path = "/Users/xxxxx/.local/share/nvim/site/pack/packer/opt/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
}
}
time([[Defining packer_plugins]], false)
-- Setup for: nerdtree
time([[Setup for nerdtree]], true)
try_loadstring("\27LJ\2\n°\1\0\0\3\0\5\0\r6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\0016\0\0\0009\0\1\0'\2\4\0B\0\2\1K\0\1\0(nnoremap <space>n :NERDTreeFind<CR>*nnoremap <space>s :NERDTreeToggle<CR>'nnoremap <space>r :NERDTreeCWD<CR>\bcmd\bvim\0", "setup", "nerdtree")
time([[Setup for nerdtree]], false)
time([[packadd for nerdtree]], true)
vim.cmd [[packadd nerdtree]]
time([[packadd for nerdtree]], false)
-- Setup for: packer.nvim
time([[Setup for packer.nvim]], true)
try_loadstring("\27LJ\2\n\v\0\0\1\0\0\0\1K\0\1\0\0", "setup", "packer.nvim")
time([[Setup for packer.nvim]], false)
time([[packadd for packer.nvim]], true)
vim.cmd [[packadd packer.nvim]]
time([[packadd for packer.nvim]], false)
-- Setup for: telescope.nvim
time([[Setup for telescope.nvim]], true)
try_loadstring("\27LJ\2\n�\2\0\0\3\0\6\0\0176\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\0016\0\0\0009\0\1\0'\2\4\0B\0\2\0016\0\0\0009\0\1\0'\2\5\0B\0\2\1K\0\1\0005nnoremap <leader>th <cmd>Telescope help_tags<cr>3nnoremap <leader>tb <cmd>Telescope buffers<cr>5nnoremap <leader>tg <cmd>Telescope live_grep<cr>6nnoremap <leader>tf <cmd>Telescope find_files<cr>\bcmd\bvim\0", "setup", "telescope.nvim")
time([[Setup for telescope.nvim]], false)
time([[packadd for telescope.nvim]], true)
vim.cmd [[packadd telescope.nvim]]
time([[packadd for telescope.nvim]], false)
-- Setup for: conjure
time([[Setup for conjure]], true)
try_loadstring("\27LJ\2\n\v\0\0\1\0\0\0\1K\0\1\0\0", "setup", "conjure")
time([[Setup for conjure]], false)
time([[packadd for conjure]], true)
vim.cmd [[packadd conjure]]
time([[packadd for conjure]], false)
-- Config for: minimap.vim
time([[Config for minimap.vim]], true)
try_loadstring("\27LJ\2\nV\0\0\2\0\3\0\a6\0\0\0)\1\1\0=\1\1\0006\0\0\0)\1\1\0=\1\2\0K\0\1\0!minimap_auto_start_win_enter\23minimap_auto_start\a_G\0", "config", "minimap.vim")
time([[Config for minimap.vim]], false)
-- Config for: nvim-treesitter
time([[Config for nvim-treesitter]], true)
try_loadstring("\27LJ\2\nû\1\0\0\5\0\n\0\r6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0005\4\a\0=\4\b\3=\3\t\2B\0\2\1K\0\1\0\14highlight\fdisable\1\4\0\0\6c\trust\blua\1\0\2\venable\2&additional_vim_regex_highlighting\1\19ignore_install\1\2\0\0\15javascript\1\0\2\21ensure_installed\15maintained\17sync_install\1\nsetup\28nvim-treesitter.configs\frequire\0", "config", "nvim-treesitter")
time([[Config for nvim-treesitter]], false)
-- Config for: dashboard-nvim
time([[Config for dashboard-nvim]], true)
try_loadstring("\27LJ\2\n�\3\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0½\2 let g:dashboard_custom_shortcut={\n \\ 'last_session' : 'SPC l s l',\n \\ 'find_history' : 'SPC l f h',\n \\ 'find_file' : 'SPC l f f',\n \\ 'new_file' : 'SPC l c n',\n \\ 'change_colorscheme' : 'SPC l t c',\n \\ 'find_word' : 'SPC l f a',\n \\ 'book_marks' : 'SPC l f b',\n \\ }3let g:dashboard_default_executive ='telescope'\bcmd\bvim\0", "config", "dashboard-nvim")
time([[Config for dashboard-nvim]], false)
-- Config for: nvim-minimap
time([[Config for nvim-minimap]], true)
try_loadstring("\27LJ\2\nt\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0%let g:minimap#window#height = 50$let g:minimap#window#width = 10\bcmd\bvim\0", "config", "nvim-minimap")
time([[Config for nvim-minimap]], false)
-- Command lazy-loads
time([[Defining lazy-load commands]], true)
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Glow lua require("packer.load")({'glow.nvim'}, { cmd = "Glow", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file GlowInstall lua require("packer.load")({'glow.nvim'}, { cmd = "GlowInstall", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
time([[Defining lazy-load commands]], 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