Comments (10)
So I think I just figured this out. I use PHP 7.4 as installed by Homebrew and it didn't or doesn't anymore install in /usr/local/bin but instead installs into /opt/homebrew/bin/php . I changed the workflow as follows and it's working now. Plus now at least I understand a little more about debugging Workflows
.
from alfred-laravel-docs.
I think I fixed my own problem.
from alfred-laravel-docs.
@AstroBoy269: It might be nice to auto-detect the PHP binary. Can you send a PR?
from alfred-laravel-docs.
Sorry to bring this back.
I'm experiencing the same issue on MacOS 12.3.1
Alfred version: 4.6.4
Laravel Docs: v0.3.3
Any idea why Alfred skips laravel docs?
Thank you!
from alfred-laravel-docs.
@dimsav: Post your workflow debug logs.
from alfred-laravel-docs.
[20:00:17.530] Logging Started...
[20:00:27.144] Laravel Docs[Script Filter] Queuing argument 's'
[20:00:27.197] Laravel Docs[Script Filter] Script with argv '(null)' finished
[20:00:27.200] ERROR: Laravel Docs[Script Filter] Code 255: Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.28. in /Users/user123/Dropbox/Mac Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4B58618E-9365-4BBC-A19B-18DA87B62356/vendor/composer/platform_check.php on line 24
[20:00:27.201] ERROR: Laravel Docs[Script Filter] 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:
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.28. in /Users/user123/Dropbox/Mac Apps/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4B58618E-9365-4BBC-A19B-18DA87B62356/vendor/composer/platform_check.php on line 24
How can we use this very nice alfred workflow when we have php v7.4 installed? Thanks!
from alfred-laravel-docs.
Fix your local Composer installation.
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0".
You are running 7.4.28.
from alfred-laravel-docs.
If anyone has faced the same issue do the following because they have multiple versions of php installed:
- Install php 8 via brew.
- Then check the bin path by running
brew list php
For example:
- Then open alfred workflows and edit the script for laravel docs, by entering this:
/opt/homebrew/Cellar/php/8.1.3_1/bin/php laravel.php "{query}"
(replace with your php bin path)
from alfred-laravel-docs.
The correct homebrew path is: brew --prefix php
from alfred-laravel-docs.
I had a similar problem on Sonoma, but for me the path to php was OK. After further investigation it turned out the composer.lock (in the workflow dir) had requirements that couldn't be satisfied (I need php 7.3 for work, don't ask). Fixed it by removing the entire vendor dir and composer.lock and running composer install
(probably just composer update
would work the same, but I prefer having a clean state to start with).
from alfred-laravel-docs.
Related Issues (14)
- Available as NPM Package HOT 4
- Missing Laravel.Docs.alfredworkflow for v0.2.3 HOT 2
- Install the workflow by double-clicking the .alfredworkflow file HOT 1
- Help fot Ulauncher configuration HOT 7
- Laravel 8 support HOT 7
- Results are ambiguous with a minimal Alfred theme HOT 5
- Alfred 3.x compatibility issue HOT 14
- Can not query 9.x docs, but can query 8.x docs.` HOT 6
- Laravel Herd support HOT 2
- Script Filter Input Error HOT 2
- Publishing your credentials HOT 4
- Windows Support HOT 3
- Is there a trick to getting Quick Look to work? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-laravel-docs.