obsidian-css-snippets icon indicating copy to clipboard operation
obsidian-css-snippets copied to clipboard

Error: Uncaught (in promise) Error: EN0ENT: no such file or directory

Open FiekeB opened this issue 4 years ago • 0 comments

Okay, so now the plugin CSS Snippets is behaving weird.

My snippets were in .obsidian/snippets and that this has always worked, apart from a weird error ltely, when turning on DevTools. I got this error that said "Uncaught (in promise) Error: EN0ENT: no such file or directory, scandir ‘/Users/Fieke/Desktop/Fie’s MacBook Vault/css-snippets"

In the plugin’s description, it also says that the snippets should be in a folder css-snippets in the vault’s root. That’s where they were not, so I made such a folder in my root and moved all my snippets there.

I restarted Obsidian and went to Settings to turn the snippets back on, figuring after such a move, that would be needed. The error was gone, but what do you know…NO snippets to be seen in Settings! It said, your snippets need to be in .obsidian/snippets !

But when I put them there, I can turn them on in settings and they all work, but I get this weird error!!!

And yes, I did reload Obsidian, several times, I tried to get the snippets to show up while in css-snippets in my vault's root, but no way. Vanished. (Not really but they don't show up in Settings)

And then, I figured, I'll put the snippets back where they have always been, in .obsidian/snippets - and restarted Obsidian, went to check in Settings if they were there ...and yay! All there. And also the obnoxious error again, when i open DevTools.

Is this a bug?

FiekeB avatar Jun 19 '21 14:06 FiekeB