LunarVim
LunarVim copied to clipboard
LunarVim permanently and completely unusable until reinstall
Problem description
LunarVim works well after fresh install, but after a few hours I always run into problems.
- Use LunarVim
- Wait for very long list of errors that look like this:
Unable to set logger's level to warn
Error detected while processing /Users/travis/.local/share/lunarvim/lvim/init.lu
a:
E5113: Error while calling lua chunk: ...ravis/.local/share/lunarvim/lvim/lua/lv
im/core/theme.lua:107: Vim(colorscheme):E185: Cannot find color scheme 'tokyonig
ht'
stack traceback:
[C]: in function 'cmd'
...ravis/.local/share/lunarvim/lvim/lua/lvim/core/theme.lua:107: in func
tion 'setup'
/Users/travis/.local/share/lunarvim/lvim/init.lua:19: in main chunk
Error detected while processing /Users/travis/.local/share/lunarvim/site/pack/pa
cker/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/cmp_luasnip/after/plugi
n/cmp_luasnip.lua:1: module 'cmp' not found:
no field package.preload['cmp']
no file './cmp.lua'
no file '/opt/homebrew/share/luajit-2.1.0-beta3/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp/init.lua'
no file '/opt/homebrew/share/lua/5.1/cmp.lua'
no file '/opt/homebrew/share/lua/5.1/cmp/init.lua'
LunarVim version
E492: Not an editor command: LvimVersion
Neovim version (>= 0.8.0)
NVIM v0.8.0
Operating system/version
macOS 12.5
Steps to reproduce
- Use LunarVim
- Wait for very long list of errors that look like this:
Unable to set logger's level to warn
Error detected while processing /Users/travis/.local/share/lunarvim/lvim/init.lu
a:
E5113: Error while calling lua chunk: ...ravis/.local/share/lunarvim/lvim/lua/lv
im/core/theme.lua:107: Vim(colorscheme):E185: Cannot find color scheme 'tokyonig
ht'
stack traceback:
[C]: in function 'cmd'
...ravis/.local/share/lunarvim/lvim/lua/lvim/core/theme.lua:107: in func
tion 'setup'
/Users/travis/.local/share/lunarvim/lvim/init.lua:19: in main chunk
Error detected while processing /Users/travis/.local/share/lunarvim/site/pack/pa
cker/start/cmp_luasnip/after/plugin/cmp_luasnip.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/cmp_luasnip/after/plugi
n/cmp_luasnip.lua:1: module 'cmp' not found:
no field package.preload['cmp']
no file './cmp.lua'
no file '/opt/homebrew/share/luajit-2.1.0-beta3/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp/init.lua'
no file '/opt/homebrew/share/lua/5.1/cmp.lua'
no file '/opt/homebrew/share/lua/5.1/cmp/init.lua'
support info
E492: Not an editor command: LspInfo
E492: Not an editor command: LvimInfo
Screenshots
No response
Is this a default installation? Are you editing any of the files and making any changes whatsoever? What are you doing when this happens?
That was Nightly.
I was editing, and occasionally working with the config file (<leader>;c
). Wasn't changing anything crazy. Even when I loaded back in the default config, lvim refused to start without hundreds of errors.
Working on the Release version now and it's not encountering that issue.
Lets play with default actions Remove lvim (make backup your config) run this
bash ~/.local/share/lunarvim/lvim/utils/installer/uninstall.sh
next join to bash bash + Enter run installation again.
That was Nightly.
I was editing, and occasionally working with the config file (
<leader>;c
). Wasn't changing anything crazy. Even when I loaded back in the default config, lvim refused to start without hundreds of errors.Working on the Release version now and it's not encountering that issue.
The recommended nvim version for lunarvim nightly builds is 0.9.0.
+1 for this issue, nvim 0.8.0/macOS
Installing LunarVim shim
starting LunarVim bin-installer
bash ./utils/installer/install_bin.sh
You can start LunarVim by running: /Users/totoro/.local/bin/lvim
Preparing Packer setup
Unable to set logger's level to warnpacker.nvim: Error running config for telescope.nvim: ...o/.local/share/lunarvim/lvim/lua/lvim/core/telescope.lua:147: module 'telescope.previewers' not found:
^Ino field package.preload['telescope.previewers']
^Ino file './telescope/previewers.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/telescope/previewers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/previewers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/previewers.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/previewers.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/previewers.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/previewers/init.lua'
^Ino file './telescope/previewers.so'
^Ino file '/usr/local/lib/lua/5.1/telescope/previewers.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope/previewers.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope/previewers.so'
^Ino file './telescope.so'
^Ino file '/usr/local/lib/lua/5.1/telescope.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope.so'
packer.nvim: Error running config for nvim-dap-ui: .../totoro/.local/share/lunarvim/lvim/lua/lvim/core/dap.lua:71: module 'dapui' not found:
^Ino field package.preload['dapui']
^Ino file './dapui.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/dapui.lua'
^Ino file '/usr/local/share/lua/5.1/dapui.lua'
^Ino file '/usr/local/share/lua/5.1/dapui/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/dapui.lua'
^Ino file '/opt/homebrew/share/lua/5.1/dapui/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/dapui.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/dapui/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/dapui.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/dapui/init.lua'
^Ino file './dapui.so'
^Ino file '/usr/local/lib/lua/5.1/dapui.so'
^Ino file '/opt/homebrew/lib/lua/5.1/dapui.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/dapui.so'
packer.nvim: Error running config for LuaSnip: [string "..."]:0: module 'luasnip.loaders.from_lua' not found:
^Ino field package.preload['luasnip.loaders.from_lua']
^Ino file './luasnip/loaders/from_lua.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/luasnip/loaders/from_lua.lua'
^Ino file '/usr/local/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/usr/local/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/opt/homebrew/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/luasnip/loaders/from_lua.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/luasnip/loaders/from_lua/init.lua'
^Ino file './luasnip/loaders/from_lua.so'
^Ino file '/usr/local/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file '/opt/homebrew/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file './luasnip.so'
^Ino file '/usr/local/lib/lua/5.1/luasnip.so'
^Ino file '/opt/homebrew/lib/lua/5.1/luasnip.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/luasnip.so'
packer.nvim: Error running config for indent-blankline.nvim: ....local/share/lunarvim/lvim/lua/lvim/core/indentlines.lua:35: attempt to call field 'setup' (a nil value)
packer.nvim: Error running config for lir.nvim: .../totoro/.local/share/lunarvim/lvim/lua/lvim/core/lir.lua:111: attempt to call field 'setup' (a nil value)Packer setup complete
--------------------------------------------------------------------------------
Verifying core plugins
Unable to set logger's level to warn
Error detected while processing /Users/totoro/.local/share/lunarvim/site/pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:
E5113: Error while calling lua chunk: ...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: module 'cmp' not found:
no field package.preload['cmp']
no file './cmp.lua'
no file '/opt/homebrew/share/luajit-2.1.0-beta3/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp.lua'
no file '/usr/local/share/lua/5.1/cmp/init.lua'
no file '/opt/homebrew/share/lua/5.1/cmp.lua'
no file '/opt/homebrew/share/lua/5.1/cmp/init.lua'
no file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp.lua'
no file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp/init.lua'
no file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp.lua'
no file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp/init.lua'
no file './cmp.so'
no file '/usr/local/lib/lua/5.1/cmp.so'
no file '/opt/homebrew/lib/lua/5.1/cmp.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/cmp.so'
stack traceback:
[C]: in function 'require'
...pack/packer/start/cmp-buffer/after/plugin/cmp_buffer.lua:1: in main chunkError detected while processing BufWinEnter Autocommands for "*":
E5108: Error executing lua ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: Vim(echomsg):E114: Missing quote: "Error in packer_compiled: ...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:110: Vim(lua):E5108: Error executing lua ...rvim/site/pack/packer/start/lir.nvim/lua/lir/actions.lua:1: loop or previous error loading module 'lir.history'
stack traceback:
[C]: in function 'cmd'
...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:171: in function <...m/site/pack/packer/start/packer.nvim/lua/packer/load.lua:167>
[string ":lua"]:1: in main chunk
E5108: Error executing lua [string ":lua"]:1: loop or previous error loading module 'lir.float'
stack traceback:
[C]: in function 'require'
[string ":lua"]:1: in main chunk
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua [string ":lua"]:1: loop or previous error loading module 'lir'
stack traceback:
[C]: in function 'require'
[string ":lua"]:1: in main chunk
Error detected while processing command line:
packer.nvim: Error running config for telescope.nvim: ...o/.local/share/lunarvim/lvim/lua/lvim/core/telescope.lua:147: module 'telescope.previewers' not found:
^Ino field package.preload['telescope.previewers']
^Ino file './telescope/previewers.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/telescope/previewers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/previewers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/previewers.lua'
^Ino file '/opt/homebrew/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/previewers.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/previewers/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/previewers.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/previewers/init.lua'
^Ino file './telescope/previewers.so'
^Ino file '/usr/local/lib/lua/5.1/telescope/previewers.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope/previewers.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope/previewers.so'
^Ino file './telescope.so'
^Ino file '/usr/local/lib/lua/5.1/telescope.so'
^Ino file '/opt/homebrew/lib/lua/5.1/telescope.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope.so'
packer.nvim: Error running config for nvim-dap-ui: .../totoro/.local/share/lunarvim/lvim/lua/lvim/core/dap.lua:71: module 'dapui' not found:
^Ino field package.preload['dapui']
^Ino file './dapui.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/dapui.lua'
^Ino file '/usr/local/share/lua/5.1/dapui.lua'
^Ino file '/usr/local/share/lua/5.1/dapui/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/dapui.lua'
^Ino file '/opt/homebrew/share/lua/5.1/dapui/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/dapui.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/dapui/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/dapui.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/dapui/init.lua'
^Ino file './dapui.so'
^Ino file '/usr/local/lib/lua/5.1/dapui.so'
^Ino file '/opt/homebrew/lib/lua/5.1/dapui.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/dapui.so'
packer.nvim: Error running config for LuaSnip: [string "..."]:0: module 'luasnip.loaders.from_lua' not found:
^Ino field package.preload['luasnip.loaders.from_lua']
^Ino file './luasnip/loaders/from_lua.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/luasnip/loaders/from_lua.lua'
^Ino file '/usr/local/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/usr/local/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/opt/homebrew/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/luasnip/loaders/from_lua.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/luasnip/loaders/from_lua/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/luasnip/loaders/from_lua.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/luasnip/loaders/from_lua/init.lua'
^Ino file './luasnip/loaders/from_lua.so'
^Ino file '/usr/local/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file '/opt/homebrew/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/luasnip/loaders/from_lua.so'
^Ino file './luasnip.so'
^Ino file '/usr/local/lib/lua/5.1/luasnip.so'
^Ino file '/opt/homebrew/lib/lua/5.1/luasnip.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/luasnip.so'
packer.nvim: Error running config for indent-blankline.nvim: ....local/share/lunarvim/lvim/lua/lvim/core/indentlines.lua:35: attempt to call field 'setup' (a nil value)
packer.nvim: Error running config for lir.nvim: .../totoro/.local/share/lunarvim/lvim/lua/lvim/core/lir.lua:111: attempt to index local 'lir' (a number value)
packer.nvim: Error running config for toggleterm.nvim: ...ro/.local/share/lunarvim/lvim/lua/lvim/core/terminal.lua:52: module 'toggleterm' not found:
^Ino field package.preload['toggleterm']
^Ino file './toggleterm.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/toggleterm.lua'
^Ino file '/usr/local/share/lua/5.1/toggleterm.lua'
^Ino file '/usr/local/share/lua/5.1/toggleterm/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/toggleterm.lua'
^Ino file '/opt/homebrew/share/lua/5.1/toggleterm/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/toggleterm.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/toggleterm/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/toggleterm.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/toggleterm/init.lua'
^Ino file './toggleterm.so'
^Ino file '/usr/local/lib/lua/5.1/toggleterm.so'
^Ino file '/opt/homebrew/lib/lua/5.1/toggleterm.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/toggleterm.so'
packer.nvim: Error running config for which-key.nvim: ...o/.local/share/lunarvim/lvim/lua/lvim/core/which-key.lua:263: module 'which-key' not found:
^Ino field package.preload['which-key']
^Ino file './which-key.lua'
^Ino file '/opt/homebrew/share/luajit-2.1.0-beta3/which-key.lua'
^Ino file '/usr/local/share/lua/5.1/which-key.lua'
^Ino file '/usr/local/share/lua/5.1/which-key/init.lua'
^Ino file '/opt/homebrew/share/lua/5.1/which-key.lua'
^Ino file '/opt/homebrew/share/lua/5.1/which-key/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/which-key.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/which-key/init.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/which-key.lua'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/which-key/init.lua'
^Ino file './which-key.so'
^Ino file '/usr/local/lib/lua/5.1/which-key.so'
^Ino file '/opt/homebrew/lib/lua/5.1/which-key.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file '/Users/totoro/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/which-key.so'Verification complete!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Thank you for installing LunarVim!!
You can start it by running: /Users/totoro/.local/bin/lvim
Do not forget to use a font with glyphs (icons) support [https://github.com/ryanoasis/nerd-fonts]
@twharmon @cataglyphis Please re-check with the latest update.
i have same problem with it , how can i fix it
can you guys try this installer from #3338 instead?
https://github.com/LunarVim/LunarVim/blob/810b7d478ba383ad480c38d0dfcf1820a4dc615e/utils/installer/install.sh
The installer is mow merger into master. @twharmon @cataglyphis @cleveraziko Is the issue fixed now?
This issue is stale because it has been open for 30 days with no activity.