0

So I downloaded this plugin https://github.com/vmitchell85/alfred-vuejs-docs and I got the Powerpack. Here is me trying to execute the workflow but pressing enter at this point does nothing:

enter image description here

After I press space and enter "vue events", I get in the debug:

[2018-09-02 16:56:33][ERROR: input.scriptfilter] Code 127: /bin/bash: php: command not found

Which is strange because I fire up my Terminal.app (Which uses bash) and I do php -v which gives me: PHP 7.2.8 (cli) (built: Jul 19 2018 12:15:24) ( NTS ). Same thing on my zsh profile.

What do I do?

test
  • 17,706
  • 64
  • 171
  • 244
  • What do you get for `$ which php`? – xilopaint Sep 03 '18 at 01:14
  • @xilopaint `which php` = `/usr/local/bin/php` – test Sep 03 '18 at 02:47
  • Does it work if you use `/usr/local/bin/php vuejs.php "{query}"` on the Script Filter instead of `php vuejs.php "{query}"`? – xilopaint Sep 03 '18 at 03:39
  • Not sure how to do that @xilopaint .. will get back to you. – test Sep 03 '18 at 04:31
  • Look at the image you posted. There's a Script Filter object on the Alfred Editor. You just have to doble-click on it and replace `php vuejs.php "{query}"` with `/usr/local/bin/php vuejs.php "{query}"`. – xilopaint Sep 03 '18 at 04:37
  • @xilopaint Hey -- that worked! Thank you. – test Sep 03 '18 at 04:41
  • It doesn't fix the root cause. It looks like `/usr/local/bin` is not in your $PATH. If you want to confirm this check the output of `echo $PATH`. – xilopaint Sep 03 '18 at 04:48
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/179334/discussion-between-xilopaint-and-nn2). – xilopaint Sep 03 '18 at 20:13
  • @xilopaint You're right -- but it seems like it is? iTerm: (zsh) `/Users/dan/.nvm/versions/node/v9.3.0/bin:/usr/local/bin:/Users/dan/bin:/usr/local/bin:/Users/dan/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin` and terminal (bash) `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin` – test Sep 06 '18 at 15:29
  • It's weird. `/usr/local/bin` is in your `$PATH` but for whatever reason `php` cannot be found. Well, I just posted the answer for this question. Could you accept and upvote it since it worked for you? – xilopaint Sep 06 '18 at 15:48

1 Answers1

1

Look at the image you posted. There's a Script Filter object on the Alfred Editor. You just have to double-click on it and replace php vuejs.php "{query}" with /usr/local/bin/php vuejs.php "{query}".

xilopaint
  • 699
  • 1
  • 7
  • 16