GithubHelp home page GithubHelp logo

Cannot log in about alfred-github-workflow HOT 9 CLOSED

gharlan avatar gharlan commented on July 4, 2024
Cannot log in

from alfred-github-workflow.

Comments (9)

gharlan avatar gharlan commented on July 4, 2024

That's strange. Please do the following:

  1. Open Alfred Preferences, Workflows
  2. Right Click on "GitHub commands", "Show in Finder"
  3. Open this directory in Terminal
  4. php search.php "> login jcamenisch"

What is the result?

from alfred-github-workflow.

gharlan avatar gharlan commented on July 4, 2024

Oh, GitHub has changed the command bar, so my workflow does not work any more. I have to look deeper into the changes…

from alfred-github-workflow.

gharlan avatar gharlan commented on July 4, 2024

Please update the workflow and check if it works for you now…

from alfred-github-workflow.

jcamenisch avatar jcamenisch commented on July 4, 2024

Here we go:

> php search.php "> login jcamenisch"
PHP Fatal error:  Call to undefined function curl_init() in /Users/jcamenisch/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.C98486E8-9D64-4CB1-810B-3C36711A54E5/workflow.php on line 74

This should be enough direction to fix it, I would think (with a little help from the Interwebz).

from alfred-github-workflow.

gharlan avatar gharlan commented on July 4, 2024

The workflow requires the PHP Curl Extension, which is installed per default on OSX.

from alfred-github-workflow.

jcamenisch avatar jcamenisch commented on July 4, 2024

For any phpbrew users who might stumble in here: enable curl by appending -- --with-curl=/usr/include/curl to your phpinstall command. E.g.

> phpbrew install php-5.4.10 +default +pcntl +mysql -- --with-curl=/usr/include/curl

from alfred-github-workflow.

jcamenisch avatar jcamenisch commented on July 4, 2024

The weird thing is, after installing php_curl, I still have the original symptom in Alfred. I've deleted the workflow and reinstalled it again. in the terminal, I get:

> php search.php "> login jcamenisch"
<?xml version="1.0"?>
<items><item uid="6867977c2f22806b59ce1a296e0d88ee" arg="&gt; login jcamenisch" autocomplete=" &gt; login jcamenisch"><icon>icon.png</icon><title>gh &gt; login jcamenisch</title><subtitle>Log in to GitHub</subtitle></item></items>

But in Alfred, it still hangs on "Loading results..." Pressing Enter has no effect.

from alfred-github-workflow.

gharlan avatar gharlan commented on July 4, 2024

Maybe Alfred uses a different php installation as the terminal. I suppose that Alfred always uses /usr/bin/php, so please try this in terminal:

/usr/bin/php search.php "> login jcamenisch"

from alfred-github-workflow.

jcamenisch avatar jcamenisch commented on July 4, 2024

Doh! I should have thought of that. I was trying to figure out what my custom php was still lacking. Just needed:

sudo ln -s `which php` /usr/bin/php

from alfred-github-workflow.

Related Issues (20)

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.