obsidian-tasks: Tasks does no longer initialise properly, for any Queries in Callouts in Live Preview, when already opened at start-up

⚠️ Check issue is valid.

⚠️ Check that this issue hasn’t been reported before.

Steps to reproduce

After updating to 7.18.0, callouts with imbedded task queries do no longer show properly when Obsidian is restarted - the source of the query is shown, not the result. If after that I create a new task, the query works again.


Maintenance note: Steps to reproduce, and screenshots, added by @claremacrae

  1. Create a note called Issue 3366 callout at startup
  2. Insert this content:
# Issue 3366 callout at startup

> [!NOTE]
> ```tasks
> path includes {{query.file.path}}
> ```

- [ ] #task Hello world
  1. Open 3 views of this note - in Source, Live Preview and Reading Mode
  2. Run the command Reload app without saving

Expected Behavior

tasks queries work on startup

Image

Current behaviour

query does not execute (in the Live Preview pane)

Image

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.8.7 (installer 1.7.7)

Tasks Plugin Version

7.18.0

Checks

  • I have tried it with all other plugins disabled and the error still occurs

Possible solution

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Just FYI I had the same bug in Canvas, also solved by the latest release =) Many thanks @mnaoumov !

This is just released in Tasks 7.18.1.

Many thanks for the help, @mnaoumov!

Can confirm that it works for me now. Thanks for the quick response!

@claremacrae provided the fix in the PR

This is just released in Tasks 7.18.1.

Many thanks for the help, @mnaoumov!

Super - thank you very much indeed. Will pick this up soon…

@claremacrae I would need to debug it. The behavior looks weird to me. I will let know once I debug it

@uselpa Cancel that, I have been able to reproduce it, but only when the note containing the query was in Live Preview mode.

Is that the case for you? (This is why we ask for full details)

Yes it is, and I am always working in that mode (except when debugging something) so I would not have thought to include that in the bug report, sorry.