Giter Club home page Giter Club logo

Comments (8)

eibrahim avatar eibrahim commented on September 13, 2024 2

I am having the same issues, I forked the code and tried to fix it. If you can point me in the right direction, I can fix and issue a PR.

from alfred-github-workflow.

iamstevendao avatar iamstevendao commented on September 13, 2024

Just confirm that I have the same issue, hope the team will update it to be able to work with Alfred 3 soon.

from alfred-github-workflow.

schwemmer avatar schwemmer commented on September 13, 2024

I have the same issue with Alfred 4. Apparently this is no longer working for years now. Taking a closer look at the README, I see now that it requires Alfred 2. Too bad, this would have been quite useful.

from alfred-github-workflow.

willfarrell avatar willfarrell commented on September 13, 2024

Someone, like to write a PR to fix?

from alfred-github-workflow.

schwemmer avatar schwemmer commented on September 13, 2024

I am new to Alfred (second day) and never used the Github API. Any clues where to start? Is it that the Github API has changed or is the problem an incompatibility between the Alfred versions?

from alfred-github-workflow.

schwemmer avatar schwemmer commented on September 13, 2024

The debugging output says:

mkdir: /Users/<username>/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
2020-09-10 22:13:11.951 defaults[77496:5848813] 
The domain/default pair of (/Users/<username>/Library/Application Support/Alfred 2/Workflow Data/com.farrell.github.alfredworkflow/settings.plist, github.proxy) does not exist

The issue here, I think, is the hard-coded path to Alfred 2 that no longer exists in Alfred versions 3 and 4, on lines 41 and 42 of workflows.php:

$this->cache = $this->home. "/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/".$this->bundle;
$this->data  = $this->home. "/Library/Application Support/Alfred 2/Workflow Data/".$this->bundle;

I could only find this official documentation: https://www.alfredapp.com/help/workflows/script-environment-variables/ which strangely lists the same paths, containing "Alfred 2".

alfred_workflow_cache and alfred_workflow_data

These are the recommended locations for volatile and non-volatile workflow data:

Cache: ~/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/[bundle id]
Data: ~/Library/Application Support/Alfred 2/Workflow Data/[bundle id]

from alfred-github-workflow.

schwemmer avatar schwemmer commented on September 13, 2024

I more or less figured out how to build the workflow (where are the docs for this?) and adapted those paths (Alfred-2 => Alfred and Alfred 2 => Alfred) which gets rid of the first two errors, but there are more errors after that. I'll look into it but not sure if I can fix it.

from alfred-github-workflow.

schwemmer avatar schwemmer commented on September 13, 2024

It's a pretty complicated combination of PHP code, bash scripts, Github API and Alfred internals. Also, I can't find proper documentation about how to develop. It's very tedious to manually archive the files, rename the archive and import it every single time you change a line of code. var_dump() does not seem to work either. In short, it's too complicated for me. Sorry I can't help with a PR. I see why you haven't updated this yet, it's not trivial for sure!

For now I just created a custom web search that searches Github which is good enough for me for the moment.

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.