-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to generate lorem ipsum #6
Comments
I had this exact issue a few days ago and Till released a new version to fix it. |
Same issue here, just updated alfred and imported the latest workflow. v0.2.1 |
Just to confirm @ruudvanham - you are saying your issue was fixed by using the latest version (v0.2.1) of the workflow? Also, @wirtzdan : Is your issue resolved with the update to v0.2.1? |
I'm confused too. |
No sorry, i'm still having the issue, even after updating alfred and the workflow to the latest versions |
What's your Alfred and macOS version? |
Alfred: v4.6.1 [1274] |
Same issue here. If I type "lor" and accept the first option "paragraphs" a google search will be started. Expected behaviour: |
@ruudvanham @cgpro Are you two on Intel or M1 chips? Do you have have PHP installed via Homebrew? |
Nope:
Don't know how I installed this PHP-Version anymore. |
Could you run |
It's the version from MAMP |
Can you go into your workflow and try this script instead? if [ -f "/opt/homebrew/bin/php" ]; then
/opt/homebrew/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/local/bin/php" ]; then
/usr/local/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/bin/php" ]; then
/usr/bin/php loremipsum.php "words" "{query}"
else
php loremipsum.php "words" "{query}"
fi |
This works in combination Language /bin/zsh (and not bin/bash)
|
@cgpro: Can you post the raw output of |
I had to manually replace the script PHP location:
I'm not familiar with bash scripts, but it would be better to avoid hardcoding every possible PHP location in the script itself... Can't we use the output of Anyway for now it works again, hope it helps. |
@nicooprat: I don't think we can, but we can use it as the fallback. if [ -f "/opt/homebrew/bin/php" ]; then
/opt/homebrew/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/local/bin/php" ]; then
/usr/local/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/bin/php" ]; then
/usr/bin/php loremipsum.php "words" "{query}"
else
php loremipsum.php "words" "{query}"
fi Can you give this one a try if it works? |
This might be an option - I tested with this on my Mac and it worked ok. Should however add an else for error catching. if [ -f "$(which php)" ]; then
$(which php) loremipsum.php "words" "{query}"
fi |
@rverrips Could you explain what you did exactly? I just tried it (with bash & zsh), but with no luck: $(which php) loremipsum.php "words" "{query}" |
@rverrips |
I wonder if this would cover enough cases: if [ -f "/opt/homebrew/bin/php" ]; then
/opt/homebrew/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/local/bin/php" ]; then
/usr/local/bin/php loremipsum.php "words" "{query}"
elif [ -f "/usr/bin/php" ]; then
/usr/bin/php loremipsum.php "words" "{query}"
elif [ -f "$(which php)" ]; then
$(which php) loremipsum.php "words" "{query}"
else
php loremipsum.php "words" "{query}"
fi That would allow people to link |
Apologies @nicooprat and @tillkruss ... My hope was that This works in "regular" bash, sh and zsh, but seems this does not work within the Alfred script execution - Apologies for the wild goose chase Like the issues we have with various paths to php, it seems Alfred can't find (Please disregard my suggestion to use |
The |
I've tweaked this in v0.2.2. Please re-open if the issue persists. |
I have this strange bug, that I can't choose one of the options anymore.
It always brings me to the search.
Video:
https://cln.sh/nIW3Yw
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: