Giter Club home page Giter Club logo

Comments (10)

AstroBoy269 avatar AstroBoy269 commented on May 9, 2024 2

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
Screen Shot 2021-10-30 at 6 59 33 PM
.

from alfred-laravel-docs.

AstroBoy269 avatar AstroBoy269 commented on May 9, 2024

I think I fixed my own problem.

from alfred-laravel-docs.

tillkruss avatar tillkruss commented on May 9, 2024

@AstroBoy269: It might be nice to auto-detect the PHP binary. Can you send a PR?

from alfred-laravel-docs.

dimsav avatar dimsav commented on May 9, 2024

Sorry to bring this back.

I'm experiencing the same issue on MacOS 12.3.1

CleanShot 2022-04-11 at 10 50 22@2x

Alfred version: 4.6.4

Laravel Docs: v0.3.3

CleanShot 2022-04-11 at 10 53 18@2x

CleanShot 2022-04-11 at 10 53 51@2x

Any idea why Alfred skips laravel docs?

CleanShot 2022-04-11 at 10 54 44@2x

CleanShot 2022-04-11 at 10 55 06@2x

Thank you!

from alfred-laravel-docs.

tillkruss avatar tillkruss commented on May 9, 2024

@dimsav: Post your workflow debug logs.

Screen Shot 2022-04-11 at 8 44 11 AM

from alfred-laravel-docs.

dimsav avatar dimsav commented on May 9, 2024
[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.

tillkruss avatar tillkruss commented on May 9, 2024

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.

dimsav avatar dimsav commented on May 9, 2024

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:

CleanShot 2022-04-14 at 20 49 04@2x

  • 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.

tillkruss avatar tillkruss commented on May 9, 2024

The correct homebrew path is: brew --prefix php

from alfred-laravel-docs.

ivanhoe011 avatar ivanhoe011 commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.