obsidian-projects icon indicating copy to clipboard operation
obsidian-projects copied to clipboard

Unable to correctly display newly created files in the table view (reproducible)

Open kickTiger opened this issue 1 year ago • 1 comments

What happened?

Creating notes through templates in a Project causes an error when the note contains date code, leading to the entire project freezing.

Newly created notes do not appear on the project interface. Switching projects does not resolve the issue;

only closing and reopening the project panel does.

What did you expect to happen?

Correctly recognizes the date format and then displays the Project plugin content correctly.

How can we reproduce it (as minimally and precisely as possible)?

Reproduction steps:

  1. Use the Templater plugin syntax to create a frontmatter attribute:
---
startdate: <%tp.date.now("YYYY-MM-DD")%>
enddate: <%tp.date.now("YYYY-MM-DD")%>
---
  1. Invoke this template within a project.
  2. The project plugin will report an error, failing to display the newly created file. The developer console shows errors related to the date format.
  3. Closing and reopening the project plugin interface allows the Templater plugin-generated dates to be correctly recognized as date formats. This requires closing and reopening each time. image

I believe the issue arises from a conflict between the date format in the template file and the date format recognized by the project, causing the unrecognized problem.

Anything else we need to know?

No response

Plugin version

1.17.1

Obsidian version

v1.5.8

OS

Windows

kickTiger avatar Mar 02 '24 10:03 kickTiger

@Acylation Sometimes the row is present but empty. Other times it is just not there.

I'm sure it happened on my phone. I need to check whether the desktop is doing this for me.

Pixel 8 phone, up to date.

bean5 avatar Aug 20 '24 14:08 bean5