SilentVoid13 / Templater Public
generated from obsidianmd/obsidian-sample-pluginNew 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
[BUG] Add a template to the current note v1.9.5 #391
Comments
|
Seeing this as well. I think it's related to the trigger on new file creation. I noticed that the "Empty File Template" box is missing from the options menu. It's likely that the template is never set and that this is causing the hook to break |
|
Broken for me as well. Where can I find the error log? |
|
Hey @Borber, when does this error happen? Can you try restarting obsidian and tell me if the bug still persist? If it does, can you show me the template that is causing that error? @rapatel0 if that is indeed related to the old "empty file template" setting, just restart obsidian and it should be fixed. |
|
Hey @midnightmercenary, you can find the error log by pressing |
|
Brand new to Obsidian, so a fresh install. Only folder I currently have is a This is the template: |
I can't insert any template without getting an error, even just plain text |
|
|
@Borber can you show me your template file (the content)? Also try uninstalling and reinstalling Templater. @pard68 Everything works fine on my end with this template (I'm on 1.9.6. but that shouldn't matter). I tried it on a fresh vault as you said and everything is good, I'm not sure what's the problem. |
Everything was fine after the reinstallation |
|
@Borber glad to hear that! Maybe the old settings that I removed in 1.9.x are making it fail, I'm not sure what was the problem. @pard68 @midnightmercenary Try uninstall / reinstalling, that should fix it. Tell me if it fixes it. |
|
|
|
Nice, weird bug for sure. |
I uninstalled the plugin, restarted Obsidian, re-installed plugin, and restarted Obsidian with no luck. While I'm no longer getting an error, the template is not rendering. |
|
I'm having the same issue, here's my data.json as requested |
|
@midnightmercenary dumb question but: did you enable the plugin? |
Yes I did, I'm getting this error now: loading markdown-table-editor plugin |
Removing <% tp.web.daily_quote() %> from my Daily Notes Template fixed the issue. The template now renders. Is there a fix available for the Daily Quote issue? |
|
Just fyi, I had 2 templates_folder variables in there somehow, but removing one didn't help |
For what it's worth, I am also using daily quotes, and opening a new daily note is where the issue first occurred Although removing it doesn't fix the assigning to constant error |
|
@SilentVoid13 FYI, after restarting Obsidian the error has returned and requires me to then reinstall Templater again. |
|
@pard68 @geoffreysflaminglasersword This should be fixed in 1.9.8. Sorry for the inconvenience, my tests should have caught that bug. |
|
Will open a new one cause I find that from today the templates have error parsing the line "tp.web.daily_quote()". |

Log.ts:17 Templater Error: Template parsing error, aborting.
Assignment to constant variable.
log_error @ Log.ts:17
eval @ Error.ts:16
rejected @ tslib.es6.js:74
Promise.then (async)
step @ tslib.es6.js:75
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
errorWrapper @ Error.ts:11
eval @ Templater.ts:198
eval @ tslib.es6.js:76
__awaiter @ tslib.es6.js:72
append_template_to_active_file @ Templater.ts:184
onChooseItem @ FuzzySuggester.ts:50
t.onChooseSuggestion @ app.js:1
t.selectSuggestion @ app.js:1
e.useSelectedItem @ app.js:1
e.onSuggestionClick @ app.js:1
s @ app.js:1
The text was updated successfully, but these errors were encountered: