jason0x43 / alfred-toggl

Alfred Workflow for interacting with the Toggl time tracking service
MIT License
367 stars 16 forks source link

Can't press return on entries #36

Closed nikitavoloboev closed 7 years ago

nikitavoloboev commented 7 years ago

With new update pressing return on any of the results, does nothing.

nikitavoloboev commented 7 years ago

Here is an error thrown :

[alfred] 2017/01/10 17:40:04 Skipping disabled command 'login'
[alfred] 2017/01/10 17:40:04 Skipping disabled command 'token'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'timers'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'projects'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'tag'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'report'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'options'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'logout'
[alfred] 2017/01/10 17:40:04 Adding menu item for 'reset'
[alfred] 2017/01/10 17:40:04 loaded cache
[alfred] 2017/01/10 17:40:04 Fuzzy sorting items
[2017-01-10 17:40:09][ERROR: action.script] [alfred] 2017/01/10 17:40:09 Alfred version: 3.2.1
[toggl] 2017/01/10 17:40:09 Using config file: /Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.jason0x43.alfred-toggl/config.json
[toggl] 2017/01/10 17:40:09 Using cache file: /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json
jason0x43 commented 7 years ago

The "ERROR" message is normal; it's generally just Alfred being dramatic when it sees text on the stderr stream. At least on my machine, that ERROR message is displayed, but selection works properly.

Try changing the Log selector to "All information" in the Alfred debugger and see if it displays something a bit more informative.

nikitavoloboev commented 7 years ago
Starting debug for 't: toggl'

[2017-01-10 17:52:17][trigger.external] Processing output of 'input.scriptfilter' with arg ''
[2017-01-10 17:52:18][STDERR: input.scriptfilter] [alfred] 2017/01/10 17:52:18 Alfred version: 3.2.1
[toggl] 2017/01/10 17:52:18 Using config file: /Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.jason0x43.alfred-toggl/config.json
[toggl] 2017/01/10 17:52:18 Using cache file: /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json
[alfred] 2017/01/10 17:52:18 set keyword to ''
[alfred] 2017/01/10 17:52:18 tell: data=alfred.workflowData{Keyword:"", Mode:"tell", Mod:"", Data:""}, arg=''
[alfred] 2017/01/10 17:52:18 Adding menu item for 'status'
[alfred] 2017/01/10 17:52:18 Skipping disabled command 'login'
[alfred] 2017/01/10 17:52:18 Skipping disabled command 'token'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'timers'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'projects'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'tag'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'report'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'options'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'logout'
[alfred] 2017/01/10 17:52:18 Adding menu item for 'reset'
[alfred] 2017/01/10 17:52:18 loaded cache
[alfred] 2017/01/10 17:52:18 Fuzzy sorting items
[2017-01-10 17:52:18][input.scriptfilter] {"items":[{"title":"status","subtitle":"Show current status","arg":"{\"keyword\":\"status\",\"mode\":\"tell\"}","valid":true,"autocomplete":"status"},{"title":"timers","subtitle":"List and modify recent time entries, add new ones","arg":"{\"keyword\":\"timers\",\"mode\":\"tell\"}","valid":true,"autocomplete":"timers"},{"title":"projects","subtitle":"List your projects, add new ones","arg":"{\"keyword\":\"projects\",\"mode\":\"tell\"}","valid":true,"autocomplete":"projects"},{"title":"tag","subtitle":"List your tags","arg":"{\"keyword\":\"tag\",\"mode\":\"tell\"}","valid":true,"autocomplete":"tag"},{"title":"report","subtitle":"Generate summary reports","arg":"{\"keyword\":\"report\",\"mode\":\"tell\"}","valid":true,"autocomplete":"report"},{"title":"options","subtitle":"Sets options","arg":"{\"keyword\":\"options\",\"mode\":\"tell\"}","valid":true,"autocomplete":"options"},{"title":"logout","subtitle":"Logout of Toggl","arg":"{\"keyword\":\"logout\",\"mode\":\"do\"}","valid":true,"autocomplete":"logout"},{"title":"reset","subtitle":"Reset this workflow, erasing all local data","arg":"{\"keyword\":\"reset\",\"mode\":\"do\"}","valid":true,"autocomplete":"reset"}]}
[2017-01-10 17:52:20][input.scriptfilter] Processing output of 'action.script' with arg '{"keyword":"projects","mode":"tell"}'
[2017-01-10 17:52:20][ERROR: action.script] [alfred] 2017/01/10 17:52:20 Alfred version: 3.2.1
[toggl] 2017/01/10 17:52:20 Using config file: /Users/nikivi/Library/Application Support/Alfred 3/Workflow Data/com.jason0x43.alfred-toggl/config.json
[toggl] 2017/01/10 17:52:20 Using cache file: /Users/nikivi/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json
[2017-01-10 17:52:20][action.script] Processing output of 'utility.filter' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 17:52:20][action.script] Processing output of 'utility.filter' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 17:52:20][utility.filter] Processing output of 'utility.replace' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 17:52:20][utility.replace] Processing output of 'output.callexternaltrigger' with arg ''
jason0x43 commented 7 years ago

Odd...after the output.callexternaltrigger you should be seeing a trigger.external line.

[2017-01-10 12:00:26][input.scriptfilter] Processing output of 'action.script' with arg '{"keyword":"projects","mode":"tell"}'
[2017-01-10 12:00:26][ERROR: action.script] [alfred] 2017/01/10 12:00:26 Alfred version: 3.2.1
[toggl] 2017/01/10 12:00:26 Using config file: /Users/jason/Library/Application Support/Alfred 3/Workflow Data/com.jason0x43.alfred-toggl/config.json
[toggl] 2017/01/10 12:00:26 Using cache file: /Users/jason/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json
[2017-01-10 12:00:26][action.script] Processing output of 'utility.filter' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 12:00:26][action.script] Processing output of 'utility.filter' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 12:00:26][utility.filter] Processing output of 'utility.replace' with arg '-trigger {"alfredworkflow":{"arg":"","variables":{"data":"{\"keyword\":\"projects\",\"mode\":\"tell\"}"}}}'
[2017-01-10 12:00:26][utility.replace] Processing output of 'output.callexternaltrigger' with arg ''
[2017-01-10 12:00:26][trigger.external] Processing output of 'input.scriptfilter' with arg ''
[2017-01-10 12:00:26][STDERR: input.scriptfilter] [alfred] 2017/01/10 12:00:26 Alfred version: 3.2.1
[toggl] 2017/01/10 12:00:26 Using config file: /Users/jason/Library/Application Support/Alfred 3/Workflow Data/com.jason0x43.alfred-toggl/config.json
[toggl] 2017/01/10 12:00:26 Using cache file: /Users/jason/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json
[alfred] 2017/01/10 12:00:26 set keyword to 'projects'
[alfred] 2017/01/10 12:00:26 tell: data=alfred.workflowData{Keyword:"projects", Mode:"tell", Mod:"", Data:""}, arg=''
[alfred] 2017/01/10 12:00:26 Skipping disabled command 'login'
[alfred] 2017/01/10 12:00:26 Skipping disabled command 'token'
[alfred] 2017/01/10 12:00:26 Adding items for 'projects'
[alfred] 2017/01/10 12:00:26 loaded cache

Double click on the self.start external trigger block all the way at the right end of the workflow; does it have a workflow ID of "self" and a trigger ID of "start"? Next, double click the trigger block all the way at the left of the workflow. Is its identifier "start"?

nikitavoloboev commented 7 years ago

Oh that was my bad. I renamed an external trigger. It works now. :)