delashum / obsidian-checklist-plugin

MIT License
376 stars 39 forks source link

plugin loads forever and then crashes Obsidian #126

Closed smile4yourself closed 1 year ago

smile4yourself commented 2 years ago

The problem is I do not know how to setup the configuration to only read *.md files in my vault. I have unprocessed OCR files in my vault as well as pdf and other files. using your cryptic programming language ;-) would you please post what to write in order to read only xxxx.md files.

I think that other people have problems with the plugin for the same reason. I tried the plugin in a small text-only vault, and it worked there, but my large vault with both text and unprocessed files breaks.

thanks for this. Best wishes.

smile4yourself commented 2 years ago

I have something new to share on the above problem. I removed all the mp4 files that I had in my vault and the vault size went from 11Gig to 1 Gig. The plugin then worked. regards

gluecode commented 2 years ago

My vault is very small (~5 MB) and all text. Checklist does not load and keeps the spinner running forever. I'm on Obsidian 0.13.31 and latest version of Checklist plugin.

checklist

zen010101 commented 2 years ago

me too . It's too long to load the checklist plugin every time I start the Obsidian.

pidgeon777 commented 2 years ago

I have the same problem, my vault is around 820 KB in size.

dwharrison commented 2 years ago

I'm now having this problem on my work Windows computer, but not on my personal Mac. My vault is about 15 MB. The work computer has corporate security software that does slow things down, so that could be involved - mentioning it in case it is a clue. Note that this problem just started recently.

generic-user commented 2 years ago

Hi, I had this as well and found what was causing the problem: when you have an empty check somewhere in your scanned files, it seems to block the process that's responsible for building the cache. So this only occurs when an empty check item is present when the cache is build aka the startup of application.

Adding something to that/those empty items fixes the problem, after a restart (rebuild of cache).

Change all occurrences of this: image Into this: image

A restart is not needed, only a change event needs to trigger.

How to reproduce

  1. Create a new empty vault
  2. install/enable checklist in it (turn off safe mode)
  3. add a new note with the tag todo in front mater
  4. create a new list with empty checkmark
  5. close vault,
  6. open vault
  7. open side panel view TODO
  8. watch how the checklist view hangs up
  9. now just type something anywhere for the change event to trigger
  10. view gets updated

Hope it helps. 😉

pidgeon777 commented 2 years ago

Nice catch!

Hopefully, now that you identified the cause, the issue will be fixed 👍.

rickalex21 commented 2 years ago

I'm having the same problem. I tried what @generic-user said and deleted the empty check. It was working for a while, then it no longer works. All I see is a spinning circle, which makes the plugin unusable. I'm not sure if I have to delete the cache or do something else? I reinstalled the plugin but that did not help fix the issue.

generic-user commented 2 years ago

Hi, sometimes this works to force refresh. @rickalex21 image