jason0x43 / alfred-toggl

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

After Alfred 3 update, I cannot enter login and enter my API token. #18

Closed nikitavoloboev closed 8 years ago

nikitavoloboev commented 8 years ago

Here is the prompt that I get when I enter the 'toggl' workflow : 2016-05-10 at 21 34

If I enter my API token like so : 2016-05-10 at 21 34

I am given no option to do anything with it. And when I press here :

2016-05-10 at 21 35

I get this error :

2016-05-10 at 21 37

Is there anything I can do about it as I would really like to have this workflow working.

jason0x43 commented 8 years ago

Select the login option and press Enter.

nikitavoloboev commented 8 years ago

I get the same notification error :

2016-05-11 at 08 40

jason0x43 commented 8 years ago

Try opening Alfred's debug panel for the Toggl workflow and then activate the tgl 'login' item. What output do you see? (Check over the output and remove any personally identifying information before posting anything here.)

nikitavoloboev commented 8 years ago

here it is (I just blurred out my username, not sure if there is anything personal in there that I didn't remove) :

2016-05-11 at 19 36

and here it is in text :

[2016-05-11 19:36:29][STDERR: input.scriptfilter] 2016/05/11 19:36:28 Using config file /Users/USER/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json 2016/05/11 19:36:28 Using cache file /Users/USER/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.jason0x43.alfred-toggl/cache.json 2016/05/11 19:36:28 Error loading config: open /Users/USER/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json: no such file or directory 2016/05/11 19:36:28 loaded config: { false 0 false} 2016/05/11 19:36:28 loaded cache [alfred] 2016/05/11 19:36:28 args: []string{"./alfred-toggl", "tell", ""} [alfred] 2016/05/11 19:36:28 op: 'tell' [alfred] 2016/05/11 19:36:28 keyword: '' [alfred] 2016/05/11 19:36:28 query: '' [alfred] 2016/05/11 19:36:28 prefix: ' ' [alfred] 2016/05/11 19:36:28 skip: 'map[]' [alfred] 2016/05/11 19:36:28 sorting by keyword: [2016-05-11 19:36:30][ERROR: action.script] 2016/05/11 19:36:30 Using config file /Users/USER/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json 2016/05/11 19:36:30 Using cache file /Users/USER/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.jason0x43.alfred-toggl/cache.json 2016/05/11 19:36:30 Error loading config: open /Users/USER/Library/Application Support/Alfred 2/Workflow Data/com.jason0x43.alfred-toggl/config.json: no such file or directory 2016/05/11 19:36:30 loaded config: { false 0 false} 2016/05/11 19:36:30 loaded cache [alfred] 2016/05/11 19:36:30 args: []string{"./alfred-toggl", "do", "login"} [alfred] 2016/05/11 19:36:30 op: 'do' [alfred] 2016/05/11 19:36:30 keyword: 'login' [alfred] 2016/05/11 19:36:30 query: '' [alfred] 2016/05/11 19:36:30 prefix: 'login ' [alfred] 2016/05/11 19:36:30 skip: 'map[]' [alfred] 2016/05/11 19:36:30 got response: '33:41: execution error: Can’t get application "Alfred 2". (-1728)'

jason0x43 commented 8 years ago

Oooooh, I see. Sorry, somehow the part about "Alfred 3" update hadn't sunk in. I haven't tried the workflow with Alfred 3 yet (no beta invite), and apparently there's an issue. It doesn't look anything too significant, but it's difficult to know without Alfred 3 to test with.

jason0x43 commented 8 years ago

Yay, I have Alfred 3 now, so I can finally take a look at this

shrop commented 8 years ago

thanks @jason0x43!

roelvan commented 8 years ago

I have the same issue. Alfred 3

davidacreates commented 8 years ago

I have the same issue. Any update?

takethefake commented 8 years ago

+1

jason0x43 commented 8 years ago

Sorry for the delay, just got back from vacation. This one threw me for a bit because everything seemed fine at first, but I didn't remove Alfred 2 immediately after upgrading to Alfred 3. The issue is that the login process involves some dialog creation, and the dialogs are owned by the Alfred application. Currently, the AppleScript that creates the dialogs assumes the app is "Alfred 2", but now it's "Alfred 3", so I just need to add some logic to check which one is available.

jason0x43 commented 8 years ago

This is fixed in v1.1.7.

pugson commented 8 years ago

Works great. Thanks @jason0x43! 🙌

shrop commented 8 years ago

Thank you, @jason0x43! Tested and works great :)