Unrecognised option in busybox
night0721 opened this issue · 1 comments
night0721 commented
I am using Alpine Linux with busybox coreutils, and whenever I start nvimpager, I get this
Error detected while processing pre-vimrc command line:
E5108: Error executing lua ...ht/.local/share/nvimpager/runtime/lua/nvimpager/init.lua:47: Error executing lua: vim/_editor.lua:0: command failed: ['ps', '-p', 3457, '-o', 'comm=']
stack traceback:
[C]: in function 'error'
vim/_editor.lua: in function <vim/_editor.lua:0>
[C]: in function 'nvim_get_proc'
...ht/.local/share/nvimpager/runtime/lua/nvimpager/init.lua:47: in function 'detect_parent_process'
...ht/.local/share/nvimpager/runtime/lua/nvimpager/init.lua:169: in function 'stage1'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function 'nvim_get_proc'
...ht/.local/share/nvimpager/runtime/lua/nvimpager/init.lua:47: in function 'detect_parent_process'
...ht/.local/share/nvimpager/runtime/lua/nvimpager/init.lua:169: in function 'stage1'
[string ":lua"]:1: in main chunk
Then I went to check the ps command
ps: unrecognized option: p
BusyBox v1.36.1 (2024-03-24 07:55:18 UTC) multi-call binary.
Usage: ps [-o COL1,COL2=HEADER] [-T]
Show list of processes
-o COL1,COL2=HEADER Select columns for display
-T Show threads
Is there anything I could do? As it seems that is a default function from nvim.
Thanks.
Night
lucc commented
As the error happens inside nvim_get_proc
you could try to report this problem upstream (I was able to fix another incompatibility with alpine some time ago: neovim/neovim#8860). Maybe it is worth a try to add an alpine test for nvim_get_proc upstream.
In the mean time you can try to install gnu coreutils on your alpine system. I can not think of a way to work around this in nvimpager.