jdhao / nvim-config

A modern Neovim configuration with full battery for Python, Lua, C++, Markdown, LaTeX, and more...
MIT License
3.4k stars 502 forks source link

module 'lazy' not found #258

Closed Luosuu closed 8 months ago

Luosuu commented 8 months ago

Describe the bug

Steps to reproduce the issue:

  1. I run the $HOME/.config/nvim/docs/nvim_setup_linux.sh with my system python and bash.
    
    # Whether python3 has been installed on the system
    PYTHON_INSTALLED=true

If Python has been installed, then we need to know whether Python is provided

by the system, or you have already installed Python under your HOME.

SYSTEM_PYTHON=true

If SYSTEM_PYTHON is false, we need to decide whether to install

Anaconda (INSTALL_ANACONDA=true) or Miniconda (INSTALL_ANACONDA=false)

INSTALL_ANACONDA=false

Whether to add the path of the installed executables to system PATH

ADD_TO_SYSTEM_PATH=true

select which shell we are using

USE_ZSH_SHELL=false USE_BASH_SHELL=true

2. Got errors when nvim launches:
```shell
Error detected while processing /sfs/qumulo/qhome/fad3ew/.config/nvim/init.lua:
E5113: Error while calling lua chunk: vim/_editor.lua:0: /sfs/qumulo/qhome/fad3ew/.config/nvim/init.lua..nvim_exec2() called at /sfs/qumulo/qhome/fad3ew/.config/nvim/init.lua:0../sfs/qumulo/qhome/fad3ew/.config/nvim/viml_conf/plugins.vim, line 4: Vim(lua):E5108: Error executing lua /sfs/qumulo/qhome/fad3ew/.config
/nvim/lua/plugin_specs.lua:502: module 'lazy' not found:
        no field package.preload['lazy']
cache_loader: module lazy not found
cache_loader_lib: module lazy not found
        no file './lazy.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1/lazy.lua'
        no file '/usr/local/share/lua/5.1/lazy.lua'
        no file '/usr/local/share/lua/5.1/lazy/init.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/lazy.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/lazy/init.lua'
        no file './lazy.so'
        no file '/usr/local/lib/lua/5.1/lazy.so'
        no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/lazy.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /sfs/qumulo/qhome/fad3ew/.config/nvim/lua/plugin_specs.lua:502: in main chunk
        [C]: in function 'require'
        [string ":lua"]:1: in main chunk
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        /sfs/qumulo/qhome/fad3ew/.config/nvim/init.lua:42: in main chunk
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        /sfs/qumulo/qhome/fad3ew/.config/nvim/init.lua:42: in main chunk

Expected behavior

nvim should launch without errors and load plugins properly.

Screenshots

Additional context

Luosuu commented 8 months ago

FYI, this is the output of :checkhealth

1 ──────────────────────────────────────────────────────────────────────────────
    2 nvim: require("nvim.health").check()
    3 
    4 Configuration
    5 - OK no issues found
    6 
    7 Runtime
    8 - OK $VIMRUNTIME: /sfs/qumulo/qhome/fad3ew/tools/nvim/share/nvim/runtime
    9 
   10 Performance
   11 - OK Build type: Release
   12 
   13 Remote Plugins
   14 - OK Up to date
   15 
   16 terminal
   17 - key_backspace (kbs) terminfo entry: key_backspace=\177
   18 - key_dc (kdch1) terminfo entry: key_dc=\E[3~
   19 - $SSH_TTY="/dev/pts/0"
   20 
   21 ──────────────────────────────────────────────────────────────────────────────
   22 provider: health#provider#check
   23 
   24 Clipboard (optional)
   25 - WARNING No clipboard tool found. Clipboard registers ("+ and "*) will not work.
   26   - ADVICE:
   27     - :help clipboard
   28 
   29 Python 3 provider (optional)
   30 - Using: g:python3_host_prog = "/apps/software/standard/mpi/gcc/11.2.0/openmpi/4.1.4/python/3.11.1/bin/python3"
   31 - Executable: /apps/software/standard/mpi/gcc/11.2.0/openmpi/4.1.4/python/3.11.1/bin/python3
   32 - Python version: 3.11.1
   33 - pynvim version: 0.5.0
   34 - OK Latest pynvim is installed.
   35 
   36 Python virtualenv
   37 - OK no $VIRTUAL_ENV
   38 
   39 Ruby provider (optional)
   40 - Disabled (g:loaded_ruby_provider=0).
   41 
   42 Node.js provider (optional)
   43 - Disabled (g:loaded_node_provider=0).
   44 
   45 Perl provider (optional)
   46 - Disabled (g:loaded_perl_provider=0).
   47 
   48 ──────────────────────────────────────────────────────────────────────────────
   49 vim.lsp: require("vim.lsp.health").check()
   50 
   51 - LSP log level : WARN
   52 - Log path: /sfs/qumulo/qhome/fad3ew/.local/state/nvim/lsp.log
   53 - Log size: 0 KB
   54 
   55 vim.lsp: Active Clients
   56 - No active clients
   57 
   58 ──────────────────────────────────────────────────────────────────────────────
   59 vim.treesitter: require("vim.treesitter.health").check()
   60 
   61 - Nvim runtime ABI version: 14
   62 - OK Parser: c          ABI: 14, path: /sfs/qumulo/qhome/fad3ew/tools/nvim/lib/nvim/parser/c.so
   63 - OK Parser: lua        ABI: 14, path: /sfs/qumulo/qhome/fad3ew/tools/nvim/lib/nvim/parser/lua.so
   64 - OK Parser: query      ABI: 14, path: /sfs/qumulo/qhome/fad3ew/tools/nvim/lib/nvim/parser/query.so
   65 - OK Parser: vim        ABI: 14, path: /sfs/qumulo/qhome/fad3ew/tools/nvim/lib/nvim/parser/vim.so
   66 - OK Parser: vimdoc     ABI: 14, path: /sfs/qumulo/qhome/fad3ew/tools/nvim/lib/nvim/parser/vimdoc.so

Thank you very much!

Luosuu commented 8 months ago

Well, it turns out to be that my git is too old to support --filter=blob:none.