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

Issue with Calendar creating note: "Could not find Events in daily note" even though I have Events in my Daily Note template #555

Open
2 of 7 tasks
ngokevin opened this issue Apr 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ngokevin
Copy link

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports and didn't find any similar reports.

Expected Behavior

  1. Have a Daily Note template with Events heading
  2. Create an event for a day for which a Daily Note doesn't exist
  3. Calendar creates both the Daily Note, and then adds the event under Events heading

Current behaviour

image

  1. Calendar creates the Daily Note
  2. Calendar throws an error, could not find the Events heading, even though it exists in the template and in the new Daily Note

JavaScript console output

No response

Steps to reproduce

Plugins: Periodic Notes, Templater

  1. Use Daily Notes for Calendar
  2. Have Events for heading in Daily Note template
  3. Try to create an event for a day that doesn't exist

Calendar information

Daily Note template:

<% tp.web.daily_quote() %>

**<% tp.date.now("dddd, DD MMMM YYYY", 0, tp.file.title) %>**  
[[<% tp.date.now("YYYY-MM-DD", -1) %>|Yesterday]] — [[<% tp.date.now("YYYY-MM-DD", +1) %>|Tomorrow]]

## Sleep

- Sleep Start:: <% tp.date.now("YYYY-MM-DD", 0, tp.file.title) %>  
- Sleep End:: <% tp.date.now("YYYY-MM-DD", 0, tp.file.title) %>  

**#dream**: 

## Journal

## Tasks

## Events 

## Notes 

Which Operating Systems are you using?

  • macOS
  • Windows
  • Linux
  • Android
  • iOS

Obsidian Version

1.5.8

Full Calendar Plugin Version

0.10.7

Checks

  • I have tried it with all other plugins disabled and the error still occurs.

Possible solution

No response

Comments

No response

@ngokevin ngokevin added the bug Something isn't working label Apr 14, 2024
@ngokevin
Copy link
Author

I peeked the code, does it only accept H3 headings? I have H2 headings.

@ngokevin
Copy link
Author

It works if I add a sleep for 1 second to let the note get created.

ngokevin added a commit to ngokevin/obsidian-full-calendar that referenced this issue Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant