obsidian-tasks-group / obsidian-tasks

Task management for the Obsidian knowledge base.
https://publish.obsidian.md/tasks/
MIT License
2.43k stars 228 forks source link

Loading Tasks ... #476

Closed troilus closed 2 years ago

troilus commented 2 years ago

Issue tracker is ONLY used for reporting bugs. New feature ideas should be discussed in the ideas section. Please use the Q&A section for supporting issues. Please use the search function.

If you encountered the issue after you installed, updated, or reloaded the tasks plugin, please try restarting obsidian before reporting the bug.

If you want to report a bug, please follow the guide lines below to help me resolve it.

Expected Behavior

Show Tasks

Current Behavior

Loading Tasks ...

Steps to Reproduce

input:

and switch to view mode

Context (Environment)

Possible Solution

schemar commented 2 years ago

Hey @troilus, thank you for reaching out. Could you please open the developer console of obisidian, restart obsidian, and tell me if there are any errors or reports from Tasks? Make sure you don't share anything sensitive, just in case.

You can open the developer console with Control+Shift+i (or Command+Shift+i on a mac).

troilus commented 2 years ago

obsidian.md-1641775539029.log Please refer to the console log. @schemar

schemar commented 2 years ago

Thank you! It appears that Obsidian's file cache includes a header section with a line-number that is outside of the range of lines of the file where it is in :monocle_face: It could be that I handle line numbers off by one (0-indexed vs. 1-indexed)? Or possibly a bug in Obsidian?

I need to dig into this further. Do you have a file with some unusual headers going on? Or would you be able to run the Tasks plugin from source where you could add some debugging statements? Or, in the worst case, any chance I can get access to your vault? I cannot reproduce this locally (and apparently not many users can :thinking:).

Any help would be much appreciated. A "quickhack" would be guarding the match in line 332 of the Cache, but it appears that's only the symptom of an underlying issue.

troilus commented 2 years ago

Thanks! My vault is in Onedrive, I copied the whole vault to my desktop and open it with Obsidian, tasks plugin worked. I noticed that Obsidian rebuild index when I open the vault on my desktop. So I rename the vault folder in Onedrive to a temporary name, open Obsidian, close it, and rename the folder to previous name and open Obsidian to rebuild index, finally the tasks plugin worked.

schemar commented 2 years ago

Good to hear :smile: Tasks relies on Obsidian's cache and indexing.