Skip to content

[BUG] Placeholders from format syntax (e.g. : {{VALUE:fileName}}) generate a warning in Obsidian console. #1655

Description

@Elaws

Describe the bug

In the QuickAdd.variables = {...} part of a .js file loaded by QuickAdd, fileName is a simple string.

The following template...

Image

... generates the following warning in Obsidian console :

Image

To Reproduce
Steps to reproduce the behavior in Obsidian:

  1. Open Obsidian and create note template mentionned above.
  2. Have a .js script loaded by Obsidian that outputs a string named fileName so you can use {{VALUE:fileName}} in your template.
  3. See warning.

Expected behavior
No such warning.

Obsidian Debug Info (required for bug reports)
Please include the full Debug Info from Obsidian to help diagnose your environment:

  • Open the Command Palette (Ctrl/Cmd+P).
  • Run: Show debug info.
  • Click: Copy to clipboard.
  • Paste it below inside the code block.
PASTE DEBUG INFO HERE
Image

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Obsidian version: 1.13.4
  • QuickAdd version: 2.21.0
  • Operating system: Windows 11
  • Debug info: Cf. screenshot above
  • Other plugins enabled: [List any other plugins that might be relevant]
  • Theme: Default

Console Logs

Cf. screenshot above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions