Project completely freezes when updating front matter; Uncaught Exception on date format #884
Labels
kind/bug
Something isn't working
lifecycle/active
triage/confirmed
Issue is well-defined and understood. Needs to have a priority/* label.
What happened?
Every time I manually update a front-matter date, the whole Projects UI freezes: I can't switch to another view, if I move a card in kanban view, the card hangs in the air and never disappears unless I quit Obsidian. The following stack trace also appears in the console which seems to be related to parsing a date.
I dug a bit deeper and it seems like the exception happens when the date is being entered. For example, to enter
2024-05-30
, I would first enter2024-0
. Before I can write the digit 5, the date is then2024-00
, which throws a range exception and hangs the Project process.What did you expect to happen?
For that exception to be handled in a way that doesn't freeze the whole plugin.
How can we reproduce it (as minimally and precisely as possible)?
Have a card linked to a front-matter with date type item. Set the item manually in a way that forces a temporary illegal date to be entered (e.g.
2024-00
).Anything else we need to know?
No response
Plugin version
1.17.3
Obsidian version
1.5.12
OS
macOS
The text was updated successfully, but these errors were encountered: