Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing lunarvim on Ubuntu #4277

Open
hamzamohdzubair opened this issue Jul 6, 2023 · 4 comments
Open

Error while installing lunarvim on Ubuntu #4277

hamzamohdzubair opened this issue Jul 6, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@hamzamohdzubair
Copy link

Problem description

Lunarvim installation, after checking everything is updated, after nvm installation, node installation, pip installation, nvim installation, throws the following error:

❯ LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)

      88\                                                   88\
      88 |                                                  \__|
      88 |88\   88\ 888888$\   888888\   888888\ 88\    88\ 88\ 888888\8888\
      88 |88 |  88 |88  __88\  \____88\ 88  __88\\88\  88  |88 |88  _88  _88\
      88 |88 |  88 |88 |  88 | 888888$ |88 |  \__|\88\88  / 88 |88 / 88 / 88 |
      88 |88 |  88 |88 |  88 |88  __88 |88 |       \88$  /  88 |88 | 88 | 88 |
      88 |\888888  |88 |  88 |\888888$ |88 |        \$  /   88 |88 | 88 | 88 |
      \__| \______/ \__|  \__| \_______|\__|         \_/    \__|\__| \__| \__|

--------------------------------------------------------------------------------
Detecting platform for managing any additional neovim dependencies
--------------------------------------------------------------------------------
Would you like to install LunarVim's NodeJS dependencies: neovim?
[y]es or [n]o (default: no) : y
Installing node modules with npm..
All NodeJS dependencies are successfully installed
--------------------------------------------------------------------------------
Would you like to install LunarVim's Python dependencies: pynvim?
[y]es or [n]o (default: no) : y
Verifying that pip is available..
Installing with pip..
Requirement already satisfied: pynvim in ./.local/lib/python3.8/site-packages (0.4.3)
Requirement already satisfied: greenlet in ./.local/lib/python3.8/site-packages (from pynvim) (2.0.2)
Requirement already satisfied: msgpack>=0.5.0 in ./.local/lib/python3.8/site-packages (from pynvim) (1.0.5)
All Python dependencies are successfully installed
--------------------------------------------------------------------------------
Would you like to install LunarVim's Rust dependencies: fd::fd-find, rg::ripgrep?
[y]es or [n]o (default: no) : y
All Rust dependencies are successfully installed
--------------------------------------------------------------------------------
Backing up old /home/hamza/.local/share/lunarvim to /home/hamza/.local/share/lunarvim.old
--------------------------------------------------------------------------------
Backing up old /home/hamza/.cache/lvim to /home/hamza/.cache/lvim.old
--------------------------------------------------------------------------------
Cloning LunarVim configuration
Cloning into '/home/hamza/.local/share/lunarvim/lvim'...
remote: Enumerating objects: 17028, done.
remote: Counting objects: 100% (2976/2976), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 17028 (delta 2821), reused 2736 (delta 2715), pack-reused 14052
Receiving objects: 100% (17028/17028), 13.78 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (10742/10742), done.
--------------------------------------------------------------------------------
Installing LunarVim shim
make: Entering directory '/home/hamza/.local/share/lunarvim/lvim'
starting LunarVim bin-installer
bash ./utils/installer/install_bin.sh
You can start LunarVim by running: /home/hamza/.local/bin/lvim
make: Leaving directory '/home/hamza/.local/share/lunarvim/lvim'
Creating desktop file
Preparing Lazy setup
Initializing first time setupError detected while processing /home/hamza/.local/share/lunarvim/lvim/init.lua..User Autocommands for "LazyDone":
Error executing lua callback: .../hamza/.local/share/lunarvim/lvim/lua/lvim/lsp/utils.lua:58: attempt to call field 'refresh' (a nil value)
stack traceback:
        .../hamza/.local/share/lunarvim/lvim/lua/lvim/lsp/utils.lua:58: in function 'get_supported_servers'
        ...za/.local/share/lunarvim/lvim/lua/lvim/lsp/templates.lua:60: in function 'generate_templates'
        ...e/hamza/.local/share/lunarvim/lvim/lua/lvim/lsp/init.lua:104: in function <...e/hamza/.local/share/lunarvim/lvim/lua/lvim/lsp/init.lua:89>
        [C]: in function 'nvim_exec_autocmds'
        .../lunarvim/site/pack/lazy/opt/lazy.nvim/lua/lazy/init.lua:88: in function 'setup'
        ...za/.local/share/lunarvim/lvim/lua/lvim/plugin-loader.lua:106: in function <...za/.local/share/lunarvim/lvim/lua/lvim/plugin-loader.lua:104>
        [C]: in function 'xpcall'
        ...za/.local/share/lunarvim/lvim/lua/lvim/plugin-loader.lua:104: in function 'load'
        /home/hamza/.local/share/lunarvim/lvim/init.lua:17: in main chunk
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua ...e/pack/lazy/opt/focus.nvim/lua/focus/modules/resizer.lua:103: Vim:E36: Not enough room
stack traceback:
        [C]: in function '__newindex'
        ...e/pack/lazy/opt/focus.nvim/lua/focus/modules/resizer.lua:103: in function 'split_resizer'
        ...unarvim/site/pack/lazy/opt/focus.nvim/lua/focus/init.lua:54: in function 'resize'
        [string ":lua"]:1: in main chunk
