DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.82k stars 79 forks source link

overmind: Can't find tmux. #101

Closed Morgan-jarry closed 3 years ago

Morgan-jarry commented 3 years ago

I'm on MacOS 10.15.7 and I installed overmind from brew which install tmux dependencies automatically.

$ which tmux
/usr/local/bin/tmux
$ tmux -V
tmux 3.1c
$ overmind -v
Overmind version 2.2.0

But when I try to launch overmind s, I still get the error:

overmind: Can't find tmux. Did you forget to install it?
Morgan-jarry commented 3 years ago

Ok, so I found out overmind doesn't work when the command is nested inside if…else condition. That's weird. Maybe the way you check tmux is installed is not good ? ¯_(ツ)_/¯

DarthSim commented 3 years ago

As you can see, Overmind just runs which tmux, no fancy stuff: https://github.com/DarthSim/overmind/blob/master/start/command.go#L177. I don't know a better way to check its existence.

sshkarupa commented 3 years ago

@Morgan-jarry Hey. Did you solve this issue? I've got the same error and don't understand what's wrong.

Morgan-jarry commented 3 years ago

@sshkarupa Not at all. I had to remove the if…else condition to make it works…

DarthSim commented 3 years ago

v2.2.1 checks tmux with tmux -V instead of which tmux. Hope this will help.

Morgan-jarry commented 3 years ago

Fix by https://github.com/DarthSim/overmind/releases/tag/v2.2.1

Morgan-jarry commented 3 years ago

@DarthSim thank you for the fix !