nikivi Posted September 15, 2017 Author Share Posted September 15, 2017 (edited) Actually no nvm, you won't get an update because the workflow thinks the latest release is : 1.7.0. As it shows in the logs. No idea why as in releases there is no 1.7.0 at all. And I do point to the correct repo from my code. ? I have no idea why that 1.7.0 is there or how I could possibly debug that.I tried to follow the code inside update.GitHub(repo) and I think things should be right. The latest release should be v2.3. I am also not fully sure if I need to put the v letter in my releases but since Alfred has it, I did. Edited September 15, 2017 by nikivi Link to comment
deanishe Posted September 16, 2017 Share Posted September 16, 2017 On 15/09/2017 at 8:16 PM, nikivi said: The latest release should be v2.3 There is no 2.3 release. On 15/09/2017 at 8:16 PM, nikivi said: 1.7.0. As it shows in the logs. I don't believe you. Link to comment
nikivi Posted September 16, 2017 Author Share Posted September 16, 2017 (edited) Oops, sorry, I meant 2.1. ? And I have no idea what happened but it actually shows 2.1.0 now (I am 100 % sure it didn't before ?) But the updating does not seem to kick in. I set 2.0 in my configuration sheet as version and it doesn't trigger me to update workflow. I also tried setting it to 1.0. Made a little screencast of it : http://quick.as/p6x0IRqbG I give up on this. You can't learn everything after all. ? Edited September 16, 2017 by nikivi Link to comment
deanishe Posted September 16, 2017 Share Posted September 16, 2017 (edited) No, it works. You're just always in such a ridiculous hurry, you don't notice what's going on. Edited September 19, 2017 by deanishe Remove extra image Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) It doesn't work for me though. Even in my new workflow here. The latest release is 'v1.1'. I try set workflow's version to 'v1.0' : When as latest release is v1.1 : and I don't get update prompt : Debugger says : 13:17:11 update.go:156: No releases available. And for Web Searches, same story for me. Although at least the debugger says that latest version is : And I get no update. ? Not sure why that works for you. But I am happy it works for someone. Thank you for any help. Edited September 19, 2017 by nikivi Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 You uploaded the release 15 minutes ago. The log clearly says it last checked for an update 22 hours ago. Did you even try to figure this out before posting? Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) Oh I see it now. I didn't notice that line. ? I guess it makes sense that it doesn't trigger to ask for update on each time you call the workflow. I just wanted to check to see if it is working well. Now it makes sense though. One small question (and I did think about it), for my time workflow, the updating works well. But for well searches. I run the 'check'. Then run my workflow but I don't get update. Not quite sure why. Isn't 2.1.0 more recent than 2.0. Edited September 19, 2017 by nikivi Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 So, we're back to posting screenshots, are we? No workflow. No code. Perhaps someone else will help you. I'm done. Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) Sorry. The workflow was the one you have, just with a different version number I changed. Thanks for the help you gave already. I might figure it out on my own. Edited September 19, 2017 by nikivi Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 1 hour ago, nikivi said: The workflow was the one you have How am I supposed to know that? Presumably, if you've changed the version, you've changed the workflow, too. Why else would you bump the version number? The bottom line is, you never provide what's needed to help you diagnose whatever problem you're having. Except when it's something super obvious, like the "15 minutes" one above. (Which in turn raises the question of whether you actually spend any of your own time on the problem before coming here to spend ours.) It's entirely unreasonable to expect somebody to go off and search for your workflow and its source code simply in order to help you. FWIW, if you're having an issue with a Go workflow, it isn't enough to link to a copy of the workflow. Python/Ruby/PHP workflows necessarily also include the source code, which is required to understand what's going on. If there's only a compiled executable in your workflow (as with Go), you must also provide a link to the same version of the source code the workflow was built with. For my part, I won't be helping you any more unless everything I need to answer your question is provided or directly linked in your post. Perhaps @GuiBwill help you out. He's a helpful and knowledgeable chap. nikivi 1 Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) 18 minutes ago, deanishe said: if you've changed the version, you've changed the workflow, too. Why else would you bump the version number? I just changed the version to test it. 8 hours ago, nikivi said: The latest release is 'v1.1'. I try set workflow's version to 'v1.0' 8 hours ago, nikivi said: And for Web Searches, same story for me. My bad for making assumptions on these things that turns out other people can't understand. And yeah @GuiB is a pretty cool guy. I've been reading this recently. Something I should make some Anki cards on. Oh and I am kind of learning things too. And do bring back something positive to this community with my workflows. At least I hope I do. Don't know if anyone actually uses any of them. Edited September 19, 2017 by nikivi Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 (edited) 25 minutes ago, nikivi said: I've been reading this recently. All excellent advice. Your post still lacks a link to the relevant version of the source code. Like I said, I'm not going to go hunt around GitHub simply in order to help you, especially as you've managed to create two versions tagged 2.1. Edited September 19, 2017 by deanishe Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) The Latest Source Code that the workflow I linked to is built from. Thank you for any help. I really want to just get this auto updating thing to work and never think about it again. Oh and little 'cool' thing. In my 'alfred-my-mind' workflow. All my workflows are inside 'github' entry. So you can open any of my repos in few seconds. Fun fact. Edited September 19, 2017 by nikivi Link to comment
GuiB Posted September 19, 2017 Share Posted September 19, 2017 Hey guys (@deanishe and @nikivi) ! Thanks for the kind words! I like to help people when I have some time and this helps me to learn new things as well! However, in this case, I never played with Go and AwGo, so I'm not sure I'll be helpful, but, @nikivi, I just downloaded you workflow from your latest version you uploaded on transfer.sh (https://transfer.sh/DgP3l/web-searches.alfredworkflow). I installed it, looked inside, saw there's a hotkey to activate it (ctrl+alt+s) so I did it. Alfred appeared with your workflow items, then at the top there was a mention that a new version was available (not sure if it appeared on the second activation, but it appeared automatically). So I pressed Enter to run the update (if I remember well, I needed to press 2 times Enter before something happened, don't know why). Then, I got prompt by Alfred to update my version (with the standard Alfred interface to install/update a workflow). Then I'm now set at version 2.1 (v2.1)... and things seem to be working... So, I'm wondering what is the problem exactly ? I thought it was the updating fonction wasn't appearing or working correctly, but it seems to be good from my side ? or maybe I didn't read well or read too fast ? Best! nikivi 1 Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 1 minute ago, GuiB said: Alfred appeared with your workflow items, then at the top there was a mention that a new version was available Yeah, that was the problem. Since the 'update: workflow' item does not appear for me for some reason although I am using the same workflow. ? In any way. I am happy it works for you. I just wanted to check so that I know the auto updating works correctly and I don't have to worry that users won't be getting updates. Thanks for checking in @GuiB. Hope you like the workflow. ? Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 6 minutes ago, GuiB said: So, I'm wondering what is the problem exactly ? God knows. They both work correctly for me (except that Niki forgot to include the update icon with his date-of-birth workflow): @nikivi: Try clearing the workflows' caches with the query workflow:delcache, and then run it again. In the case of your Web Searches workflow, check all the results (before entering any query) to see if the update item is simply lower down the list. Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 3 minutes ago, deanishe said: In the case of your Web Searches workflow, check all the results (before entering any query) Found it. So yeah. No problem indeed. I actually searched through there a bit first too but missed it. Also I assumed it would always surface to the top. As intended. 4 minutes ago, deanishe said: include the update icon with his date-of-birth workflow I will add it. Thank you. Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 Also, @nikivi, add a keyword and Placeholder Title to your Script Filters if you're going to publish your workflows. Alfred strips Hotkeys when it installs workflows, so your workflows literally do not work unless the user edits them. You complain that other authors only give their workflows Keywords, and not Hotkeys/External Triggers to their workflows. And then do the same thing yourself by not giving your workflows Keywords. At least a workflow without Hotkeys still works out of the box… Link to comment
GuiB Posted September 19, 2017 Share Posted September 19, 2017 @nikivi, great! I'm glad you found the problem! Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) 9 minutes ago, deanishe said: add a keyword and Placeholder Title to your Script Filters if you're going to publish your workflows. I will do from now on. Only thing. I really really wish @Andrew would fix this issue : It may not be an issue for many but since I call all my workflows from external trigger. This small flashing every time I call a workflow is super annoying. I want to see my results instantly. ? I really hope @Andrew will take a look at it and remove it. It even goes to as far as me removing titles and placeholders from all the other workflows I download just because of how annoying this little flash of title is. ? Edited September 19, 2017 by nikivi Link to comment
deanishe Posted September 19, 2017 Share Posted September 19, 2017 3 minutes ago, nikivi said: Also I assumed it would always surface to the top. As intended. Your assumption is wrong and computers don't understand intentions. As I told you before, if you give your items UIDs, Alfred will sort the results based on the user's history. If you want your items shown in the order you add them, you mustn't give them UIDs. nikivi 1 Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 Thank you @deanishe. Will make sure not to repeat the same mistake again. And big thanks for AwGo, it is seriously awesome. Link to comment
nikivi Posted September 19, 2017 Author Share Posted September 19, 2017 19 minutes ago, deanishe said: You complain that other authors only give their workflows Keywords, and not Hotkeys/External Triggers I only ask for external triggers to be added. I don't care about hotkeys. From now on, I will add an external trigger and a keyword/placeholder though. And I do hope @Andrew will remove that annoying flash of Title when calling script filters from hotkey/external that have a Title/placeholder in them. If he can add that, I will be so happy. Link to comment
Andrew Posted September 20, 2017 Share Posted September 20, 2017 @nikivi Alfred doesn't know when your script will return with results, and any change to the default behaviour will inevitably cause undesirable behaviour. Don't forget that you have full control over dynamic configuration of objects though... why not add a JSON Config utility between the hotkey trigger and the script filter to just set the titles to nothing. For example, something like this: You'll probably want to pass through the arg too... set the configuration as something like this: { "alfredworkflow" : { "arg" : "{query}", "config" : { "title" : "", "runningsubtext" : "", "subtext" : "", }, } } Cheers, Andrew nikivi and deanishe 2 Link to comment
nikivi Posted September 20, 2017 Author Share Posted September 20, 2017 (edited) Thank you @Andrew. This actually works well. I will include it in all my workflows now. This macro mitigates some of the pain from setting it up : Edited September 20, 2017 by nikivi Andrew 1 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