Lazy setup complete--------------------------------------------------------------------------------
Verifying core plugins
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua ...e/pack/lazy/opt/focus.nvim/lua/focus/modules/resizer.lua:103: Vim:E36: Not enough room
stack traceback:
        [C]: in function '__newindex'
        ...e/pack/lazy/opt/focus.nvim/lua/focus/modules/resizer.lua:103: in function 'split_resizer'
        ...unarvim/site/pack/lazy/opt/focus.nvim/lua/focus/init.lua:54: in function 'resize'
        [string ":lua"]:1: in main chunkmismatch at [indent-blankline.nvim]: expected [018bd04], got [8299fe7]
[ERROR]: Unable to verify plugins, make sure to manually run ':Lazy sync' when starting lvim for the first time.

LunarVim version

1.3

Neovim version (>= 0.9.0)

0.9.1

Terminal name

Terminal

Operating system/version

Ubuntu 20.04.6 LTS

Steps to reproduce

1. pre-requisite installation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-venv
sudo apt-get install python3-pip
rustup update

2. node installation

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install node

3. nvim installation:

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
mv nvim.appimage .local/bin/nvim

4. linux version:

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal

5. pip version

❯ pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

6. node version

❯ nvm -v
0.39.3
❯ node -v
v20.4.0
❯ npm -v
9.7.2

7. rust version

❯ cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
❯ rustc --version
rustc 1.70.0 (90c541806 2023-05-31)
❯ rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.70.0 (90c541806 2023-05-31)`

8. nvim version:

❯ nvim -v
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

9. Lunarvim Installation:

LV_BRANCH='release-1.3/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.3/neovim-0.9/utils/installer/install.sh)

Screenshots

No response

@hamzamohdzubair hamzamohdzubair added the bug Something isn't working label Jul 6, 2023
@LostNeophyte
Copy link
Member

I assume you had lvim installed before, try temporarily moving your config to a different folder before running the installer

@hamzamohdzubair
Copy link
Author

I assume you had lvim installed before, try temporarily moving your config to a different folder before running the installer

genius!! that worked!

@LostNeophyte LostNeophyte self-assigned this Jul 6, 2023
@kobzar
Copy link

kobzar commented Jul 10, 2023

Close as resolved

@kobzar kobzar closed this as completed Jul 10, 2023
@LostNeophyte
Copy link
Member

LostNeophyte commented Jul 10, 2023

the issue is not fixed, the config is still loaded during the installation process and that breaks it, it used to be that way and I broke it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants