When I try to execute a shell command from nvim I get this error message. I also had this issue from another program (I think ranger). It seems to be that nvim relies on a package or component called shelly to execute shell commands. pacman -Sy shelly
hasn’t found a package with that name. Is it called differently or is it installed through other means?
use the Pacman command with the -Q option to list all installed packages on your system
if its not listed it isnt installed.
if it is listed the update your system database (debian uses updatedb, not sure on yours as you havent said what o.s.)
error: target not found: shelly
I use Arch, btw.
pacman -Ss shelly
https://archlinux.org/packages/extra/x86_64/haskell-shelly/
you can also use
systemctl --failed
to see if something has broken.
journalctl -p 3 -b
should show you the error logs.
Running pacman -Ss shelly
gives me
extra/haskell-shelly 1.10.0-89 [installed]
Shell-like (systems) programming in Haskell
Hm, looks like it’s installed but it won’t find it. Are these haskell programs live in their own directory so that they have to be added to $PATH in order to be found?
it might be a privileges thing… in that you can only run it as sudo?.
does it need to be run from a group? are you in the group?.
You’re right, it looks like a priviledge issue. If I run nvim as root I can execute the shell commands.
I have no idea what group it expects me to be in. But I’m propbably not in it. I’m only in audio, input, libvirt, docker and st.
chances are you installed it while logged into a sudo account.
rather than installing it with a user account that has sudo privs.
it doesn’t look like it needs group permissions.
but rather the way you installed it makes it only available to the sudo account.
so log back into sudo
remove the app.
log out.
log in with a user account and use sudo packman to install it again.
it should install with the correct privs then.