-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
🐞 Using multiple dice-mod rolls in one template causes errors #277
Comments
I used to workaround it by inserting multiple dice commands inbetween dice-mod commands. But recent update has some performance improvements that breaks it for me. It' s an old problem https://forum.obsidian.md/t/data-race-safe-way-of-modifying-files/30847 . Reverting to 10.3.0 works for me. I don' t know if you or other plugin can add a configurable delay (say 1s) to before dice-mod or after dice-mod to make it work. |
Thanks for the update, I tried 10.4.1 but it still doesn' t work for me. |
Can you give me a reproducible markdown file? |
This is the daily template. Those lists of ent/drink ent/sport are just lists like:
|
Might better keep it open? |
I'm having this issue as well on version 10.4.6. Using multiple dice-mod commands in a template (Obsidian templates, Templater is not installed) results in some of the commands not populating in notes using that template. I can force them to populate by making any change to the text block they're in (add a space after a period, whatever) and then going back to view mode, so it seems like Obsidian maybe skipped them and had to be reminded to go back and evaluate? |
Check for existing bug reports before submitting.
Expected Behavior
Rolls should correctly reference and output
Current behaviour
All kinds of wires get crossed, formatting goes crazy, and some rolls entirely don't render. No matter the combination of steps used, the results are (within wide variation) the same.
Reproduction
Which Operating Systems are you using?
Obsidian Version Check
1.5
Plugin Version
10.4.0
Confirmation
Possible solution
So if I create a template for each roll and insert them one at a time, it works. It seems like the issue is when multiple dice are rolled simultaneously. The solution may be on the template end, or coding in an await function into the plugin itself.
The text was updated successfully, but these errors were encountered: