Skip to content

Inconsistent behaviour of "query.file.path" after a file rename when multiple opened files have a query using it #3428

@William-A-A

Description

@William-A-A

⚠️ Check issue is valid.

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

Steps to reproduce

  1. Unzip the provided archive
  2. Open the extracted folder as an obsidian vault
  3. All files to reproduce are already opened in the vault
  4. Instructions to reproduce are also in the vault, the key step here under
  5. Verify taht File 1 and File 2 query are behaving as intended
  6. Rename file 2
  7. Swith to file 2 and confirm that File 2 query is not behaving as intended (query.file.path is mistakingly the recently renamed file 1).

queryfiletaskbug.zip

Expected Behavior

File 2 query correctly shows the tasks of File 2

Current behaviour

File 2 query show the tasks of "File 1" (after it is renamed)

Which Operating Systems are you using?

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

Obsidian Version

1.8.9

Tasks Plugin Version

7.18.5

Checks

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

Possible solution

SadlyI have no idea :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highA high priority/important requestscope: scriptingIssues to do with custom filters, custom sorting and similartype: bugSomething isn't working

    Type

    No type

    Projects

    Status

    🎉 Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions