willfarrell / alfred-pkgman-workflow

Package Repo Search
MIT License
699 stars 57 forks source link

Can't seem to run the workflow correctly - macbook pro m1 max #162

Closed bangelischan closed 2 years ago

bangelischan commented 2 years ago

Hi, I'm running MacOS 12.3.1 on a M1 mac && running Alfred 4.6.4.

It seems like I cant run the workflow correctly. When I run the "debug mode", here's what it says :

image

JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:

image

I looked up the error but I can't seem to find the answer I'm looking for.

jeffbyrnes commented 2 years ago

@bangelischan do you have PHP installed? It no longer comes with macOS, so that may be at fault.

bangelischan commented 2 years ago

Yes!

As you can see on the second screenshot, It’s installed under /opt/homebrew/bin/php

Le 22 avr. 2022 à 14:15, Jeff Byrnes @.***> a écrit :

 @bangelischan do you have PHP installed? It no longer comes with macOS, so that may be at fault.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

jeffbyrnes commented 2 years ago

Hmmm! I’m on an Intel Mac, macOS 12.3.1, Alfred 4.6.4, Package Managers workflow v5.0.0, and it’s working OK for me:

image

Maybe try grabbing the workflow freshly? Might also be an Apple Silicon thing w/ where PHP is installed…?

bangelischan commented 2 years ago

I think it might be a problem with PHP. What's your version of php ? (under /opt/homebrew/php) And could I also see ur setup when you click on the "Brew" box in the workflow? image image

Thank you.

bangelischan commented 2 years ago

Does anyone have an idea ?

jun6lee commented 2 years ago

Doesn't work for me on Intel either.

Have tried changing Language to /usr/local/bin/php as well as the default /bin/bash Tried adding shebang in the brew.php of #!/usr/bin/env php

No joy.

@jeffbyrnes -- would you mind sharing a similar screenshot and tell us which version of PHP specifically you have installed via brew? It might help us troubleshoot this.

jeffbyrnes commented 2 years ago

Sure thing:

🕙 17:48:26 jeffbyrnes in WebsterParser on  main via  v18.0.0
♠ which php
/usr/local/bin/php

🕙 14:35:14 jeffbyrnes in WebsterParser on  main via  v18.0.0
♠ php -v
PHP 8.1.5 (cli) (built: Apr 16 2022 00:14:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies

Latest & greatest, installed via Homebrew. here’s the workflow:

image

Do y’all have the PATH env var set in “Workflow Environment Variables”?

image
bangelischan commented 2 years ago

Oh. That just fixed it =D Forgot about the PATH.

Thank you!

jun6lee commented 2 years ago

Mine was another oddity after applying PATH com.farrell.pkgman.alfredworkflow was not present under: /Users/MYSUSER/Library/Application Support/Alfred/Workflow Data/

Creating such a directory manually fixed it.

bangelischan commented 2 years ago

Nice !

Le 4 mai 2022 à 15:06, jun6lee @.***> a écrit :

Mine was another oddity after applying PATH com.farrell.pkgman.alfredworkflow was not present under: /Users/MYSUSER/Library/Application Support/Alfred/Workflow Data/

Creating such a directory manually fixed it.

— Reply to this email directly, view it on GitHub https://github.com/willfarrell/alfred-pkgman-workflow/issues/162#issuecomment-1117709694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEYZNPT6GPCHWSMALWTEG3VILDDLANCNFSM5UDAP5DA. You are receiving this because you modified the open/close state.