Martien Oranje Posted June 12, 2017 Author Share Posted June 12, 2017 (edited) 6 hours ago, nateyall said: Hi Martien, Apologies if I haven't read this thread closely enough but I wasn't sure if you had thought of incorporating in the todos call an option to display your todos by #project or #inbox or #today in order to selectively display certain to-do lists? This would be a great feature if it's not already part of the workflow. Best, Nate Hi it's something I am willing to look in, would you mind creating an issue here on github (https://github.com/moranje/alfred-workflow-todoist/issues) so I can keep track of different requests. Also if you have any ideas on how you would like this function to work, write that down too. Also for those interested, I've just posted 3.1.4beta here which adds a better parser (namely #projects) and a little more visual feedback for the `todo add` command. Thanks Martien Edited June 12, 2017 by Martien Oranje Link to comment
Martien Oranje Posted June 25, 2017 Author Share Posted June 25, 2017 The workflow has been updated to give more visual feedback. See changelog for more information on changes. Martien Link to comment
evinsmj Posted July 4, 2017 Share Posted July 4, 2017 I am using workflow version 3.1.5. When I do t:token _______, I get an error message that it's an invalid token. I've even reset my API token on Todoist. Any ideas? Link to comment
Martien Oranje Posted July 4, 2017 Author Share Posted July 4, 2017 Hmmm yeah, I think I do. I may have made a wrong an assumption on the characters in the API token. I made the assumption based on tokens I've seen that they are always exactly 40 characters long and only consist of numbers 0-9 and lower case letters 'a' to 'f'. Can you tell where your token is different from this (don't share the entire token)? Martien Link to comment
evinsmj Posted July 5, 2017 Share Posted July 5, 2017 At first glance, I'm not seeing any deviation from your assumptions. Below is the API that I was using (I just reset it so it no longer works). 2d54fb0338570e0f39f66a39455356b001c4ec4d Link to comment
MacAutomationTips Posted July 12, 2017 Share Posted July 12, 2017 Hi, thanks for this. However, when I try to enter a new task, I get and Invalid Token area. Link to comment
verypleasant Posted July 16, 2017 Share Posted July 16, 2017 Am having the same. Here is an expired token: 4a488b0d169da95c70ef7d35e2be3b2982429fd5 Link to comment
TodMaffin Posted July 18, 2017 Share Posted July 18, 2017 I'm getting the same "Failure: Error: Not a Valid Token" message when I use the T:TOKEN command (and yes, I'm putting my 40-character token in place). I reset my token and tried with the new one. I have the PowerPack, and a Premium Business Todoist account. I'm using v3.1.5 of this workflow. Is this workflow now no longer supported? Link to comment
Vero Posted July 18, 2017 Share Posted July 18, 2017 2 hours ago, TodMaffin said: Is this workflow now no longer supported? Given that the workflow developer @Martien Oranje last posted two weeks ago, and logged in to the forum no more than 10 days ago, it's likely that his workflow simply needs a few tweaks, not that the workflow has been abandoned. Keep in mind that these workflows are created by users (who could be on holiday, given it's mid-July!) As Martien says, he made assumptions (that may or may not be correct) about the API tokens users get, so it might be a very easy fix for anyone who's also familiar with Todoist and its API. Cheers, Vero Link to comment
deanishe Posted July 18, 2017 Share Posted July 18, 2017 Are you guys sure you aren't accidentally copying an extra space or newline at the end of the API key? Link to comment
TodMaffin Posted July 18, 2017 Share Posted July 18, 2017 24 minutes ago, deanishe said: Are you guys sure you aren't accidentally copying an extra space or newline at the end of the API key? Yep, I tried several times. No extra characters. Link to comment
Martien Oranje Posted July 19, 2017 Author Share Posted July 19, 2017 Yeah you are right, I have introduced a bug somewhere I'm afraid. I have had little free time to diagnose the exact problem I'm afraid. I'll try to fix as soon as I do. Martien Link to comment
Martien Oranje Posted July 22, 2017 Author Share Posted July 22, 2017 (edited) Found it, working with JSON in bash is a little tricky. Should be fixed. If not let me know. Find the updated binairy on github or use t:update (assuming you are on v3.1.5) Martien Edited July 22, 2017 by Martien Oranje Link to comment
evinsmj Posted July 22, 2017 Share Posted July 22, 2017 Thanks, Martien. I was able to add the token without error messages this time. However, when I type "todo get milk" in Alfred, I now get an "invalid argument" error message. I have also tried "todo get milk tomorrow #personal" and the same happens. I can't find anything in the documentation that I'm doing incorrect. Any thoughts? Link to comment
Martien Oranje Posted July 24, 2017 Author Share Posted July 24, 2017 On 23-7-2017 at 1:33 AM, evinsmj said: Thanks, Martien. I was able to add the token without error messages this time. However, when I type "todo get milk" in Alfred, I now get an "invalid argument" error message. I have also tried "todo get milk tomorrow #personal" and the same happens. I can't find anything in the documentation that I'm doing incorrect. Any thoughts? First thought? I shouln't be allow to write code :-p. I am a little pressed for time atm so I tried to quick fix this one and should have tested it better. Also the code library needs a test suite, to protect me from myself. I'll try to fix, properly test and write and create a test suite after. Hang on.. Martien Mário Arand 1 Link to comment
evinsmj Posted July 25, 2017 Share Posted July 25, 2017 Hahaha. Hey, I know this "volunteer" for you, so whenever you get around to it, it'd be appreciated. Thanks Link to comment
Holger Posted July 28, 2017 Share Posted July 28, 2017 same problem as @evinsmj to me. As I love the idea of using todist from Alfred I'd love to use your workflow. Many thanks for spending your leisure time to give us a productiv environment :-) Would be great to get a fix :-) Link to comment
asutt Posted September 1, 2017 Share Posted September 1, 2017 (edited) **UPDATE: This issue is resolved for me by manually installing the workflow from GitHub. I'm also receiving the invalid argument error when adding a new task. When debugging, the message I receive is: [2017-09-01 01:02:40][STDERR: input.scriptfilter] ./shell/todo.parse.sh: line 52: INBOX : command not found ./shell/todo.parse.sh: line 53: todoist_create_task: command not found ./shell/todo.parse.sh: line 54: : command not found [2017-09-01 01:02:42][ERROR: action.script] module.js:491 throw err; ^ Error: Cannot find module '/Users/user1/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.2817A63C-F83B-4358-A9BE-C87B62C5393C/index.js' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at Function.Module.runMain (module.js:609:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:598:3 Edited September 25, 2017 by asutt Issue Resolved Link to comment
heyjoetofu Posted November 8, 2017 Share Posted November 8, 2017 First off: Thanks so much for the work, Martien! As long as the workflow does, what's it's supposed to, it's awesome. Because I wasn't able to install nodejs through the included script, I updated from v3.1.6 to the recent v4.0.2. Unfortunately this version doesn't really work for me. The "t"-command doesn't work with the ":token", ":nodejs" and … well other commands, except for ":update". The central "todo" doesn't work either. For now I refrained from opening an Issue on Github, because I wanted to ask the people on here if I'm the only one with the problem. Link to comment
Martien Oranje Posted November 8, 2017 Author Share Posted November 8, 2017 Do create an issue, I'll see if I can get around to fixing the problem. Any error messages to help me along? Link to comment
heyjoetofu Posted November 8, 2017 Share Posted November 8, 2017 Will do! Unfortunately probably not really helpful messages, I suppose. But I'll copy them into the Issue. Thanks a ton Link to comment
seniorchang Posted January 3, 2018 Share Posted January 3, 2018 When adding a simple task ---> todo add milk I get the error message (check attachment), however the task is added to my inbox. I haven't changed anything. Any suggestions? Link to comment
Eric Ray Posted January 4, 2018 Share Posted January 4, 2018 Yes, I'm getting a similar issue. Slightly different error, though. Link to comment
deanishe Posted January 4, 2018 Share Posted January 4, 2018 @seniorchang, @Eric Ray Could you not just post pictures of error messages? They aren't generally very helpful (you can't even see the entire message). Please see here for info on how to post a useful (i.e. actionable) bug report: Link to comment
Dzier Posted January 5, 2018 Share Posted January 5, 2018 On 8/11/2017 at 4:51 PM, Martien Oranje said: Do create an issue, I'll see if I can get around to fixing the problem. Any error messages to help me along? Hi @Martien Oranje! Well I have an issue with the workflow since I upgrade to High Sierra 10.13.2, this is the debug message, I think is the same: [2018-01-05 10:18:03][input.scriptfilter] Queuing argument 'Buscar lamina proctectora FitBit #Personal !!1 , today' [2018-01-05 10:18:04][input.scriptfilter] Script with argument '(null)' finished [2018-01-05 10:18:04][input.scriptfilter] {"items":[{"title":"Create new task - Buscar lamina proctectora FitBit","uid":"todoist_create_task","arg":"{\"labels\":[],\"priority\":\"1\",\"project\":\"Personal\",\"date\":\"today\",\"task\":\"Buscar lamina proctectora FitBit\"}","type":"default","valid":true,"autocomplete":"Buscar lamina proctectora FitBit #Personal !!1 , today","icon":"icon.png","subtitle":"PERSONAL ‼ 1 ⧖ today "},{"title":"Set project","uid":"--------------------","arg":"","type":"default","valid":false,"autocomplete":"Buscar lamina proctectora FitBit #Personal !!1 , today #","icon":{"path":"project.png"},"subtitle":"Store task in a project, ex. #Work"},{"title":"Add label","uid":"--------------------","arg":"","type":"default","valid":false,"autocomplete":"Buscar lamina proctectora FitBit #Personal !!1 , today @","icon":{"path":"label.png"},"subtitle":"Add a label to this task, ex. @15min"},{"title":"Set priority","uid":"--------------------","arg":"","type":"default","valid":false,"autocomplete":"Buscar lamina proctectora FitBit #Personal !!1 , today !!","icon":{"path":"priority.png"},"subtitle":"Set task priority, ex. !!3"},{"title":"Set date","uid":"--------------------","arg":"","type":"default","valid":false,"autocomplete":"Buscar lamina proctectora FitBit #Personal !!1 , today , ","icon":{"path":"date.png"},"subtitle":"Set a date using a todoist date string, ex. today"}]} [2018-01-05 10:18:06][input.scriptfilter] Processing output of 'action.script' with arg '{"labels":[],"priority":"1","project":"Personal","date":"today","task":"Buscar lamina proctectora FitBit"}' [2018-01-05 10:18:17][action.script] Processing output of 'utility.junction' with arg 'Error: Invalid argument value ({"threshold":1,"expected":"minlen","argument":"temp_id"}) ' [2018-01-05 10:18:17][utility.junction] Processing output of 'utility.filter' with arg 'Error: Invalid argument value ({"threshold":1,"expected":"minlen","argument":"temp_id"}) ' [2018-01-05 10:18:17][utility.filter] Processing output of 'output.notification' with arg 'Error: Invalid argument value ({"threshold":1,"expected":"minlen","argument":"temp_id"}) ' [2018-01-05 10:18:17][utility.junction] Processing output of 'utility.filter' with arg 'Error: Invalid argument value ({"threshold":1,"expected":"minlen","argument":"temp_id"}) There's is also a issue with priorities, they are displaying in the wrong way, like they are inverted, ex: !!4 (in the workflow is !!1), !!1 (in the workflow is !!4) Thanks in advance, and so many thanks for creating this amazing workflow, it simplified a lot the administration of assignment keys and learn them T.T! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now