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

Project completely freezes when updating front matter; Uncaught Exception on date format #884

Open
ASalvail opened this issue May 30, 2024 · 3 comments
Labels
kind/bug Something isn't working lifecycle/active triage/confirmed Issue is well-defined and understood. Needs to have a priority/* label.

Comments

@ASalvail
Copy link

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.
image

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 enter 2024-0. Before I can write the digit 5, the date is then 2024-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

@ASalvail ASalvail added kind/bug Something isn't working needs-triage Issue needs a triage/* label labels May 30, 2024
@Acylation
Copy link
Collaborator

Will check and there’s a potential fix to release in #880

@Acylation Acylation added triage/needs-investigation Issue needs investigation before it can be confirmed. and removed needs-triage Issue needs a triage/* label labels Jun 3, 2024
@Acylation
Copy link
Collaborator

Acylation commented Jun 3, 2024

Sorry I can't reproduce neither in table cell date input nor the metadata editor. Though, there are some problem with current date input components. Maybe this is system related.

With the newly added beta versions (download manually or use BRAT, see #883 and https://github.com/marcusolsson/obsidian-projects/releases), could you confirm if the problem persists? Or, in about one/two weeks there will be a new version and you can check the problem again. Before that I will mark the issue as need-investigation.

@ASalvail
Copy link
Author

ASalvail commented Jun 3, 2024

I'll wait for the release of the new version and follow-up. Thanks for keeping me up-to-date!

@Acylation Acylation added triage/confirmed Issue is well-defined and understood. Needs to have a priority/* label. and removed triage/needs-investigation Issue needs investigation before it can be confirmed. labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working lifecycle/active triage/confirmed Issue is well-defined and understood. Needs to have a priority/* label.
Projects
None yet
Development

No branches or pull requests

2 participants