Page 1 of 1

Neovim in the repo is very old

Posted: Wed Nov 24, 2021 3:59 pm
by pannet1
hi,

i was trying to install https://www.lunarvim.org/
neovim is the dependency (min 0.5). i tried to compile latest neovim and make failed due to deps error ... probably luarocks.

what we have in our repo is 0.34
NVIM v0.3.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-RiUqEm/neovim-0.3.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-RiUqEm/neovim-0.3.4/build/config -I/build/neovim-RiUqEm/neovim-0.3.4/src -I/usr/include -I/build/neovim-RiUqEm/neovim-0.3.4/build/src/nvim/auto -I/build/neovim-RiUqEm/neovim-0.3.4/build/include
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv -jemalloc +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
can you please update to the latest nvim. what we have in flatpak is useless because it is a containerised verison and lunarvim cannot see it.

Re: Neovim in the repo is very old

Posted: Wed Nov 24, 2021 6:03 pm
by SwampRabbit
I can work on it next week. I’ll try and backport the 0.5.1 version upstream in Debian. Looking really really quick, it might require newer lua.

But again, I’ll put it on the list for next week, lots going on in real life and for MX. Like the browser your requested which I haven’t forgotten about. ;)

Re: Neovim in the repo is very old

Posted: Wed Nov 24, 2021 6:14 pm
by manyroads
Have you tried:

Code: Select all

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
Reference: https://github.com/neovim/neovim/wiki/Installing-Neovim

It works for me. But... I'm not averse to being off the page. :eek: :lipsrsealed:

Re: Neovim in the repo is very old

Posted: Wed Nov 24, 2021 6:36 pm
by manyroads
FWIW... it looks like the unofficial flatpak version of nvim via mxpi might also work.

Re: Neovim in the repo is very old

Posted: Wed Nov 24, 2021 9:13 pm
by Nite Coder
I am currently using this script: https://gist.github.com/darcyparker/153 ... 05c679c417

I did modify it a bit thought, because it trys to install it system-wide(Below is basically the same script just changed the CMAKE_INSTALL_PREFIX)

Code: Select all

#!/usr/bin/env bash

#Build and install neovim for Debian
#See: https://neovim.io/
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start

#See: https://gist.github.com/darcyparker/153124662b05c679c417

#Save current dir
pushd . > /dev/null || exit

#Install dependencies
sudo apt-get update
sudo apt-get install -y \
  autoconf \
  automake \
  cmake \
  g++ \
  gettext \
  libncurses5-dev \
  libtool \
  libtool-bin \
  libunibilium-dev \
  libunibilium4 \
  ninja-build \
  pkg-config \
  python-pip \
  python3-pip \
  software-properties-common \
  unzip

# Enable use of python plugins
#!/bin/bash

# Note: python neovim module was renamed to pynvim
# https://github.com/neovim/neovim/wiki/Following-HEAD#steps-to-update-pynvim-formerly-neovim-python-package
# pip uninstall pynvim neovim
# pip3 uninstall pynvim neovim
pip install setuptools
pip install --upgrade pynvim
pip3 install setuptools
pip3 install --upgrade pynvim

gem install neovim
npm install -g neovim

#Get or update neovim github repo
mkdir -p ~/src
cd ~/src || exit
if [ ! -e ~/src/neovim ]; then
  git clone https://github.com/neovim/neovim
else
  cd neovim || exit
  git pull origin
fi

cd ~/src/neovim || exit
git checkout master

#Remove old build dir and .deps dir
rm -rf build/
rm -rf .deps/
make distclean

# Build and install neovim
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local"
make install

# Enable use of ruby plugins
# sudo gem install neovim

#Restore dir
popd > /dev/null || exit

echo "nvim command: $(command -v nvim)"
echo "nvim command: $(ls -al "$(command -v nvim)")"
You may have to add .local/bin to your PATH variable

Re: Neovim in the repo is very old

Posted: Thu Nov 25, 2021 7:43 am
by pannet1
SwampRabbit wrote: Wed Nov 24, 2021 6:03 pm I can work on it next week. I’ll try and backport the 0.5.1 version upstream in Debian. Looking really really quick, it might require newer lua.

But again, I’ll put it on the list for next week, lots going on in real life and for MX. Like the browser your requested which I haven’t forgotten about. ;)
Fantastic.

I never thought you will remember me. I am totally surprised. It should be really exciting to have something going on real life for such a long time. very good to hear. happy for you.

Re: Neovim in the repo is very old

Posted: Thu Nov 25, 2021 7:48 am
by pannet1
manyroads wrote: Wed Nov 24, 2021 6:36 pm FWIW... it looks like the unofficial flatpak version of nvim via mxpi might also work.
Mark,

Thank you for the dual response. The main requisite is have a nvim as a binary so that i can install lunarvim (an opinionated nvim). if it is flatpak or app image, then lunarvim can't see nvim.

link for lunarvim is provided in the first post.

Code: Select all

$ which nvim
/usr/bin/nvim

Re: Neovim in the repo is very old

Posted: Thu Nov 25, 2021 7:57 am
by pannet1
Nite Coder wrote: Wed Nov 24, 2021 9:13 pm I am currently using this script: https://gist.github.com/darcyparker/153 ... 05c679c417

I did modify it a bit thought, because it trys to install it system-wide(Below is basically the same script just changed the CMAKE_INSTALL_PREFIX)

Code: Select all

#!/usr/bin/env bash

#Build and install neovim for Debian
#See: https://neovim.io/
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start

#See: https://gist.github.com/darcyparker/153124662b05c679c417

#Save current dir
pushd . > /dev/null || exit

#Install dependencies
sudo apt-get update
sudo apt-get install -y \
  autoconf \
  automake \
  cmake \
  g++ \
  gettext \
  libncurses5-dev \
  libtool \
  libtool-bin \
  libunibilium-dev \
  libunibilium4 \
  ninja-build \
  pkg-config \
  python-pip \
  python3-pip \
  software-properties-common \
  unzip

# Enable use of python plugins
#!/bin/bash

# Note: python neovim module was renamed to pynvim
# https://github.com/neovim/neovim/wiki/Following-HEAD#steps-to-update-pynvim-formerly-neovim-python-package
# pip uninstall pynvim neovim
# pip3 uninstall pynvim neovim
pip install setuptools
pip install --upgrade pynvim
pip3 install setuptools
pip3 install --upgrade pynvim

gem install neovim
npm install -g neovim

#Get or update neovim github repo
mkdir -p ~/src
cd ~/src || exit
if [ ! -e ~/src/neovim ]; then
  git clone https://github.com/neovim/neovim
else
  cd neovim || exit
  git pull origin
fi

cd ~/src/neovim || exit
git checkout master

#Remove old build dir and .deps dir
rm -rf build/
rm -rf .deps/
make distclean

# Build and install neovim
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local"
make install

# Enable use of ruby plugins
# sudo gem install neovim

#Restore dir
popd > /dev/null || exit

echo "nvim command: $(command -v nvim)"
echo "nvim command: $(ls -al "$(command -v nvim)")"
You may have to add .local/bin to your PATH variable
Thanks. I will try it. It looks crazy that we need to install Gem and python packages. Looks like that's the reality.

Meanwhile, i wait next till @SwampRabbit builds us the package.

Re: Neovim in the repo is very old

Posted: Thu Nov 25, 2021 8:59 am
by pannet1
@SwampRabbit
i have raised a lunarvim github issue. the problem is lunarvim is not at fault, if i did not fulfill the minimum version requirements of neovim. so not sure how this is going to help. let us see.