-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Trigger Templater on new file creation does not replace Templater commands #1485
Comments
Can you provide step by step instructions, and the template you're testing with? Templater appears to be working fine for me. |
Hi I appreciate your help. See below more details I am using simple templater templates like this below (for meeting) 2/When I am in the folder view, i select Meeting folder and right click to create a new note : it creates an empty note instead of using Meeting note Templates See below the two templates used for daily note and meeting. Any idea to solve these odd things ? thanks a lot Template Daily Notescreation date: <% tp.file.creation_date() %>
|
I have done any update configuration before updating obsidian to latest version. It seems something is broken |
my template is very similar and i am receiving this error after the update as well.
I can post my template as well if that helps |
I had same problem. The template used to work well, after update obsidian to 1.7.4, it does not rendered anymore. rollback to 1.6.7, the same template works again. Do not know why. |
@orossant I tried both of your templates in my main vault, test vault, and the sandbox vault, with daily notes and folder templates setup, and Templater executed as expected. Here is the output from the "Show debug info" command, from the sandbox vault test I did.
Can I get someone to try in the sandbox vault with just Templater installed to test folder templates, and to provide the output from the "Show debug info" command, to help me narrow down what the issue could be? I can't fix this if I can't reproduce this. Steps:
|
its something about how the the path is handled that changed. Here is a very plain template that fails
it worked prior to the obisidian update and works if i revert. Here is the stack trace
It does work ok on the sandbox. Just not sure what that null path is refering too |
@tgruben That error message leads me to believe that it's an issue with the calendar plugin, or an issue with your settings for the calendar plugin. None of the stack trace mentions the Templater plugin, just the calendar plugin. Is your daily note template in a folder called |
That is correct and |
I did managed to get it working again adding a folder action, i'm still not sure of how all the plugins interact here, but all is good. Thanks for the attention on my part |
Edit: nvm, rebuilding my vault cache did the trick (?) Could you point me in the right direction? I suddenly seem to suffer from the same thing, since today. It all worked yesterday and I haven't changed a thing except update the plugins and restarting Obsidian (but that was after it happened). Templater works on other templates, just not on the one created as daily note from the calendar plugin. |
I'm not sure if this is quite the right issue to post this on, but I think this is either an issue with Templater or Daily Notes/Obsidian itself. Posting here in case someone else has run into it/resolved it, but it seems like other folks are hitting it as well. I'm on a pretty fresh install, Templater, Dataview, and Daily Notes are the only plugins I've got right now. Getting started with Obsidian so user error is certainly not out of the question, to be clear, but I think I've got everything set up correctly given the situations in which things work fine. For me the issue of Templater not actually running replacements only happens on when I have Obsidian open up a new Daily Notes file on startup. It works correctly if I either:
I don't see any errors in the console on startup or anything along those lines. Here's my debug info if it's helpful.
|
FYI I updated Obsidian to the latest (v1.7.7) and the templater + periodic notes issue was resolved. Seems like you have v1.7.6, so could be worth a try I'm not sure what in changelog fixed it |
Anyone else still having this issue after updating to the latest versions of both Obsidian and Templater? If so please provide repro steps and the error in the console, if applicable. Otherwise I'm going to close this soon. |
Plugin information (please complete the following information):
Describe the bug
The right template is used but not rendered
Expected behavior
The right template is used and rendered
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: