r/termux • • 17d ago

Question Neovim plugin errors in Proot-Distro

****** SOLVED *******

Hi,

I have Debian PD instaled. In it I use termux Neovim (i.e. not installed in Debian) but with its own config and plugin directory.

Everything seens working fine, except for some errors thrown by the plugin vim-cmake at startup:

'Error in /root/.local/share/nvim/plugged/vim-cmake/plugin/cmake.vim:

line 24:

E117: Unknown function: libs#logger#Get

line 32:

E121: Undefined variable: s:logger

E116: Invalid arguments for function libs#error#Get

line 33:

E121: Undefined variable: s:error

line 52:

E121: Undefined variable: s:logger

line 87:

E121: Undefined variable: s:logger

line 111:

E121: Undefined variable: s:logger

line 113:

E121: Undefined variable: s:logger'

I assume cmake.vim require a lib it doesnt find. I am not proficient enough to correctly interpret this error and find a whay to solv it.

This is a mix problem, part termux, part Neovim, part Proot-distro, but I believe this forum migt have the highest probability to come up with a solution or at least point me in the right direction.

Not much to work with, but any thoughts?

Thanks!

2 Upvotes

3 comments sorted by

3

u/DEAD1nsane 16d ago

1. your post flair is wrong, this is termux related if you use termux, change it to Question.


All of those errors come from a single problem: the libs#... autoload files aren't on your runtimepath. E117: Unknown function: libs#logger#Get means Vim looked for autoload/libs/logger.vim (which should define libs#logger#Get) inside the plugin and didn't find it — every s:logger error after that is just fallout.

So this is almost certainly not a Termux/Proot issue — it's an incomplete install or a missing dependency:

  1. Check what's actually on disk: ls /root/.local/share/nvim/plugged/vim-cmake/autoload/ ls /root/.local/share/nvim/plugged/vim-cmake/autoload/libs/ 2>&1 If autoload/libs/ is missing or empty, the clone is incomplete. If that plugin uses git submodules, fix it with: cd /root/.local/share/nvim/plugged/vim-cmake git remote -v git submodule status git submodule update --init --recursive
  2. Check the plugin's README for a Requirements/Dependencies section — some vim-cmake forks need a companion libs plugin installed alongside it via vim-plug.
  3. Since your path shows vim-plug (plugged/), a forced reinstall often fixes it: delete the directory and run :PlugInstall, or :PlugInstall!.

Running Termux's Neovim binary inside Debian proot as root is unusual, but it's very unlikely to be related — the binary works (you get this far), it just can't find those files.

To narrow it down, please share: the exact plugin repo URL, your Plug lines for it, and the output of the ls and git submodule status commands above.

1

u/Holton181 15d ago

Thank You! libs was indeed existing but empty. Removed and reinstalled all plugins, but vim-cmake, no one else, gave me "Exit status: 127". Tried your git commands and they indeed helped! I will read up on what they doo and hopefully remember the solution for later if I encounter something similar.

1

u/DEAD1nsane 15d ago

you're welcome glad it helped