Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing time "Invalid date" as "2006-01-02" #90

Closed
mredigonda opened this issue Aug 15, 2017 · 9 comments
Closed

parsing time "Invalid date" as "2006-01-02" #90

mredigonda opened this issue Aug 15, 2017 · 9 comments

Comments

@mredigonda
Copy link

mredigonda commented Aug 15, 2017

parsing time "Invalid date" as "2006-01-02": cannot parse "Invalid date" as "2006"
This may due to the corruption of .todos.json file.

This error pops up when I try to list my tasks (todolist list, todolist list by project, todolist list by context).

It started to happen after using the web version (opened with todolist web), maybe it could be cause by manipulating both the web version and the CLI at the same time, it seems that some action in the web version corrupted the .todos.json files.

Web version is also not working (it doesn't let you add tasks nor check them as completed), but at least it is displaying (I think) all of the tasks.

Great software, by the way 👍

EDIT: I revised the problem and updated the issue.
EDIT: Examining the .todos.json file, it seems that one of the events has an "Invalid date" in the "due" property, that was expected, but also, the task that has this value also has a period: "." in it, could this has something to do with the error? I think I have added the task, and after manipulating it (by changing date from web interface) it crashed. After manually repairing the .todos.json file, now everything is working fine.

@NonerKao
Copy link
Collaborator

Could you please recall the steps you might have taken that triggered the problem or the file corruption? We don't know how to reproduce this bug from your description.

@mredigonda
Copy link
Author

mredigonda commented Aug 28, 2017

EDIT: ... I messed things up here, explained later.

@gammons
Copy link
Owner

gammons commented Aug 29, 2017

ah, darn. The "invalid date" thing with todolist web was a problem in previous versions of todolist. I am sad to hear it has come back.

@gammons
Copy link
Owner

gammons commented Aug 29, 2017

@mredigonda what version of todolist are you using? I know this was fixed in a recent version.

@mredigonda
Copy link
Author

mredigonda commented Aug 29, 2017

Oh wait, I'm afraid I'm confused. Please ignore my previous message, it says things that makes no sense like 'from "00:00" to "00:00"', I confused repos with calcurse, which had another problem about dates. I'm really sorry about that. So you can forget about things like "I'm using an older version". My version was downloaded from the official page, not too long ago.

I couldn't reproduce this bug. I thought it could have to do with multiple instances of "todolist web" running on different tabs, or interacting from the command line and the web version at the same time.

@dnel
Copy link

dnel commented Oct 31, 2017

I've had this problem today on 0.8 from Brew. I don't know at what point it broke but I have had the web view open today so it may be that, I needed to remove "Invalid date" from two tasks in the json file manually to get it working again.

@NonerKao
Copy link
Collaborator

@dnel Is this still an issue? Or is any other Mac user suffering from this?

@dnel
Copy link

dnel commented Jan 10, 2018

I've not seen it since, but I haven't been using web view for a while due to it being broken.

@gammons
Copy link
Owner

gammons commented Aug 4, 2018

web view is fixed! Please re-open this issue if you see the same problem with the web view.

@gammons gammons closed this as completed Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants