liamcain / obsidian-calendar-plugin

Simple calendar widget for Obsidian.
MIT License
1.6k stars 135 forks source link

Unable to Create File #336

Closed OogieM closed 7 months ago

OogieM commented 11 months ago

Before Submitting: Double-check that you are running the latest version of the plugin. The bug might have already been fixed 😄

Describe the bug

New since installing version 1.4.16 of Obsidian I can no longer click on the calendar to create a daily note. I get an "Unable to create new file." error. But I can create a new note in the vault using the normal Obsidian create note options.

Steps to reproduce

  1. Go to the calendar view.
  2. Click on any date for which a new note does not exist.
  3. See error "Unable to create new file" and the note is not created.

Expected behavior

New note created using my template as it was done for the previous year+.

Screenshots

If applicable, add screenshots to help explain your problem.

OS

Macintosh Ventura 13.6

Obsidian Version (e.g. v0.10.6)

1.4.16

Theme (if applicable):

If the bug is visual, please provide the name of the Community Theme you're using.

ciceroxiao commented 7 months ago

Do not use "yyyyMMDD" for the date format of the "Diary" plugin.

OogieM commented 7 months ago

I don't use the diary plugin.

But I should have come back and indicated that after a while there was a new version of Obsidian out with a new Installer and after doing that re-install the bug is gone and I do get my proper template and file created.

ciceroxiao commented 7 months ago

The "Diary" plugin is the core plugin that comes with Obsidian. I had the same problem as you, then I changed the date format of the "Diary" plugin, and the problem didn't occur anymore. Sorry, I'm a Chinese user and I use Chinese. image

OogieM commented 7 months ago

Ah, on my system it's called daily notes and I never had that as my date format anyway. Mine looks like this

Screenshot 2024-02-18 at 4 01 40 PM
ciceroxiao commented 7 months ago

I don't use the diary plugin.

But I should have come back and indicated that after a while there was a new version of Obsidian out with a new Installer and after doing that re-install the bug is gone and I do get my proper template and file created.

Uh-huh. I mean, you could try changing your date format until the plugin can create or recognize the journal file properly. The reason? I checked the history of issue submissions and realized that the developer has not responded to this issue - which implies that, in the short term, the developer won't be able to resolve this issue for you.

OogieM commented 7 months ago

The developer doesn't have to respond. The issue is gone, done fixed. My solution was described in the message you responded to. If youa re still having problems with the date formats then I suggest you re-install Obsidian using a new Installer version like I did and see if that fixes it for you.