jason0x43 / alfred-toggl

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

Can't get pass "Talking to toggl..." #20

Closed vojtajina closed 7 years ago

vojtajina commented 8 years ago

The Alfred UI just showing "Talking to Toggl...", nothing else.

Tried the command:

$ ./alfred-toggl tell login
2016/07/07 11:20:40 Using config file /Users/vojta/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json
2016/07/07 11:20:40 Using cache file /Users/vojta/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.jason0x43.alfred-toggl/cache.json
2016/07/07 11:20:40 Error loading config: open /Users/vojta/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json: no such file or directory
2016/07/07 11:20:40 loaded config: { false 0 false}
2016/07/07 11:20:40 loaded cache
[alfred] 2016/07/07 11:20:40 args: []string{"./alfred-toggl", "tell", "login"}
[alfred] 2016/07/07 11:20:40 op: 'tell'
[alfred] 2016/07/07 11:20:40 keyword: 'login'
[alfred] 2016/07/07 11:20:40 query: ''
[alfred] 2016/07/07 11:20:40 prefix: 'login '
[alfred] 2016/07/07 11:20:40 skip: 'map[]'
[alfred] 2016/07/07 11:20:40 checking login
<?xml version="1.0"?><items><item arg="login" autocomplete="login"><title>login</title><subtitle>Login to toggl.com</subtitle><subtitle mod="alt">Login to toggl.com</subtitle><subtitle mod="cmd">Login to toggl.com</subtitle><subtitle mod="ctrl">Login to toggl.com</subtitle><subtitle mod="fn">Login to toggl.com</subtitle><subtitle mod="shift">Login to toggl.com</subtitle></item></items> 

So I created empty "{}" config.json, then:

$ ./alfred-toggl tell login
2016/07/07 11:22:40 Using config file /Users/vojta/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json
2016/07/07 11:22:40 Using cache file /Users/vojta/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.jason0x43.alfred-toggl/cache.json
2016/07/07 11:22:40 loaded config: { false 0 false}
2016/07/07 11:22:40 loaded cache
[alfred] 2016/07/07 11:22:40 args: []string{"./alfred-toggl", "tell", "login"}
[alfred] 2016/07/07 11:22:40 op: 'tell'
[alfred] 2016/07/07 11:22:40 keyword: 'login'
[alfred] 2016/07/07 11:22:40 query: ''
[alfred] 2016/07/07 11:22:40 prefix: 'login '
[alfred] 2016/07/07 11:22:40 skip: 'map[]'
[alfred] 2016/07/07 11:22:40 checking login
<?xml version="1.0"?><items><item arg="login" autocomplete="login"><title>login</title><subtitle>Login to toggl.com</subtitle><subtitle mod="alt">Login to toggl.com</subtitle><subtitle mod="cmd">Login to toggl.com</subtitle><subtitle mod="ctrl">Login to toggl.com</subtitle><subtitle mod="fn">Login to toggl.com</subtitle><subtitle mod="shift">Login to toggl.com</subtitle></item></items>
$ ./alfred-toggl tell timers
2016/07/07 11:26:47 Using config file /Users/vojta/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json
2016/07/07 11:26:47 Using cache file /Users/vojta/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.jason0x43.alfred-toggl/cache.json
2016/07/07 11:26:47 loaded config: { false 0 false}
2016/07/07 11:26:47 loaded cache
[alfred] 2016/07/07 11:26:47 args: []string{"./alfred-toggl", "tell", "timers"}
[alfred] 2016/07/07 11:26:47 op: 'tell'
[alfred] 2016/07/07 11:26:47 keyword: 'timers'
[alfred] 2016/07/07 11:26:47 query: ''
[alfred] 2016/07/07 11:26:47 prefix: 'timers '
[alfred] 2016/07/07 11:26:47 skip: 'map[]'
[alfred] 2016/07/07 11:26:47 sorting by keyword: timers
<?xml version="1.0"?><items><item><title>No results</title></item></items>

Tried both 1.1.6 and 1.1.7, using Alfred 2. Any ideas what I'm doing wrong?

jason0x43 commented 8 years ago

Is this still an issue? (Just trying to clean up the issue list.)

If it is, a couple things to note:

jason0x43 commented 7 years ago

I'm closing this to clean up the issue list. If it's still an issue, feel free to reopen it.