dendron icon indicating copy to clipboard operation
dendron copied to clipboard

Variable substitution on default variable not apply properly after apply template

Open Wingless-Archangel opened this issue 1 year ago • 0 comments

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [ ] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [ ] Lookup. Dendron's Lookup Command
  • [ ] Views. Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema. Dendron Schemas
  • [ ] Pod. Data import from / export to Dendron
  • [ ] Publish. External Site Publish
  • [x] Markdown. Markdown features, such as syntax support and features

Describe the bug

When referencing default variable in Temeplate, the value will not be substituted and got the blank value instead

To Reproduce

Steps to reproduce the behavior:

  1. create the template with the variable that reference the default variable such as title
  2. create the new document without template
  3. use vscode command to apply the template
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: MacOS 14.5 (23F79)
  • Browser: N/A
  • Versions (all that apply to bug):
    • Dendron Extension: v0.124.0
    • VS Code version: Version: 1.90.0
    • Dendron CLI: N/A

Additional context

N/A

Dendron Log file

the log is here

Wingless-Archangel avatar Jun 14 '24 10:06 Wingless-Archangel