Neovim in the repo is very old

User Package Requests for MX-19
Message
Author
pannet1
Posts: 64
Joined: Sun Aug 26, 2018 2:38 am

Neovim in the repo is very old

#1 Post 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.
mx linux 19 (KDE) - using mx linux since 17.1
x86_64 / 32-bit, 64-bit / CPUs 4 / GenuineIntel / Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz

SwampRabbit
Posts: 3602
Joined: Tue Jun 14, 2016 2:02 pm

Re: Neovim in the repo is very old

#2 Post 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. ;)
NEW USERS START HERE FAQS, MX Manual, and How to Break Your System - Don't use Ubuntu PPAs! Always post your Quick System Info (QSI) when asking for help.

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Neovim in the repo is very old

#3 Post 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:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Neovim in the repo is very old

#4 Post by manyroads »

FWIW... it looks like the unofficial flatpak version of nvim via mxpi might also work.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 2:28 pm

Re: Neovim in the repo is very old

#5 Post 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

pannet1
Posts: 64
Joined: Sun Aug 26, 2018 2:38 am

Re: Neovim in the repo is very old

#6 Post 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.
mx linux 19 (KDE) - using mx linux since 17.1
x86_64 / 32-bit, 64-bit / CPUs 4 / GenuineIntel / Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz

pannet1
Posts: 64
Joined: Sun Aug 26, 2018 2:38 am

Re: Neovim in the repo is very old

#7 Post 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
mx linux 19 (KDE) - using mx linux since 17.1
x86_64 / 32-bit, 64-bit / CPUs 4 / GenuineIntel / Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz

pannet1
Posts: 64
Joined: Sun Aug 26, 2018 2:38 am

Re: Neovim in the repo is very old

#8 Post 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.
mx linux 19 (KDE) - using mx linux since 17.1
x86_64 / 32-bit, 64-bit / CPUs 4 / GenuineIntel / Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz

pannet1
Posts: 64
Joined: Sun Aug 26, 2018 2:38 am

Re: Neovim in the repo is very old

#9 Post 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.
mx linux 19 (KDE) - using mx linux since 17.1
x86_64 / 32-bit, 64-bit / CPUs 4 / GenuineIntel / Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz

Post Reply

Return to “Package Requests/Status - MX-19”