delashum / obsidian-checklist-plugin

MIT License
373 stars 39 forks source link

[Bug] it's broken if specific strings are included. #170

Closed yahsan2 closed 9 months ago

yahsan2 commented 1 year ago

I got this error when there is string including - [ ] [ ][[link]] title in check list.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'filePath')

Screenshot 2023-02-16 at 23 36 08

macOS: 13.2.1 Obsidian: Version 1.1.9

Bill77 commented 1 year ago

I hit the same error, but it was because I aliased my link. It broke on |.

// Works
- [ ] Something [[link]]

// Doesn't work
- [ ] Something [[link | A]]

Oddly your example seems to works for me (maybe there's another plugin you have?) - [ ] Something [[link]] test - [ ] [ ] Something [[link]] test - [ ] [ ] [[link]] test

ryardley commented 11 months ago

Aliases actually work - the work around I have found is to not include spaces in the file path:

// Works
- [ ] [[20230507 Some other document|Some doc]]

// Doesn't Work
- [ ] [[20230507 Some other document |Some doc]]
Bill77 commented 11 months ago

Thanks @ryardley, yes that format without spaces works - I can live with that as a solution. But it'd be nice if it was a bit more forgiving on the aliases. 😄

delashum commented 9 months ago

Fixed in 2.2.13