Closed Smitty010 closed 11 months ago
Thanks for logging the issue.
I put that warning in because I thought I had seen that function be called with non-markdown files, and then was not able to reproduce it.
I then restarted Obsidian
And I cannot reproduce this, with the description provided.
When I pasted an image in to the vault, I did see the message, but not at re-start.
Is it possible the warnings were generated when you pasted the warnings in, and not when you restarted Obsidian?
Yes, it's possible. This clearly isn't a big deal. I'm just seeing severe performance problems with my obsidian vault and so I'm chasing a bunch of stuff. I don't really think the performance problem is a task issue.
On Fri, Dec 1, 2023 at 3:17 PM Clare Macrae @.***> wrote:
Thanks for logging the issue.
I put that warning in because I thought I had seen that function be called with non-markdown files, and then was not able to reproduce it.
I then restarted Obsidian
And I cannot reproduce this, with the description provided.
When I pasted an image in to the vault, I did see the message, but not at re-start.
Is it possible the warnings were generated when you pasted the warnings in, and not when you restarted Obsidian?
— Reply to this email directly, view it on GitHub https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2464#issuecomment-1836853378, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4V7SZF24F2GTT24I3USNDYHJJN7AVCNFSM6AAAAABADN33WCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHA2TGMZXHA . You are receiving this because you authored the thread.Message ID: @.***>
Is it possible the warnings were generated when you pasted the warnings in, and not when you restarted Obsidian?
I'm pretty sure the answer is yes.
When Tasks loads, indexFile()
is called like this:
It asks for all the Markdown files in the vault, and then calls indexFile()
on each one.
However, in the following locations, it calls indexFile()
without first checking if the file is a markdown file:
There are several consequences of this:
Thank you again for logging this.
It enabled me to track down something that had niggled for a while, but I had not known how to reproduce. The pasting in of an image was the key starting point to realising what was going on.
Cheers
On Fri, Dec 1, 2023 at 4:09 PM Clare Macrae @.***> wrote:
Thank you again for logging this.
It enabled me to track down something that had niggled for a while, but I had not known how to reproduce. The pasting in of an image was the key starting point to realising what was going on.
— Reply to this email directly, view it on GitHub https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2464#issuecomment-1836897474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4V7SYNNCXVRUCBWUWRSYTYHJPS7AVCNFSM6AAAAABADN33WCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZWHA4TONBXGQ . You are receiving this because you authored the thread.Message ID: @.***>
Please check that this issue hasn't been reported before.
Expected Behavior
task plugin should not try to index non-md files. The directory "SecondBrain/attachments" is in my "Excluded File" section of the "Files & Links" settings
Current behaviour
I see this in my developer tools console.
Steps to reproduce
I believe all I did was copy a couple of articles with local links to images into obsidian (generated with markdownload). The images were copied to the attachments folder. I then restarted Obsidian
Which Operating Systems are you using?
Obsidian Version
1.5.1
Tasks Plugin Version
5.2.0
Checks
Possible solution
No response