LunarVim / LunarVim

🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
https://www.lunarvim.org
GNU General Public License v3.0
18.31k stars 1.51k forks source link

lvim fails to start after :LvimUpdate #2498

Closed pannet1 closed 2 years ago

pannet1 commented 2 years ago

Problem description

Error detected while processing /home/pannet1/.local/share/luna rvim/lvim/init.lua: E5113: Error while calling lua chunk: ...pannet1/.local/share/l unarvim/lvim/lua/lvim/core/cmp.lua:236: attempt to index field 'window' (a nil value) stack traceback: ...pannet1/.local/share/lunarvim/lvim/lua/lvim/core/cmp .lua:236: in function 'config' ...ocal/share/lunarvim/lvim/lua/lvim/core/builtins/init .lua:24: in function 'config' ...net1/.local/share/lunarvim/lvim/lua/lvim/config/init .lua:32: in function 'init' ...annet1/.local/share/lunarvim/lvim/lua/lvim/bootstrap .lua:113: in function 'init' /home/pannet1/.local/share/lunarvim/lvim/init.lua:8: in main chunk

LunarVim version

E492: Not an editor command: LvimVersion

Neovim version (>= 0.6.1)

NVIM v0.7.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by builduser Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Operating system/version

Endeavour OS

Relevant log output

nvim: health#nvim#check
===============================================================
=========
## Configuration
  - WARNING: Missing user config file: /home/pannet1/.config/    nvim/init.vim
    - ADVICE:
      - :help init.vim

## Performance
  - OK: Build type: Release

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry:                    key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $COLORTERM='truecolor'

provider: health#provider#check
===============================================================
=========
## Clipboard (optional)
  - OK: Clipboard tool found: xclip
## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for       python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.10.4
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - INFO: Ruby: ruby 3.0.4p208 (2022-04-12 revision              3fa771dded) [x86_64-linux]
  - WARNING: `neovim-ruby-host` not found.
    - ADVICE:
      - Run `gem install neovim` to ensure the neovim RubyGem        is installed.
      - Run `gem environment` to ensure the gem bin directory        is in $PATH.
      - If you are using rvm/rbenv/chruby, try "rehashing".
      - See :help g:ruby_host_prog for non-standard gem              installations.
      - You may disable this provider (and warning) by adding        `let g:loaded_ruby_provider = 0` to your init.vim

## Node.js provider (optional)
  - INFO: Node.js: v16.14.2
## Perl provider (optional)
  - WARNING: "Neovim::Ext" cpan module is not installed
    - ADVICE:
      - See :help provider-perl for more information.
      - You may disable this provider (and warning) by adding        `let g:loaded_perl_provider = 0` to your init.vim

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: /home/pannet1/.cache/nvim/lsp.log
  - INFO: Log size: 2359 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 14

:messages
Error detected while processing /home/pannet1/.local/share/luna
rvim/lvim/init.lua:
E5113: Error while calling lua chunk: ...pannet1/.local/share/l
unarvim/lvim/lua/lvim/core/cmp.lua:236: attempt to index field
'window' (a nil value)
stack traceback:
        ...pannet1/.local/share/lunarvim/lvim/lua/lvim/core/cmp
.lua:236: in function 'config'
        ...ocal/share/lunarvim/lvim/lua/lvim/core/builtins/init
.lua:24: in function 'config'
        ...net1/.local/share/lunarvim/lvim/lua/lvim/config/init
.lua:32: in function 'init'
        ...annet1/.local/share/lunarvim/lvim/lua/lvim/bootstrap
.lua:113: in function 'init'
        /home/pannet1/.local/share/lunarvim/lvim/init.lua:8: in
 main chunk
packer.nvim: Error running config for nvim-autopairs: ...1/.loc
al/share/lunarvim/lvim/lua/lvim/core/autopairs.lua:54: attempt
to index field 'autopairs' (a nil value)
packer.nvim: Error running config for nvim-tree.lua: ...t1/.loc
al/share/lunarvim/lvim/lua/lvim/core/nvimtree.lua:131: bad argu
ment #1 to 'pairs' (table expected, got nil)
packer.nvim: Error running config for telescope.nvim: vim/share
d.lua:0: after the second argument: expected table, got nil
packer.nvim: Error running config for lualine.nvim: ...cal/shar
e/lunarvim/lvim/lua/lvim/core/lualine/styles.lua:132: attempt t
o index field 'lualine' (a nil value)
packer.nvim: Error running config for nvim-treesitter: vim/shar
ed.lua:0: after the second argument: expected table, got nil
packer.nvim: Error running config for project.nvim: ...et1/.loc
al/share/lunarvim/lvim/lua/lvim/core/project.lua:47: attempt to
 index field 'project' (a nil value)
packer.nvim: Error running config for bufferline.nvim: .../.loc
al/share/lunarvim/lvim/lua/lvim/core/bufferline.lua:131: attemp
t to index field 'bufferline' (a nil value)
packer.nvim: Error running config for toggleterm.nvim: ...t1/.l
ocal/share/lunarvim/lvim/lua/lvim/core/terminal.lua:53: attempt
 to index field 'terminal' (a nil value)
packer.nvim: Error running config for dashboard-nvim: [string "
..."]:0: module 'lvim.core.dashboard' not found:
^Ino field package.preload['lvim.core.dashboard']
^Ino file './lvim/core/dashboard.lua'
^Ino file '/usr/share/luajit-2.1.0-beta3/lvim/core/dashboard.lu
a'
^Ino file '/usr/local/share/lua/5.1/lvim/core/dashboard.lua'
^Ino file '/usr/local/share/lua/5.1/lvim/core/dashboard/init.lu
a'
^Ino file '/usr/share/lua/5.1/lvim/core/dashboard.lua'
^Ino file '/usr/share/lua/5.1/lvim/core/dashboard/init.lua'
^Ino file '/home/pannet1/.cache/nvim/packer_hererocks/2.1.0-bet
a3/share/lua/5.1/lvim/core/dashboard.lua'
^Ino file '/home/pannet1/.cache/nvim/packer_hererocks/2.1.0-bet
a3/share/lua/5.1/lvim/core/dashboard/init.lua'
^Ino file '/home/pannet1/.cache/nvim/packer_hererocks/2.1.0-bet
a3/lib/luarocks/rocks-5.1/lvim/core/dashboard.lua'

Screenshots

No response

jameswalmsley commented 2 years ago
rm -rf ~/.local/share/nvim

Then you'll be able to run nvim and do LvimUpdate again.

abzcoding commented 2 years ago

that error has been already fixed in https://github.com/LunarVim/LunarVim/commit/332e974b53d8053a7102f669141cdc054d3f20d5