pochemuto / alfred-help-workflow

Helps to remember workflow keywords
73 stars 1 forks source link

Enter action doesn't work in Alfred 3 #1

Closed nikitavoloboev closed 6 years ago

nikitavoloboev commented 8 years ago

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

pochemuto commented 8 years ago

Yes, you can!

nikitavoloboev commented 8 years ago

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

pochemuto commented 8 years ago

Could you attach debug information?

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

nikitavoloboev commented 8 years ago

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 commented 8 years ago

What version of Alfred do you use?

nikitavoloboev commented 8 years ago

Alfred 3

pochemuto commented 8 years ago

Unfortunately, it isn't tested in Alfred 3.

nikitavoloboev commented 8 years ago

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 commented 8 years ago

Thanks for link. It should speed up fixing!

nikitavoloboev commented 8 years ago

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 commented 8 years ago

Could you test this build in you Alfred 3

alfred-keywords-help-1.0.2-alfred3.zip

nikitavoloboev commented 8 years ago

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 commented 6 years ago

Sorry for the long answer! I think I could add this behavior https://github.com/pochemuto/alfred-help-workflow/issues/4

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

nikitavoloboev commented 6 years ago

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 commented 6 years ago

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

whyliam commented 5 years ago

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