idpaterson / alfred-wunderlist-workflow

Unbelievably fast task entry in Wunderlist with due dates, reminders, and recurrence
297 stars 8 forks source link

Leading hyphen "wl- " causes an error upon task entry #119

Closed kaspersoerensen closed 8 years ago

kaspersoerensen commented 8 years ago

Not really a bug - but maybe some error messaging could be nice. Example: I punch in the following: wl- div: Protocol due 11 may

Which gives this error: skaermbillede 2016-05-03 kl 15 14 11

The error was that I typed wl- and then started typing the list name. That was a bit difficult to figure out by the error message.

Version of Alfred-Wunderlist-Workflow: 0.6.0-beta.3

idpaterson commented 8 years ago

@kaspersoerensen thanks for reporting, it looks like that hyphen indeed causes a problem when the task is added. The <?xml bit suggests that the workflow tried to handle your task entry as a normal query that you typed in to Alfred rather than as an action. When you press return the workflow includes a --commit at the end of the message to indicate that you want to perform the corresponding action, so I wonder if there is a problem parsing that --commit syntax when there is a preceding hyphen, as if it's stripping off your "- div: Protocol due 11 may" as another -- command...

Good find, I'll take a look at that this evening.

idpaterson commented 8 years ago

This was an easy fix, it will go out with the next release since it is not a high priority bug. Out of curiosity, did you arrive at wl- after using alt+delete to navigate back to the main menu from a different screen?

kaspersoerensen commented 8 years ago

Hi, Nice to hear! I actually just "misused" the command and typed wl- as I was first going to search for a task.

idpaterson commented 8 years ago

Thanks for following up, just a few more things to finish up before 0.6.0 is released so this will be in the next beta.

idpaterson commented 8 years ago

This is fixed in 0.6.0-beta.4