-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Unable to create new file #66
Comments
Problems ceased after latest update (Version 0.2.5) |
Correction: |
I'm experiencing this issue, "Unable to create new file" when I try to open the weekly note. |
Same issue here. I changed the name template and a new file was created but with the wrong file name: I changed "YYYY-MM_[CW]WW" to "YYYY-MM_[CW]WW_2" but "2022-01_CW03_2" was created instead of the correct "2022-01_CW04_2". The name preview in the plugin option window is correct. If I click the "Open this week" button again, then it fails with same error (because it tries to create a file that already exists?) |
I had this exact same issue. When I used the WW format in periodic notes it used the week number minus 1 when creating the file name, and thus where unable to create the file when that file name already existed. It also used the week number minus 1 when formating note templates with {{date: WW}}. Like it knew it was week 7, when pushing the "open this week" button, which prompted the creation of a new file, but then used the week number 6 for file creation. However, when I then installed the calendar plugin, everything worked fine, even with the calendar plugin turned off. As if it had overwritten some files that fixed the bug. |
Thank you @clolesen! I've been having the exact same issue as described above, and by installing the Calendar plugin the problem magically disappeared and |
I ran into this same problem. The docs point to moment.js for the formatting style (https://momentjs.com/docs/#/displaying/format/) and I noticed that my particular naming style was mixing ISO and non-ISO variables, e.g. 'gggg' and 'WW'. When I changed 'WW' to 'ww', I no longer have this issue. I suspect that you either need to stick with all ISO or all non-ISO in the variable usage or else something gets confused. |
I get this same message when I try to create a file that already exists. I'm running into this because the week number doesn't match the file it tries to create. |
@jeremymturner's resolution worked for me. One quirky thing was that it was thrown off by the passed-through/escaped text and not the ISO-related text:
|
I had issues with the week set wrong as well ("GGGG-W" converted to "2023-13" instead of the correct "2023-14". I installed the Calendar plugin, and at first it did not help, but then I checked the Calendar plugin config and changed "start of week" from Sunday to Monday and then it worked and created the note at "2023-14" as expected. For clarity: today is Monday. |
I'm coming across the same issue. Can anyone suggest how I can get the following to play nice: I've also tried |
I am experiencing the same error when trying to create a weekly note by clicking the week number in the calendar. The wrong week is selected. Today is Monday. It seems that using all ISO date formatting triggers the bug. Steps to reproduce:
If I click week 25 I am prompted to create the weekly note 2024/2024-W24. I tried changing from mixed format (YYYY/gggg-[W]WW) to ISO only (YYYY/GGGG-[W]WW) but that still triggers the bug. So there are two issues:
|
@jeremymturner's resolution worked for me as well - thanks! |
My weekly note settings:

When I select the command "Open Weekly Note" this message appears

This message only appears after a weekly note has been created. However, the weekly note created when I originally select the command "Open Weekly Note" has the week # listed as 36, while the Weekly note settings claim it should be 37

If I delete the current weekly note, then run the command, a new note is created (but with the wrong week # as previously mentioned).
Furthermore, when I select the command "Open Next Weekly Note," provided a weekly note has already been created, will open the first weekly note I created (even if I'm not currently viewing a weekly note).
Daily Note and Monthly Note function as expected.


Daily Note Settings (through Periodic Notes, not through the core daily note pluggin):
Monthly Note Settings:
And, in the off chance that it is relevant, Calendar Note settings

Obsidian Version: v0.12.15
OS: Windows 10, current version as of September 15th, 2021
Hardware: 5 year old Microsoft Surfacebook
The text was updated successfully, but these errors were encountered: