Skip to content
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

Enter action doesn't work in Alfred 3 #1

Closed
nikitavoloboev opened this issue Aug 1, 2016 · 16 comments
Closed

Enter action doesn't work in Alfred 3 #1

nikitavoloboev opened this issue Aug 1, 2016 · 16 comments

Comments

@nikitavoloboev
Copy link

For example I forget some command, search for it, find it, press enter and it activates. Can I do that?

@pochemuto
Copy link
Owner

Yes, you can!

@nikitavoloboev
Copy link
Author

nikitavoloboev commented Aug 1, 2016

It doesn't work for me for some reason though. It doesn't do anything when I press return on the searches.

@pochemuto
Copy link
Owner

Could you attach debug information?

alfred preferences 2016-08-01 17-41-40

@nikitavoloboev
Copy link
Author

Here is the log after trying to run it on some command :

Starting debug for 'alfred keywords help'

[2016-08-01 16:44:37][STDERR: input.scriptfilter] 16:44:37 workflow.py:2140 DEBUG    Workflow version : 1.0.2
16:44:37 workflow.py:1543 DEBUG    Reading settings from `/Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ...
16:44:37 workflow.py:2401 DEBUG    Update check not due
16:44:37 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/actions.cpickle
16:44:37 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/__workflow_update_status.cpickle
16:44:37 workflow.py:2349 DEBUG    update_data : {u'available': False}
16:44:37 workflow.py:2331 DEBUG    Set last run version : 1.0.2
16:44:37 workflow.py:2176 DEBUG    Workflow finished in 0.056 seconds.
[2016-08-01 16:44:38][STDERR: input.scriptfilter] 16:44:38 workflow.py:2140 DEBUG    Workflow version : 1.0.2
16:44:38 workflow.py:1543 DEBUG    Reading settings from `/Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ...
16:44:38 workflow.py:2401 DEBUG    Update check not due
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/actions.cpickle
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/__workflow_update_status.cpickle
16:44:38 workflow.py:2349 DEBUG    update_data : {u'available': False}
16:44:38 workflow.py:2331 DEBUG    Set last run version : 1.0.2
16:44:38 workflow.py:2176 DEBUG    Workflow finished in 0.038 seconds.
[2016-08-01 16:44:38][STDERR: input.scriptfilter] 16:44:38 workflow.py:2140 DEBUG    Workflow version : 1.0.2
16:44:38 workflow.py:1543 DEBUG    Reading settings from `/Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ...
16:44:38 workflow.py:2401 DEBUG    Update check not due
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/actions.cpickle
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/__workflow_update_status.cpickle
16:44:38 workflow.py:2349 DEBUG    update_data : {u'available': False}
16:44:38 workflow.py:2331 DEBUG    Set last run version : 1.0.2
16:44:38 workflow.py:2176 DEBUG    Workflow finished in 0.037 seconds.
[2016-08-01 16:44:38][STDERR: input.scriptfilter] 16:44:38 workflow.py:2140 DEBUG    Workflow version : 1.0.2
16:44:38 workflow.py:1543 DEBUG    Reading settings from `/Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ...
16:44:38 workflow.py:2401 DEBUG    Update check not due
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/actions.cpickle
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/__workflow_update_status.cpickle
16:44:38 workflow.py:2349 DEBUG    update_data : {u'available': False}
16:44:38 workflow.py:2331 DEBUG    Set last run version : 1.0.2
16:44:38 workflow.py:2176 DEBUG    Workflow finished in 0.034 seconds.
[2016-08-01 16:44:38][STDERR: input.scriptfilter] 16:44:38 workflow.py:2140 DEBUG    Workflow version : 1.0.2
16:44:38 workflow.py:1543 DEBUG    Reading settings from `/Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/settings.json` ...
16:44:38 workflow.py:2401 DEBUG    Update check not due
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/actions.cpickle
16:44:38 workflow.py:1778 DEBUG    Loading cached data from : /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.pochemuto.alfred.workflow.AlfredHelp/__workflow_update_status.cpickle
16:44:38 workflow.py:2349 DEBUG    update_data : {u'available': False}
16:44:38 workflow.py:2331 DEBUG    Set last run version : 1.0.2
16:44:38 workflow.py:2176 DEBUG    Workflow finished in 0.040 seconds.
[2016-08-01 16:44:39][ERROR: action.script] 31:39: syntax error: A “"” can’t go after this identifier. (-2740)

@pochemuto
Copy link
Owner

What version of Alfred do you use?

@nikitavoloboev
Copy link
Author

Alfred 3

@pochemuto pochemuto changed the title Is it possible to run the commands from this workflow? Enter action doesn't work in Alfred 3 Aug 1, 2016
@pochemuto
Copy link
Owner

Unfortunately, it isn't tested in Alfred 3.

@nikitavoloboev
Copy link
Author

nikitavoloboev commented Aug 1, 2016

I remember reading on Alfred Forums that such problems could be fixed by changing reference from Alfred2 to Alfred3.

Here is a thread with it.

Not quite sure what I need to update though in this workflow to make that work.

@pochemuto
Copy link
Owner

Thanks for link. It should speed up fixing!

@nikitavoloboev
Copy link
Author

Hey,

I really do love this workflow but the issue with pressing return on results not running the actions is really unfortunate.

Did you find out what the issue with it is?

Thank you.

pochemuto pushed a commit that referenced this issue Oct 7, 2016
@pochemuto
Copy link
Owner

Could you test this build in you Alfred 3

alfred-keywords-help-1.0.2-alfred3.zip

@nikitavoloboev
Copy link
Author

Thank you, this works. That was a simple fix. :)

My only question. Right now pressing return, goes to alfred prompt with that name but doesn't activate the thing. For example if I have an action with some name and I search for it with the workflow, I have to press enter twice to run it.

Is there a way to only press return once to run it?

@pochemuto
Copy link
Owner

pochemuto commented May 13, 2018

Sorry for the long answer! I think I could add this behavior
#4

It would be great if you tested updated workflow which supports both versions of Alfred
alfred-keywords-help-1.1.alfredworkflow.zip

@nikitavoloboev
Copy link
Author

It fails on every item with this message in Debugger:

[2018-05-13 16:10:26][input.scriptfilter] Processing output of 'action.script' with arg 'list '
[2018-05-13 16:10:26][ERROR: action.script] 250:251: syntax error: Expected end of line but found “"”. (-2741)

@nikitavoloboev
Copy link
Author

Hey @pochemuto, did you get any chance to look at this yet?

@whyliam
Copy link

whyliam commented Apr 3, 2019

WX20190403-171636
打开debug,看一下有什么错误提示吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants